[H-GEN] Probs with Apache+PHP

Martin Czaplejewicz mczaplej at bigpond.net.au
Fri Aug 3 05:23:53 EDT 2001


[ Humbug *General* list - semi-serious discussions about Humbug and  ]
[ Unix-related topics.  Please observe the list's charter.           ]
[ Worthwhile understanding: http://www.humbug.org.au/netiquette.html ]

Hi,

you might need to tell the server how to handle php files, I have pretty
much the same setup with apache/php3 on Debian - try uncommenting/adding
these two lines to srm.conf or httpd.conf depending on your version:

AddType application/x-httpd-php3 .phtml php
AddType application/x-httpd-source .phps

hope that works for you,


Martin.

> -----Original Message-----
> From: lists.humbug.org.au Mailing List Manager
> [mailto:mdlishum at zerlargal.humbug.org.au]On Behalf Of Marshall, Joshua
> Sent: Friday, 3 August 2001 2:42 PM
> To: general at humbug.org.au
> Subject: [H-GEN] Probs with Apache+PHP
>
>
> [ Humbug *General* list - semi-serious discussions about Humbug and  ]
> [ Unix-related topics.  Please observe the list's charter.           ]
> [ Worthwhile understanding: http://www.humbug.org.au/netiquette.html ]
>
> I'm using Debian Potato and Apache and PHP3 and am having some problems
> serving php3-based content. Sometimes the script is run on the server,
> sometimes the browser asks me to save the file (application/x-httpd-php3
> MIME type)
>
> When it saves the file it is actually the php source file. I've
> installed the apache and php3 debs via apt-get and the apache http.conf
> file has the line:
>
> LoadModule php3_module /usr/lib/apache/1.3/libphp3.so
>
> Has anyone has this setup working on Potato? I'm running out of ideas to
> try.
>
> Regards,
> Josh.
>
>
> --
> * This is list (humbug) general handled by majordomo at lists.humbug.org.au .
> * Postings to this list are only accepted from subscribed addresses of
> * lists 'general' or 'general-post'.
>


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.



More information about the General mailing list