Sunday, January 10, 2010

php & apache on 10.5

Record the steps I made.

1) update /etc/apache2/httpd.conf
Add lines below
LoadModule php5_module libexec/apache2/libphp5.so
AddHandler php5-script php
AddType text/html php
AddType application/x-httpd-php-source phps

2) Locate php script files to /Library/WebServer/CGI-Executables.

3) Restart "Web Sharing" in "System Preferences" > Sharing.

No comments: