You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Hamad S. Al-Jalaq" <ha...@sitcon.com> on 2006/06/11 17:14:07 UTC
[users@httpd] Apache 2.2 not working with PHP4
I've installed apache version 2.x with PHP4.3.0... configured at as an
apache module... but when try to visit the index.php file the browser
asks me if I want to download the file... it suppose to browse the file
not download it... please advice...
Thanks,
Hamad
Re: [users@httpd] Apache 2.2 not working with PHP4
Posted by Josh Stephenson <jo...@clearwired.com>.
You need to edit your httpd.conf file to handle php files
add these lines and you should be good:
LoadModule php4_module libexec/apache2/libphp4.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
The first line might already be in there, but the second one not being
there is definitely the reason apache is sending the php file to your
browser for download.
Don't forget to restart apache:
apachectl graceful
Hamad S. Al-Jalaq wrote:
>
> I’ve installed apache version 2.x with PHP4.3.0… configured at as an
> apache module… but when try to visit the index.php file the browser
> asks me if I want to download the file… it suppose to browse the file
> not download it… please advice…
>
> Thanks,
>
> Hamad
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org