Jan 22
I don’t know why PHP is not enabled by default at Leopard’s Apache.
To enable it you must uncomment this line from /etc/apache2/httpd.conf
LoadModule php5_module libexec/apache2/libphp5.so
And that’s all! You only need to turn on Web Sharing at System Preferences.
If you want to test that PHP works properly, you can write a file called, for instance, info.php which contains this code:
<?php phpinfo(); ?>
Locate it into:
/Library/WebServer/Documents
And finally, access to http://localhost/info.php using your favorite web browser to test that you get the php report.


Recent Comments