Re: [PHP-INSTALL] Browser tries to download php file

[email protected] (Juan Mas)
Newsgroups php.install
Message-ID <[email protected]>
I think there is something to this, but could definitely use some
input.  I have /usr/local/apache/bin/apachectl as the startup.  This
does point to /usr/local/apache/bin/ and the only httpd.conf I can
locate is in apache/conf.  But, if I do a 'which httpd', it points to
/usr/local/bin.  If I do a httpd -l there, it does list mod_perl, but
not mod_php.  But, that httpd isn't running anywhere that I can see.
I'm not sure who to switch this so that the default is
/usr/local/apache/bin/httpd.  Though I don't see how it's an issue
considering if I 'ps', it only shows /usr/local/apache/bin/httpd
running.

On Tue, Jun 30, 2009 at 12:53 PM, Keith Roberts<[email protected]> wrote:
> On Tue, 30 Jun 2009, Juan Mas wrote:
>
>> To: Keith Roberts <[email protected]>
>> From: Juan Mas <[email protected]>
>> Subject: Re: [PHP-INSTALL] Browser tries to download php file
>>
>> The httpd.conf file is in /usr/local/apache/conf
>>
>> Im using Apache 1.3 because that's what I had loaded on this
>> originally with mod_perl.. I was most familiar with setting up Apache
>> 1.3/mod_perl with the helpdesk application we use here. So I was
>> making it easier on myself.. Or so I thought.
>>
>> The apache logs are showing on startup:
>>
>> Apache/1.3.41 (Unix) PHP/5.2.5 mod_perl/1.30 configured -- resuming
>> normal operations
>>
>> The httpd -l (Im typing out full path to /usr/local/apache/bin/httpd)
>> is showing the two modules loaded:
>>
>> /usr/local/apache/bin/httpd -l
>> Compiled-in modules:
>>  ...
>>
>>  mod_perl.c
>>  mod_php5.c
>>
>> And my httpd.conf file (/usr/local/apache/conf) has these entries
>> under mod_mime:
>>
>>       AddType application/x-httpd-php .php
>>       AddType application/x-httpd-php-source .phps
>>
>>       AddHandler application/x-httpd-php .php
>>
>> But still. My browser still tries to download the php file when I try
>> to view it.  I just tried re-compiling PHP just in case... No change.
>> Im at a total loss!  Let me know if there's any other info I can give.
>
> Are you sure there is not another version of Apache running on your machine
> that's not configured properly? - ie something that is installed by default
> with Gentoo Linux and not setup to process php documents?
>
> Regards,
>
> Keith
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.