I'm trying to learn PHP and so am trying to configure Apache2 on my mac (10.5.06). I had everything working fine but now can't get a test php file to load in Safari or Firefox. I'm pretty sure PHP loads because the console log says this when I launch Apache:
Apparently, all it required was a restart of my machine. It is now working, namespaces and everything! Thanks for this incredible incredible resource richard.
#
I'm trying to learn PHP and so am trying to configure Apache2 on my mac (10.5.06). I had everything working fine but now can't get a test php file to load in Safari or Firefox. I'm pretty sure PHP loads because the console log says this when I launch Apache:
[Wed Apr 08 13:31:39 2009] [notice] Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.7l DAV/2 PHP/5.2.6 configured -- resuming normal operations
However, my PHP test file (<?php phpinfo(); ?>) doesn't load the PHP status page. Nor can I get the server to process any other PHP file.
Any ideas what's going on? Thanks.
#
Did you add the lines required to your httpd.conf (please make sure you are editing the correct one).
#
I get this problem to running PHP 5.3.0.
I did add the module and the AddType to httpd.conf
I also edited the mimes.config file to support those types.
I restarted the server several times, but still it just shows the PHP code.
I even changed the file ownership on index.php to _www.
Still, source code. This is a great site, btw. I love it.
#
Kenny, sounds like a strange case to me. Is there any warning in the log files when you start apache or when you load the page in question.
#
[Sat Jul 04 14:34:39 2009] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Jul 04 14:34:39 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache2/bin/suexec)
[Sat Jul 04 14:34:39 2009] [notice] Digest: generating secret for digest authentication ...
[Sat Jul 04 14:34:39 2009] [notice] Digest: done
[Sat Jul 04 14:34:39 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.7l DAV/2 configured -- resuming normal operations
[Sat Jul 04 14:35:04 2009] [notice] caught SIGTERM, shutting down
That's my httpd error log. I did rename php-default.ini to php.ini in the /etc/ directory, however it wasn't working before I renamed it either.
Thanks for all your help
#
Apparently, all it required was a restart of my machine. It is now working, namespaces and everything! Thanks for this incredible incredible resource richard.