Jump to content

Archived

This topic is now archived and is closed to further replies.

shams

can i put some server files other then /var/www/html?

Recommended Posts

hi,
i have local server, the doument root is /var/www/html in fc5 the localhost is runing ok, there is other users runing php scripts, how i can configure apache for this users to run thier php scripts  from their own directories in localhost while they are offline? thankd in advanced for your help.

Share this post


Link to post
Share on other sites
I don't quite understand what your asking, but: Take a look at [url=http://httpd.apache.org/docs/2.0/mod/mod_alias.html]Apache Aliases[/url]. Aliases allow you to serve files via apache that are not in your document root. Also, you can't run a PHP script (except from the command line) unless Apache is online. If this doesn't answer your question, please try to explain a little more.

Share this post


Link to post
Share on other sites
If you want to run from a single directory then you simply change this in apache's .conf file.
If however you wish to run from multiple directorys one option would be to set up virtual hosting.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.