On 7/30/12 at 4:28 PM, [email protected] (Arden Currie) wrote:
I had enabled PHP module in Tiger long ago and it worked in
/Library/WebServer and in ~/Sites. I wish I knew how I did it.
Now I can only get it to work in /Library/WebServer.
Does anyone know how to configure it for the User/~Sites? It was more
convenient to run and test some scripts in the home folder.
This is Tiger, not Tiger Server? You're using the default OS
installs of apache and PHP? You've named your PHP files with the
extension .php? How did you get PHP working for
/Library/WebServer? The usual way to enable PHP globally in
Tiger's default apache install is to simply uncomment the
relevant LoadModule and AddModule lines near the top of /etc/httpd/httpd.conf:
LoadModule php4_module libexec/httpd/libphp4.so
and
AddModule mod_php4.c
Once that's done and httpd restarted, the <IfModule mod_php4.c>
stanza at the bottom of the default httpd.conf should
automagically enable .php files to be processed as PHP globally
on the server. If .php files from users' Sites folders are not
being processed as PHP, check for directives in
/etc/httpd/httpd.conf, possibly in a Directory stanza, or in
other conf files (/etc/httpd/users/*.conf, ~/Sites/.htaccess,
etc.) that would disable PHP processing in the affected directories.
--
Christopher Bort
<[email protected]>
_______________________________________________
MacOSX-talk mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/macosx-talk