Broken SYMLINK on client domain?? How to repair?

Discussion in 'General' started by giganet, Sep 5, 2007.

  1. giganet

    giganet New Member

    I have begun adding new clients to my server under ISPConfig.

    All seemd to be going fine, after uploading the images to one clients site VIA FTP was completed I then refreshed the browser which was viewing this clients domain.
    The server returned a 500!
    Not sure why I immediately went here 'var/www' thinking a problem could exist there- well the problem does exist there.

    Code:
    lrwxrwxrwx 1 www-data        web2    14 2007-09-02 13:02 www.darlenes-homes.com -> /var/www/web14
    lrwxrwxrwx 1 www-data        web1    13 2007-09-03 22:31 www.giganetwireless.com -> /var/www/web1
    drwxrwxrw- 3 www-data        web3  4096 2007-09-03 00:30 www.highcountryhomesofanza.com
    
    www.highcountryhomesofanza.com has no symlink pointing to 'web3' and it's permissions are all screwed-up.

    One other problem here is 'www.darlenes-homes.com' symlinked to 'web14'[don't have a client 14] rather than 'web2'


    Can someone guide me in restoring proper configuration to these symlinks?

    Thank you

    Regards
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Any errors in /home/admispconfig/ispconfig/ispconfig.log?

    Did you create some other web sites and deleted them after web1? MySQL always increments the number, that's why it's web14 now, not web2.
     
  3. giganet

    giganet New Member

    Thank you Falko...


    With respect to '/home/admispconfig/ispconfig/ispconfig.log'
    This log appears to be populated primarily with what is pasted below:

    Code:
    05.09.2007 - 23:59:07 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 96: cat /dev/null > /var/log/xferlog.www.highcountryhomesofanza.com
    05.09.2007 - 23:59:07 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 121: rm -f /var/log/xferlog.www.highcountryhomesofanza.com
    05.09.2007 - 23:59:07 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 124: rm -f /var/log/xferlog.05-09-07_23-59-01
    06.09.2007 - 23:59:02 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/proftpd stop &> /dev/null
    06.09.2007 - 23:59:02 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 58: cp -f /var/log/xferlog /var/log/xferlog.06-09-07_23-59-01
    06.09.2007 - 23:59:02 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 60: touch /var/log/xferlog.ispconfigsave
    06.09.2007 - 23:59:02 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 61: cat /var/log/xferlog >> /var/log/xferlog.ispconfigsave
    06.09.2007 - 23:59:03 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/proftpd start &> /dev/null
    06.09.2007 - 23:59:03 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 96: cat /dev/null > /var/log/xferlog.www.giganetwireless.com
    06.09.2007 - 23:59:04 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 121: rm -f /var/log/xferlog.www.giganetwireless.com
    06.09.2007 - 23:59:04 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 96: cat /dev/null > /var/log/xferlog.www.darlenes-homes.com
    06.09.2007 - 23:59:05 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/postfix stop &> /dev/null
    06.09.2007 - 23:59:05 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 53: cp -f /var/log/mail.log /var/log/mail.log.06-09-07_23-59-01
    06.09.2007 - 23:59:05 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 121: rm -f /var/log/xferlog.www.darlenes-homes.com
    06.09.2007 - 23:59:05 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 96: cat /dev/null > /var/log/xferlog.www.highcountryhomesofanza.com
    06.09.2007 - 23:59:05 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 55: touch /var/log/mail.log.ispconfigsave
    06.09.2007 - 23:59:05 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 56: cat /var/log/mail.log >> /var/log/mail.log.ispconfigsave
    06.09.2007 - 23:59:05 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 121: rm -f /var/log/xferlog.www.highcountryhomesofanza.com
    06.09.2007 - 23:59:05 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 124: rm -f /var/log/xferlog.06-09-07_23-59-01
    06.09.2007 - 23:59:07 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/postfix start &> /dev/null
    06.09.2007 - 23:59:07 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 123: rm -f /home/admispconfig/mailstats/web1_pres
    06.09.2007 - 23:59:07 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 123: rm -f /home/admispconfig/mailstats/web1_webmaster
    06.09.2007 - 23:59:07 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 123: rm -f /home/admispconfig/mailstats/web1_priv
    06.09.2007 - 23:59:07 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 123: rm -f /home/admispconfig/mailstats/web1_wadmin
    06.09.2007 - 23:59:07 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 123: rm -f /home/admispconfig/mailstats/web1_ewright
    06.09.2007 - 23:59:07 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 136: rm -f /var/log/mail.log.www.giganetwireless.com
    06.09.2007 - 23:59:07 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 136: rm -f /var/log/mail.log.www.darlenes-homes.com
    06.09.2007 - 23:59:07 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 136: rm -f /var/log/mail.log.www.highcountryhomesofanza.com
    06.09.2007 - 23:59:07 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 138: rm -f /var/log/mail.log.06-09-07_23-59-01

    Regarding your quetion to me:

    These are the only 3 web-sites ever created in this freshly installed version of ISPConfig.
    You can see in the example below that www.highcountryhomesofanza.com is 'web3' just as www.giganetwireless.com is 'web1' and www.darlenes-homes.com is 'web2' but it's symlink is pointing to 'web14' which should not even exist???

    Code:
    lrwxrwxrwx 1 www-data        web2    14 2007-09-02 13:02 www.darlenes-homes.com -> /var/www/web14
    lrwxrwxrwx 1 www-data        web1    13 2007-09-03 22:31 www.giganetwireless.com -> /var/www/web1
    drwxr-xr-x 3 www-data        web3  4096 2007-09-06 15:15 www.highcountryhomesofanza.com
    How web14 was created is beyond me unless it was saved in the MySQL db from when I un-installed the unstable 3.2.3 BETA verion of ISPConfig prior to re-installing the stable 2.2.16 version of ISPConfig??
    I di follow your published method of making sure all traces of ISPConfig are gone from your server before I re-installed 2.2.16, granted no changes to MySQL was made during that process though.

    Is there a safe way to modify these two trouble symlinks?

    Thank you Falko for your help...

    Rergards
     
  4. falko

    falko Super Moderator Howtoforge Staff

    The log looks ok.
    That might be the problem...

    Try this:

    Code:
    ln -sf /var/www/web2 /var/www/www.darlenes-homes.com
    mv /var/www/www.highcountryhomesofanza.com /var/www/www.highcountryhomesofanza.com_orig
    ln -sf /var/www/web3 /var/www/www.highcountryhomesofanza.com
     
  5. giganet

    giganet New Member

    Thank you Falko...

    Alright I ran those commands and there was change as I will post below...

    Code:
    drwxr-xr-x 9 web1_webmaster  web1  4096 2007-09-08 14:30 web1
    drwxr-xr-x 9 web14_webmaster web14 4096 2007-09-08 15:17 web14
    drwxr-xr-x 8 web2_webmaster  web2  4096 2007-09-05 16:00 web2
    drwxr-xr-x 8 web3_webmaster  web3  4096 2007-09-06 15:07 web3
    drwxr-xr-x 2 root            root  4096 2007-08-27 11:20 webalizer
    lrwxrwxrwx 1 www-data        web2    14 2007-09-02 13:02 www.darlenes-homes.com -> /var/www/web14
    lrwxrwxrwx 1 www-data        web1    13 2007-09-03 22:31 www.giganetwireless.com -> /var/www/web1
    lrwxrwxrwx 1 root            root    13 2007-09-08 15:19 www.highcountryhomesofanza.com -> /var/www/web3
    drwxr-xr-x 3 www-data        web3  4096 2007-09-06 15:15 www.highcountryhomesofanza.com_orig
    

    Now 'www.highcountryhomesofanza.com' pointing towards 'web3' as it should, the site is not accessible by means of browser or FTP.

    'www.darlenes-homes.com' also needs to point to 'web2' rather than 'web14'.

    Jeez, I am tempted to delete the accounts entirely and empty the Recycle Bins in ISPConfig prior to re-adding, I am just hesitant due to what I went through considering when I had 3.2.3 it wouldn't allow me to re-add deleted domains no matter how empty the recylce bins were....

    What would you consider best in this case Falko?

    Thanks for your help...

    Regards
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    There is no version 3.2.3 of ISPConfig, I fuess you mena the development branch 2.3.2. The releases from the development branch should not be used in production enviroments.

    If you can not create a domain again, it has not been removed from the recycle bin. Please check all recycle bins.
     
  7. giganet

    giganet New Member

    Thanks for the reply..

    Excuse me, 2.3.2.


    Yeah, I realize that should allow a once deleted domain to be re-added to ISPConfig.

    But- It DID NOT allow me to re-enter a once deleted domain to 2.3.2.
    I went through virtually each and every recycle bin before trying to re-add a deleted domain, ISPConfig would not accept the domain again period... end of story.

    I will try deleting these accounts and see if then cleaning all Recycle Bins will alllow me to re-enter the domains again into 2.2.16????

    Thanks

    Regards
     

Share This Page