Home  |  Linux  | Mysql  | PHP  | XML
From:Juan Mas Date:Fri Jun 26 12:31:49 2009
Subject:Re: Browser tries to download php file
Thanks for your response. Heres what I know! When I make a change to
the httpd.conf file, such as commenting out AddType, and restart
apache, the changes will take affect in the browser. Typically the
php page will display as text at that point. When I uncomment AddType
and restart, it will then try to download. If I do -t on httpd, I get
a Syntax OK message. Also, when I make a change to the conf file, I
am completely stopping and then starting apache, not just using
'restart'. As you can see by the list of compiled modules, php is in
there. If I try inserting a LoadModule command in the conf file, I
get a message that it's already been loaded in. If I run ps -aux I
see /usr/local/apache/bin/httpd which is the correct location that I
installed to. Very very weird......

On Thu, Jun 25, 2009 at 4:48 PM, Keith Roberts<keith@karsites.net> wrote:
> On Thu, 25 Jun 2009, Juan Mas wrote:
>
>> To: php-install@lists.php.net
>> From: Juan Mas <juan.mas@gmail.com>
>> Subject: [PHP-INSTALL] Browser tries to download php file
>>
>> Hi list,
>>
>> I have a Gentoo server that has been running for over a year with
I
>> re-compiled Apache using this howto
>> http://perl.apache.org/docs/1.0/guide/install.html#mod_perl_and_mod_php
>>
>> When I look at the Apache logs, I am seeing the PHP is being loaded
>>
>> [Thu Jun 25 10:09:14 2009] [notice] Apache/1.3.41 (Unix) PHP/5.2.5
>> mod_perl/1.30 configured -- resuming normal operations
>>
>>
>> I have added AddType application/x-httpd-php .php, and the AddHandler
>> to display php info in a browser, the browser tries download the php
>> Action, or AddType script-php5, or adding as text/html at which point
>> the page displays but it doesn't parse the php.
>
> Are you sure that you are editing the correct httpd.conf file?
>
> Is there more than one of these files on your system?
>
> Did you stop and then start Apache to force it to re-read httpd.conf?
>
> If you have compiled apache yourself, has the Apache that comes with your
> distribution been removed?
>
> Try adding some deliberate errors into your httpd.conf then running
> apachectl -t to check it for syntax errors you have added. You should then
> get some syntax errors. This will confirm that you are editing the working
> httpd.conf if there are more than one there on the system.
>
> If you are compiling Apache yourself, where is it getting installed to, as
> it will use the httpd.conf under the --prefix, which will default to
> something like /usr/local.
>
> HTH
>
> Keith Roberts
>
Navigate in group php.install at sever news.php.net
Previous Next


Your recent visits
PHP 5.3 as a module on windows
Can i run php script using command prompt in any location by typing scriptname.php
Help on compiling PHP for MIPS, Bus Error thrown
RE: [PHP-WIN] What about php 5.3 and printers or PHP_PRINTER.DLL ?
RE: [PHP-WIN] What about php 5.3 and printers or PHP_PRINTER.DLL ?



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants