[NTLUG:Discuss] Apache and PHP

Alton R. Pouncey, II alton at trainers-r-us.com
Tue Jun 3 12:30:02 CDT 2003


On Tue, 2003-06-03 at 10:53, Jim Adams wrote:
> I know that I am doing something wrong. What do I need to do to
> httpd.conf to have php pages display? If I change the file type to
> php3/4 the pages work fine. But if the file type is just “php” I get a
> download prompt. Any help will be appreciated.
>  
> Thanks
> Jim
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.486 / Virus Database: 284 - Release Date: 5/29/2003
>  
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss

Are you using Apache 2?  I have read many posts in Usenet from folks
having this problem with Apache 2.  I, too, had this problem until,
after beating my head against the wall for days, just decided to switch
the order of my LoadModule directives and see what that did.  That fixed
my problem.  I use both php and mod_perl in my server and for some
reason, it wouldn't behave until I had them in a specific order.  Here
is the relevent portion of my httpd.conf file:

LoadModule php4_module modules/libphp4.so
LoadModule perl_module modules/mod_perl.so

Before, I had mod_perl loading first and I would get the same download
prompt as you when accessing php files.  Once I switched the order to
the above, it fixed the problem.

Give it a try - it can't hurt,
Alton Pouncey





More information about the Discuss mailing list