httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daryl Williams <>
Subject Re: config question regarding <Location>
Date Thu, 22 Aug 2002 23:03:51 GMT
Jacob, thanks for your reply. i moved the php LoadModule
directive to the end of that section, i.e. it's now the last module
loaded, but the file is still not being interpreted correctly.
if i try to retrieve it with a browser it wants to save it to file.
if i telnet to port 80 and do a get, i get straight html. so it seems
my browser (moz) knows nothing 'bout php, which makes sense
but the server is not handing it to the php interpreter either. which
it does correctly under the docroot but not this <Location>.

does anyone know if there is a specific handler for php?
i had to specifically add a "SetHandle default-handler" to
my forms <Location> config directive to override the mod_perl
handler, and now i can't get that location to serve more
than one filetype at a time.

thanks again for any help.


Jacob Coby wrote:

>>i would like to be able to use php or other interpreters to generate
>>some simple dynamic content. however when i try to load the php
>>file, apache thinks i want to download the file. the file is recognized
>>correctly by apache as "application/x-httpd-php" in the download box.
>>btw, php does work correctly under the documnet_root.
>>following is the config info. your help is greatly appreciated.
>>rtfms welcomed, especially with a hint to it's location.
>Since it works elsewhere, and you are getting the x-httpd-php mime type,
>check the order that you are adding the php module.  I had problems with php
>+ openssl where, due to the ordering of AddModule, php never actually
>received the file to serve up, instead apache returned the unparsed php file
>to the browser, which wanted to download it.
>Be absolutly sure that php is the last module in the list to be added.  ie:
>AddModule mod_so.c
>AddModule mod_setenvif.c
><IfDefine SSL>
>AddModule mod_ssl.c
>AddModule mod_php4.c
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:> for more info.
>To unsubscribe, e-mail:
>   "   from the digest:
>For additional commands, e-mail:

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message