Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Technical

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th May 2008, 16:21
cruz cruz is offline
Senior Member
 
Join Date: Apr 2007
Posts: 365
Thanks: 51
Thanked 2 Times in 2 Posts
Default shortcuts in var/www pointing to wrong directory

I reloaded a few websites, but now when I go into the var/www, the domain directory shortcuts are pointing to the old site. like one is web1 when it is now web5. How do I redirect these to the correct directory? Thank you for having this site.
New info- I went into var/www with winSCP and clicked on the shortcut of the dir that Is in question. It took me to the var/www/web1 dir. but that is the old dir that I do not have any more. There are no files in it. The same with the other sites shortcut. It is pointing to the old dir.

Last edited by cruz; 7th May 2008 at 16:35.
Reply With Quote
Sponsored Links
  #2  
Old 8th May 2008, 21:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

You can change the symlinks like this:

Code:
ln -sf /var/www/web1 /var/www/www.example.com
where /var/www/www.example.com is a symlink and /var/www/web1 is the new target directory.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
cruz (9th May 2008)
  #3  
Old 9th May 2008, 23:22
cruz cruz is offline
Senior Member
 
Join Date: Apr 2007
Posts: 365
Thanks: 51
Thanked 2 Times in 2 Posts
Default Still not corect.

I ran the commands and changes to match my files. I still get errors. I use winSCP to enter the server. when I get to var/www/ I can see the 3 webistes domain names. when I dubble click on the site I get
HTML Code:
No such file or directory.
Error code: 2
Error message from server: No such file
Request code: 11
It is looking for web1. There is no web 1 any more. But when I right click the domain shortcut and go to property, it tells me that the group is web19 and the and the owner is www-data. these are both correct.
Why is it not fixing the redirect after I run the commands you gave me ? Is this a big deal in the the running of the websites? because I am having trubble when people try to register, they are getting a 404 error page comes up.

Last edited by cruz; 9th May 2008 at 23:25.
Reply With Quote
  #4  
Old 10th May 2008, 17:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's the output of
Code:
ls -la /var/www/
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 13th May 2008, 21:51
cruz cruz is offline
Senior Member
 
Join Date: Apr 2007
Posts: 365
Thanks: 51
Thanked 2 Times in 2 Posts
 
Default I fixed it

I just ran. ln -sf /var/www/www.apostolichearts.com /var/www/web26 and it fixed it
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
add web site serr57 Installation/Configuration 18 13th April 2008 11:40
update failed loge Installation/Configuration 6 1st December 2007 17:53
directories in /home/admispconfig/ispconfig renamed? Spudchat General 10 12th April 2007 19:37
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17
Mysterious Install Problem tgansert Installation/Configuration 5 9th May 2006 15:35


All times are GMT +2. The time now is 00:14.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.