View Single Post
  #6  
Old 24th June 2013, 19:48
jaypabs jaypabs is offline
Member
 
Join Date: Jun 2013
Posts: 68
Thanks: 0
Thanked 1 Time in 1 Post
Default

I just rebooted the server and it works fine now.

However, I still wanted to change the correct directory of one of my website. Under Sites >> Websites the ID = 2 but in the actual directory it was /var/www/clients/client1/web1. It should be /var/www/clients/client1/web2 and not web1.

So what is the proper way of correcting this?

BTW, all the files is under web1 and web2 is empty. I want to transfer also all the files under web1 to web2 folder.

Do I need to delete the shell-user?
Can I remove the symlink again and create a new one with the correct directory? Like

mydomain.com -> /var/www/clients/client1/web1/
#rm mydomain.com
and
#ln -s /var/www/clients/client1/web2/ /var/www/mydomain.com

Can I do this? I'm afraid my site will not function again if I remove and add symlink again.
Reply With Quote