Hi all,
Hoping that someone here can help me out, I've been trying to get php working with apache under leopard and not having much luck...
It seems that all that was needed was to uncomment a couple of lines from the httpd.conf file namely
LoadModule php5_module libexec/httpd/libphp5.so
AddModule mod_php5.c
and
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Then i saved the file, restated apache and no dice.... when i try running index.php that contains <?php phpinfo(); ?> it just prints out the text instead of showing the php info stuff.
Now I upgraded my 10.4 install to 10.5 and it seems like some of the config options changed, and that might be causing me trouble.
How do i check if apache is even reading the httpd.conf file correctly? I tried putting errors in, renaming it (as well as the httpd.conf.bak) and each time apache started ok, what is the deal here? I though it would fail to run if the config file was missing or contained errors?
I have been trying to fix this for hours and had no luck at all. I can't seem to find other posts or articles anywhere describing this problem, it just seems to work...
Thanks!
Hoping that someone here can help me out, I've been trying to get php working with apache under leopard and not having much luck...
It seems that all that was needed was to uncomment a couple of lines from the httpd.conf file namely
LoadModule php5_module libexec/httpd/libphp5.so
AddModule mod_php5.c
and
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Then i saved the file, restated apache and no dice.... when i try running index.php that contains <?php phpinfo(); ?> it just prints out the text instead of showing the php info stuff.
Now I upgraded my 10.4 install to 10.5 and it seems like some of the config options changed, and that might be causing me trouble.
How do i check if apache is even reading the httpd.conf file correctly? I tried putting errors in, renaming it (as well as the httpd.conf.bak) and each time apache started ok, what is the deal here? I though it would fail to run if the config file was missing or contained errors?
I have been trying to fix this for hours and had no luck at all. I can't seem to find other posts or articles anywhere describing this problem, it just seems to work...
Thanks!