One of the sites not linking to the folder

Discussion in 'General' started by itsimon, May 25, 2008.

  1. itsimon

    itsimon New Member

    Hi there:
    Can anyone help me with this?
    There is an error in the ispconfg log:

    WARNING: could not ln -s /var/www/web94 /var/www/www.mysite.co.nz
    mysite:x:10124:10094::/var/www/web94/user/mysite:/bin/false

    And I've found that the site can be browserd normally. The only problem is the weblizer for this site is not updating any more.

    Cheers,

    Simon
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    ls -la | grep web94

    and:

    ls -la | grep www.mysite.co.nz
     
  3. itsimon

    itsimon New Member

    Hi Till:
    Thanks for your reply. :)
    Here is the output:
    ls -la | grep web94
    drwxr-xr-x 8 kdl142 web94 4096 Apr 28 17:16 web94
    ls -la | grep www.mysite.co.nz
    drwxr-xr-x 3 root root 4096 May 26 09:29 www.mysite.co.nz

    cheers

    Simon
     
  4. itsimon

    itsimon New Member

    Thanks Till. I can see the user and group of this site is incorrect. I've changed it to the correct user and group. How do I link them again?
     
  5. falko

    falko Super Moderator Howtoforge Staff

    /var/www/www.mysite.co.nz should be a symlink to /var/www/web94, but instead it is a directory. Did you create it manually?
     
  6. itsimon

    itsimon New Member

    Thank you for the reply, Falko. No, I didn't create it manually. Not sure why the owner and group are changed. Is that possible to recover it?
     
  7. falko

    falko Super Moderator Howtoforge Staff

    Is there anything in /var/www/www.mysite.co.nz, or is it empty? If it's not empty, do you need the contents of /var/www/www.mysite.co.nz?
     
  8. itsimon

    itsimon New Member

    Here are the contents.

    drwxr-xr-x 3 apache web94 4096 May 26 09:29 .
    drwxr-xr-x 68 root root 4096 May 28 13:53 ..
    drwxr-xr-x 3 apache web94 4096 May 2 00:30 log
    lrwxrwxrwx 1 apache web94 14 May 26 09:29 web94 -> /var/www/web94

    The only problem is that, the weblizer for this site is not updating any more. I can only see the web statistics of April. Not for May.
     
  9. falko

    falko Super Moderator Howtoforge Staff

    So the directory is empty except for a symlink and a log diretory which you don't need.
    To fix your problems, do the following:
    Code:
    rm -fr /var/www/www.mysite.co.nz
    ln -s /var/www/web94 /var/www/www.mysite.co.nz
     
  10. itsimon

    itsimon New Member

    Thank you Falko. I've just done that. All looks good. I will keep testing it.
     
  11. itsimon

    itsimon New Member

    I've tested it and it's running very well. Thanks again Falko. Very appreciate it.
    There is only one more little thing. The web statistic of April is good and after I followed the instruction as you posted, the web statistic of June is working very well. However, the statistic of May is not displayed. Is there any way to load that?
     
  12. falko

    falko Super Moderator Howtoforge Staff

    Only if you have the access log for May somewhere in the log folder.
     
  13. itsimon

    itsimon New Member

    Thanks Falko. :)
     

Share This Page