I have installed ISPConfig and have an Apache /var/www folder.
I would like to move this www folder to another drive mounted at /data.
cp -r /var/www /data
to create a copy in the /data folder
I then did
mv /var/www /var/wwworig
to create a backup of the www folder just in case
I then created a symbolic link from /var/www to /data/www
ln -s /data/www /var/www
Giving me a link from /var/www to /data/www
I have tried restarting Apache but still only receive 403 errors when browsing my page.
I have FollowSymLinks in my Apache config. I don't want to change the directories listed in my Apache config because I don't want to get into changing ISPConfig that much. I would just like a symbolic link to another drive.
Here are permissions that may be pertinent.
Original /var folder
drwxr-xr-x 10 root root 4096 Mar 23 2011 www
Original /data folder
drwxr-xr-x 10 root root 4096 Oct 12 06:02 www
/var folder with link
lrwxrwxrwx 1 root root 9 Oct 12 10:16 www -> /data/www drwxr-xr-x 10 root root 4096 Mar 23 2011 wwwbackup