Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 4th November 2005, 14:58
mphayesuk mphayesuk is offline
Senior Member
 
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to mphayesuk
Default Things gone wrong after new hard drive

Ok under the advice of till in another firum I have put a new hard drive in my server and copied over all the data from /home to /home1 and then changed the fstab to swap them round and then commented out the old /home settings so that I could unplug the old hard drive.

During the copying process two things did'nt copy

1) sym link for my test site which I recreated.
2) maildir in ispconfig directory could not be copied so I sorted that out

No I have a problem with permissions in order to get to my testuser webmail through the control panel I have set the ispconfig directory permissions to 777, which is not good unless thats what it should be.... so any ideas as to what the problem is and how to fix it.

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 4th November 2005, 17:11
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,022
Thanks: 840
Thanked 5,655 Times in 4,464 Posts
Default

Have you copied the contents with owners and permissions preserved? Have a look at the options of the cp command.
Reply With Quote
  #3  
Old 4th November 2005, 17:19
mphayesuk mphayesuk is offline
Senior Member
 
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to mphayesuk
Default

nope did'nt do that and now I dont have access to the original hard drive..... do you think a re-install of ispconfig would fix the problem..... if so I delete the admispconfig directory right???? and then re-install.
Reply With Quote
  #4  
Old 4th November 2005, 17:21
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,022
Thanks: 840
Thanked 5,655 Times in 4,464 Posts
Default

No, a reinstall of ISPConfig wont help. But you can remount your old home partition as e.g. /mnt_home_old and then copy the files and directories again.
Reply With Quote
  #5  
Old 4th November 2005, 17:55
mphayesuk mphayesuk is offline
Senior Member
 
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to mphayesuk
Default

Hold on.... the only drive affected was the /home drive the rest of my suse install has not been touched so I thought if I re-install ispconfig it would fix the permissions.

And the old hard drive has been wiped so I either find out what permissions the directories had or I re-install ispconfig and hope it works.

Why wont the re-install work....

Failing that I will have to re-install everything..... so any other ideas would be good.
Reply With Quote
  #6  
Old 4th November 2005, 18:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Quote:
Originally Posted by mphayesuk
Why wont the re-install work....
Because ISPConfig doesn't care about permissions in the web folder. Imagine you have a script in your web directory that needs special permissions because otherwise it doesn't work. Now what would you think if ISPConfig changed those permissions? Not good...

You can re-install ISPConfig, but it needs a "fresh" system, i.e. you should delete all the web sites, users, etc. and then re-create them in the newly installed ISPConfig.
__________________
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
  #7  
Old 4th November 2005, 18:14
mphayesuk mphayesuk is offline
Senior Member
 
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to mphayesuk
Default

That will be fine I only have one test user with one web site... so all I do really is wipe the /home dir and the install ispconfig as I did when I first set-up the server....

Right????

Should I delete the user accounts from the ISPConfig control panel first.... or just wipe the lot from the hard drive.... I thinking will things be kept in sql or will the new install wipe sql for me as well.

Thanks
Reply With Quote
  #8  
Old 4th November 2005, 18:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

You can run
Code:
/root/ispconfig/uninstall
to uninstall ISPConfig. You should check afterwards if your webs in /home have been deleted, if not, delete them manually.
__________________
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
  #9  
Old 4th November 2005, 21:45
themachine themachine is offline
Senior Member
 
Join Date: Oct 2005
Location: Texas, USA
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In the future, what you want to do is:

Code:
cp -a /home /home1

The "-a" means "archive" mode... most notably this automatically includes the "-R" for recursive (all sub directories) as well as "-p" to *preserve* permissions and ownership. With out preserving permissions and ownership.. all of the files copied become the possession of the user copying the directory.
__________________
themachine
5dollarwhitebox.org
Reply With Quote
  #10  
Old 5th November 2005, 12:34
mphayesuk mphayesuk is offline
Senior Member
 
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to mphayesuk
 
Default

Thanks for the post I will print this off and keep it safe for future use.

Thanks everyone for all your posts.
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
Wrong quota messages Bruce General 10 15th September 2010 16:44
Suse 10 new Hard Drive install mphayesuk Installation/Configuration 5 1st November 2005 18:41
Share Hard Disk between 2 Linux Boxes rookie Technical 1 25th April 2005 12:39


All times are GMT +2. The time now is 03:53.


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