Here are some other options, depending on how you want to do it. The symlink is not a bad option. If you wanted to copy and/or move the files to the ServerRoot, you can do this:
Code:
sudo cp <directory of files>/* /var/www/
-OR-
sudo mv <directory of files>/* /var/www/
First is copy, second is move
Another options is if you look in the /etc/apache2/httpd.config, /etc/apache2/apache2.conf or /etc/apache2/sites-available/examplesite.com <or whatever name it may be in here> (also depends upon set up, I don't have a current apache2 setup at the moment.
Somewhere in one of these config files will be a line that says
Code:
DocumentRoot "/var/www/"
You can change the "/var/www" to whereever you have those files at (maybe "/home/<user>/web/files"...)
While it will be serving files out of your home directory (and some people are not fond of this), it would allow easy access for you to edit, save, delete, etc files without needing to use root or sudo.
If you
Bookmarks