Quote:
Originally Posted by kuplo
I want to move peoples websites under their /home/$user/public_html/domain name directory. If I do that will they still be able to run cgi in their cgi-bin and will php still work?
|
If the permissions, etc are all okay, then yes, it should work.
However, there is one small caveat I should point out, which caused a problem for me once when I was trying to do something similar: In PHP, there is a standard variable called $_SERVER['DOCUMENT_ROOT'], which contains the directory name of the server's Web root -- typically this would be something like /srv/www/htdocs/. Some web programs rely on this to work out the path to access other files in the site, by adding the configured path name to the DOCUMENT_ROOT... but this doesn't work if you're using user/public_html folders, as these aren't in the document root.
It all gets a bit messy at that point, so the basic answer to your question is yes, but check if any programs are using DOCUMENT_ROOT, and make sure they still work.
Hope that helps