Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Add this to /etc/httpd/users/php.conf' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Add this to /etc/httpd/users/php.conf
Authored by: shmert on Feb 21, '03 12:33:08PM
An example might help, this is the file I use to enable PHP. Didn't have to change a thing after updating to the newest OS X.
LoadModule php4_module        libexec/httpd/libphp4.so
AddModule mod_php4.c


    DirectoryIndex index.html index.php index.php3



    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps



[ Reply to This | # ]
Add this to /etc/httpd/users/php.conf
Authored by: shucks on Feb 22, '03 08:43:59PM

I am wondering whether if you have a user named php then this will break?

---
He Travels Far Who Travels Alone, If He Knows The Way That Is



[ Reply to This | # ]
Add this to /etc/httpd/users/php.conf
Authored by: ScooterComputer on Feb 24, '03 11:51:36AM

No, not unless you create a file named php.conf in the /etc/httpd/users folder, and then create the PHP user using the Users PrefPane. I have never tried doing this, so I don't know what happens...that's why it would be smart to use a filename that is pretty unique (like 1stoverrides.conf).

Otherwise, the only thing these "user" configs do is make a Directory directive pointing to users' Sites folder...simply take a look at them.



[ Reply to This | # ]