#1  
Old 9th November 2007, 22:40
wpwood3 wpwood3 is offline
Senior Member
 
Join Date: Oct 2007
Location: Atlanta, GA USA
Posts: 197
Thanks: 21
Thanked 31 Times in 21 Posts
Angry Deleted /var/www

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?
__________________
CentOS 5.4 64bit (the Perfect Setup)
ISPConfig 2.2.40
WP3 Photography
Reply With Quote
Sponsored Links
  #2  
Old 10th November 2007, 00:05
wpwood3 wpwood3 is offline
Senior Member
 
Join Date: Oct 2007
Location: Atlanta, GA USA
Posts: 197
Thanks: 21
Thanked 31 Times in 21 Posts
Question update

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?
__________________
CentOS 5.4 64bit (the Perfect Setup)
ISPConfig 2.2.40
WP3 Photography

Last edited by wpwood3; 10th November 2007 at 00:15.
Reply With Quote
  #3  
Old 10th November 2007, 00:34
wpwood3 wpwood3 is offline
Senior Member
 
Join Date: Oct 2007
Location: Atlanta, GA USA
Posts: 197
Thanks: 21
Thanked 31 Times in 21 Posts
Default Some progress...

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

I tried a reboot but, it did not help.
__________________
CentOS 5.4 64bit (the Perfect Setup)
ISPConfig 2.2.40
WP3 Photography

Last edited by wpwood3; 10th November 2007 at 00:41.
Reply With Quote
  #4  
Old 10th November 2007, 01:33
flummi flummi is offline
Junior Member
 
Join Date: Nov 2007
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.
Reply With Quote
The Following User Says Thank You to flummi For This Useful Post:
wpwood3 (10th November 2007)
  #5  
Old 10th November 2007, 01:38
wpwood3 wpwood3 is offline
Senior Member
 
Join Date: Oct 2007
Location: Atlanta, GA USA
Posts: 197
Thanks: 21
Thanked 31 Times in 21 Posts
Default

Quote:
Originally Posted by flummi
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.
THANK YOU!!!
__________________
CentOS 5.4 64bit (the Perfect Setup)
ISPConfig 2.2.40
WP3 Photography
Reply With Quote
  #6  
Old 10th November 2007, 02:58
wpwood3 wpwood3 is offline
Senior Member
 
Join Date: Oct 2007
Location: Atlanta, GA USA
Posts: 197
Thanks: 21
Thanked 31 Times in 21 Posts
Talking 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
__________________
CentOS 5.4 64bit (the Perfect Setup)
ISPConfig 2.2.40
WP3 Photography

Last edited by wpwood3; 10th November 2007 at 06:57.
Reply With Quote
  #7  
Old 5th January 2012, 16:22
apalgoel apalgoel is offline
Junior Member
 
Join Date: Jan 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
Reply With Quote
  #8  
Old 6th January 2012, 12:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
 
Default

If you have a backup of /var/www, just restore it. Make sure you prevent permissions.
__________________
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
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
Restore deleted Logfiles TobiasTM Server Operation 3 16th October 2007 00:24
No files deleted after user deleted fareasd General 1 28th August 2007 15:44
Howto move /var/www other HDD ? Herbert Installation/Configuration 7 2nd December 2006 16:54
domains not deleted nenad Installation/Configuration 3 23rd September 2006 20:48
The reseller was not deleted. Hellbound General 2 6th September 2005 11:05


All times are GMT +2. The time now is 05:34.


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