PDA

View Full Version : PHP Scripts in subdirectories


bleachga
2003-07-28, 21:31 PM
I'm using WHM + cpanel, and I can't figure out how my users can have PHP scripts in directories other than /public_html. Any time they add one, they get a script error.

Do I need to edit the httpd.conf file for them and add a ScriptAlias for that directory, or is there some easier way?

xnitio
2003-07-29, 00:19 AM
If php is running as an apache module it will have something to the affect of
php_value "open_basedir=/home/username/public_html : /tmp"

If the directory has a trailing forward slash (/) then the user will only be allowed to execute php in the specified directory. The colon separates the directories the user can execute php scripts in. On a windows system they use a semi colon.