hello, i have Ubuntu Server 11.10 with ISPConfig 3. i want to change Web basedirectory to /media/hdd0. I changed from ISPConfig->Settings but can't access site's hosted in /media/hdd0, i view a 403 error (don't have to access this resource). I searched on the internet but don't found a solution, i found only a post on this forum where author write that must use suEXEC. please help me to move /var/www (and subfolders from ISPConfig) to /media/hdd0. sorry for my english.
1) Stop apache and make a backup of the contents of the /var/www folder. 2) remount /media/hdd0 as /var/www in /etc/fstab 3) Copy back the content to /var/www 4) Undo the path changes that you did in ispconfig and then start apache.
Use the mv command to move all contents away from the /var/www directory (/var/www must be empty afterwards). Edit /etc/fstab and mount your device to /var/www instead of /media/hdd0. Run Code: mount -a afterwards and check that the device got mounted to /var/www by running Code: mount Use the cp or mv command to copy your backup back to /var/www. Apache can be restarted as follows: Code: /etc/init.d/apache2 restart
hey thanks for the post. isn't this kinda the same thing. Here is what i did. Code: mv /var/www /path/to/my/folder then made a symlink: Code: ln -s /my/path/www /var/www
oh? well i guess ill go back to your post and see if i cant figure it out. I doubt ill be using suExec anyways though.
Are these the exact commands or could you post them please? so like do this?: Code: add this line in /etc/fstab[CODE]/dev/mapper/vg_main00-LogVol00 /var/www ext4 defaults 0 0 Then run the code Code: mount -a then Code: mount then copy everything back and restart httpd [/CODE]