Deleted /var/www

Discussion in 'Installation/Configuration' started by wpwood3, Nov 9, 2007.

  1. wpwood3

    wpwood3 New Member

    I was trying to delete one of my websites via ISPConfig and it deleted the ENTIRE /var/www directory!

    I have backups of all of my webdata but ISPConfig is not working correctly.
    Here's what I plan to do. Please let me know if there's something I missing.

    1) Uninstall ISPConfig (using the uninstaller)

    2) Remove the conf files in /etc/httpd/conf/vhosts

    3) Reinstall ISPConfig

    4) Re-create my website in ISPConfig

    5) Restore my website data

    Is there anything I'm missing?
  2. wpwood3

    wpwood3 New Member


    Ok I have done the following:
    - restored: /var/www
    - reinstalled ISPConfig
    - recreated my 2 webs in ISPConfig (empty so far, no data yet)

    The first problem I ran into was that whenever I try to recreate my email users in ISPConfig it says they already exist. As a result, I looked in /etc/group and /etc/passwd and deleted the old users.

    Unfortunately, ISPConfig still will not let me create these users again. I assume ISPConfig read the group & passwd files when I installed it? At that time the users still existed there. Or, mabe there is another userlist somewhere that I am unaware of. Postfix? Dovecot?

    How do I create these users again?
    Last edited: Nov 9, 2007
  3. wpwood3

    wpwood3 New Member

    Some progress...

    I executed the following command and it found and deleted my old users:
    Unfortunately, ISPConfig still says they exist and will not let me create them.

    I tried a reboot but, it did not help.
    Last edited: Nov 9, 2007
  4. flummi

    flummi New Member

    As far as I know, the old users from the previous install are stored in /home/admispconfig/ispconfig/users (to prevent that a user is created twice).
    Delete the users that you want to create from that file.
  5. wpwood3

    wpwood3 New Member

    THANK YOU!!!
  6. wpwood3

    wpwood3 New Member

    Life is good!

    Backups are restored and we're back in business.

    flummi's input was the one key thing I was missing.

    Thanks again!

    However, I fear there is a bug in ISPConfig.
    Read my thread about /etc/group
    Last edited: Nov 10, 2007
  7. apalgoel

    apalgoel New Member

    How to restore /var/www

    HI buddy,

    I did the same mistake and I reallllllly need your help. I have taken the backups of my latest databases as I did the backup of my files+database one month back. Once all things will be well I will be restoring my files and then connect them with the latest database.
  8. falko

    falko Super Moderator ISPConfig Developer

    If you have a backup of /var/www, just restore it. Make sure you prevent permissions.

Share This Page