#171  
Old 16th June 2009, 08:52
reason8 reason8 is offline
Senior Member
 
Join Date: Aug 2008
Posts: 136
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
Make a backup of /etc/passwd, /etc/shadow, /etc/group, Vhosts_ispconfig.conf, /etc/postfix/local-host-names, /etc/postfix/virtusertable, named.conf, all the pri.* zone files, /etc/proftpd*.conf. Also create sql dumps of your MySQL databases (either with phpMyAdmin or on the command line: http://www.howtoforge.com/faq/6_3_en.html ) and make a backup of /home/www on the old server:

Code:
cd /home
tar -pczf www.tar.gz www/
Stop Postfix:
Code:
/etc/init.d/postfix stop
If you use mbox, also make a backup of /var/spool/mail:
Code:
cd /var/spool
tar -pczf mail.tar.gz mail/
If you use Maildir, the mailboxes are included in www.tar.gz.

On the new server:
First install ISPConfig.
Create the databases from the sql dumps (either with phpMyAdmin or like this: http://www.howtoforge.com/faq/6_4_en.html ). Also replace the ISPConfig database with the old one.
Regarding the mysql database: have a look at the users and db table and add the user /db lines that don't exist on the new server but on the old server.
Copy local-host-names and virtusertable to /etc/postfix; open local-host-names and replace the old hostname with the new one. Run
Code:
postmap /etc/postfix/virtusertable
and restart Postfix.
Replace Vhosts_ispconfig.conf with the one from the old server; then open it and replace the old IP address with the new one. Transfer www.tar.gz to /home and unpack it:
Code:
cd /home
mv www www_orig
tar xvfz www.tar.gz
If you had to make a backup of /var/spool/mail, transfer mail.tar.gz to /tmp and do this:
Code:
cd /tmp
tar xvfz mail.tar.gz
cd mail
cp -pf web* /var/spool/mail/
Have a look at your backups of /etc/passwd, /etc/shadow and /etc/group and add the lines that don't exist in these files on the new server to /etc/passwd, /etc/shadow and /etc/group on the new server.
Transfer named.conf and all pri.* files to the new server. Also all proftp*.conf files; open them and replace the old IP address with the new one - also do this with the file names of the proftpd*.conf files. Restart ProFTPd:
Code:
/etc/init.d/proftpd restart
Restart Apache:
Code:
/etc/init.d/apache restart
Log in to ISPConfig and go to Management -> Server -> Settings and change the IP address(es) there. Then go to the DNS Manager and also changes the IP addresses in the DNS records, if necessary.

On the old server, create a Postfix transport now so that all emails are forwarded to the ne server (for the time until the MX records of your domains have switched to the new server):
Code:
echo "*  smtp:[<IP address of new server>]" >> /etc/postfix/transport
postmap /etc/postfix/transport
/etc/init.d/postfix restart
On the new server, open /etc/postfix/local-host-names and add the hostname of the old server at the bottom so that the new server accepts the forwarded mails.


Lots of steps to do... (if you want, you can have Till and me do that, but it's not free. Have a look here: http://www.ispconfig.org/support.htm ).
What if you dont have a Vhosts_ispconfig.conf? I have /etc/apache2/sites-available/ispconfig.conf and /etc/apache2/sites-enabled/000-ispconfig.conf
Also, I dont know what I named the MySQL DB (not exactly atleast). Where would I find this in the config files? I did a updatebd and locate but nothing is coming up.

Thanks!
__________________
Running:

Dynamic DNS
openSUSE Linux 11.1

Last edited by reason8; 16th June 2009 at 09:11.
Reply With Quote
Sponsored Links
  #172  
Old 16th June 2009, 15:13
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,557
Thanks: 791
Thanked 4,977 Times in 3,899 Posts
Default

This thread is about ISPConfig 2 and not ISPConfig 3! ISPConfig 2 is a completely different software and everything posted about ISPConfig 2 does not apply to ISPConfig 3.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #173  
Old 17th July 2009, 17:05
thetekgeek thetekgeek is offline
Member
 
Join Date: Oct 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I followed this tutorial (in post #2) to move my ispconfig to a new server.

Everything went well, until I went to log into ISPConfig on port 81.

This is what I get

Code:
Warning: session_start() [function.session-start]: open(/tmp/sess_48970c3d56568db252bbc22664b59850, O_RDWR) failed: Permission denied (13) in /home/admispconfig/ispconfig/web/login.php on line 29

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/admispconfig/ispconfig/web/login.php:29) in /home/admispconfig/ispconfig/web/login.php on line 29

Warning: include(../lib/config.inc.php) [function.include]: failed to open stream: Permission denied in /home/admispconfig/ispconfig/web/login.php on line 30

Warning: include() [function.include]: Failed opening '../lib/config.inc.php' for inclusion (include_path='.:') in /home/admispconfig/ispconfig/web/login.php on line 30

Warning: require_once(login/lib/lang/.lng) [function.require-once]: failed to open stream: No such file or directory in /home/admispconfig/ispconfig/web/login.php on line 31

Fatal error: require_once() [function.require]: Failed opening required 'login/lib/lang/.lng' (include_path='.:') in /home/admispconfig/ispconfig/web/login.php on line 31

Warning: Unknown: open(/tmp/sess_48970c3d56568db252bbc22664b59850, O_RDWR) failed: Permission denied (13) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
I am not sure why. I am sure that I replaced something in a config file that I should not have, but not sure where to look.

Any ideas?
Reply With Quote
  #174  
Old 17th July 2009, 17:27
brainz brainz is offline
Senior Member
 
Join Date: Feb 2006
Location: Sydney, Australia
Posts: 165
Thanks: 9
Thanked 3 Times in 1 Post
Wink

From what i can tell it seems to be a permissions problem...

also there is a file missing...

No such file or directory in /home/admispconfig/ispconfig/web/login.php on line 31

But ill let the experts... Take over from here..

regards
brainz
__________________
www.baktim.com
Reply With Quote
  #175  
Old 18th July 2009, 11:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

What are the outputs of
Code:
ls -la /tmp/
and
Code:
df -h
?
__________________
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
  #176  
Old 19th July 2009, 19:41
thetekgeek thetekgeek is offline
Member
 
Join Date: Oct 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

output of: ls -la /tmp/
Code:
total 36
drwxrwxrwt  4 root root 4096 2009-07-19 04:29 .
drwxr-xr-x 23 root root 4096 2009-07-17 08:46 ..
drwxrwxrwt  2 root root 4096 2009-07-17 08:46 .ICE-unix
drwxrwxr-x  2 root mail 4096 2009-07-17 08:10 mail
-rw-------  1 root root 1024 2009-07-16 08:50 .rnd
-rw-------  1 root root    0 2009-07-18 00:30 sess_09456af3aa07623da0c27305b3776                                                                             ef2
-rw-------  1 root root    0 2009-07-18 23:59 sess_0e5d16e22cbe637203dfc933e4b32                                                                             594
-rw-------  1 root root    0 2009-07-16 17:51 sess_197d9fe80c038b86dd6d20e60a6a0                                                                             b4a
-rw-------  1 root root    0 2009-07-19 00:40 sess_27effcddfec1b66c7dd0793f2944f                                                                             b71
-rw-------  1 root root    0 2009-07-17 00:30 sess_2f8c5c03eac50a665320fb04f3e24                                                                             fb5
-rw-------  1 root root    0 2009-07-19 04:00 sess_36c5a559dde3fce5d9b8dcf4eb52d                                                                             24d
-rw-------  1 root root    0 2009-07-16 23:59 sess_383de5cc11b0a41e93aee51995b7f                                                                             e83
-rw-------  1  500  500   25 2009-07-16 17:35 sess_48970c3d56568db252bbc22664b59                                                                             850
-rw-------  1 root root    0 2009-07-18 15:15 sess_4e998de5a51d85170a34f826c626f                                                                             88c
-rw-------  1 root root    0 2009-07-18 03:15 sess_6277ac4e00b8b84ef957fe3984522                                                                             8d1
-rw-------  1 root root    0 2009-07-17 09:01 sess_73afb68c505ec1acb6ed75b07b2fb                                                                             fd1
-rw-------  1 root root    0 2009-07-17 00:40 sess_7c35e40e27fa2e512d570eb7180e3                                                                             920
-rw-------  1 root root    0 2009-07-17 23:59 sess_8584b5cd41843f1cf645c6cec0846                                                                             221
-rw-------  1 root root    0 2009-07-18 00:40 sess_898608bde95fd078b527c371dd0d9                                                                             537
-rw-------  1 root root    0 2009-07-18 02:05 sess_8b9fef10d5acb7afb087413d136f0                                                                             215
-rw-------  1 root root    0 2009-07-19 00:30 sess_8d4d91f857576a47691a62e5bc78c                                                                             8d5
-rw-------  1 root root    0 2009-07-17 23:59 sess_8e6abc0c723111ca98c7315f0888f                                                                             6dc
-rw-------  1 root root    0 2009-07-18 23:59 sess_9253f347cb3d71f38dcf282dab6b2                                                                             4d4
-rw-------  1 root root    0 2009-07-19 02:05 sess_95cd348c2299dc14455cb5a6fe8b2                                                                             4b0
-rw-------  1 root root    0 2009-07-16 16:12 sess_9d80cce08844c89cdf2aebcbc1535                                                                             4bb
-rw-------  1 root root    0 2009-07-17 08:46 sess_a9574237f32f72f848371da909f72                                                                             c17
-rw-------  1 root root    0 2009-07-16 23:59 sess_a9e291a5a434a5c693c8b382ae6a4                                                                             47e
-rw-------  1 root root    0 2009-07-17 04:00 sess_aa3fd84cecc49628808c9cc2e8baa                                                                             fd1
-rw-------  1 root root    0 2009-07-17 02:05 sess_ad753448694ad6135361296418ef0                                                                             3f5
-rw-------  1 root root    0 2009-07-19 03:15 sess_af6bf170da870e1858b2d104c18c1                                                                             35f
-rw-------  1 root root    0 2009-07-17 03:15 sess_bbf72f00947cdd7167e21ad0c1db4                                                                             472
-rw-------  1 root root    0 2009-07-16 23:59 sess_c5ceeb930311ccf2c64e11bc25717                                                                             e9d
-rw-------  1 root root    0 2009-07-18 04:00 sess_cb039e684d40073795a7db035df21                                                                             07c
-rw-------  1 root root    0 2009-07-17 23:59 sess_d671c468c24da27a8ccdcdadf2411                                                                             94e
-rw-------  1 root root    0 2009-07-17 15:15 sess_decf60161fde62e1fa7cecc57093c                                                                             bdd
-rw-------  1 root root    0 2009-07-18 23:59 sess_f33260b4147009c6b17ded9a7ce0d                                                                             400
-rw-------  1 root root    0 2009-07-16 16:12 sess_fb7fdfcb8566c0fad14e94bb6d3e0                                                                             b1c
output of: df -h
Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                       72G  3.0G   65G   5% /
/dev/sda1             190M   13M  169M   7% /boot
tmpfs                 220M     0  220M   0% /dev/shm
Reply With Quote
  #177  
Old 20th July 2009, 13:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Can you run
Code:
rm -f /tmp/sess_*
and try again?
__________________
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
  #178  
Old 20th July 2009, 16:49
thetekgeek thetekgeek is offline
Member
 
Join Date: Oct 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

After running

rm -f /tmp/sess_*

I get this when I try to log into the admin console

Code:
Warning: include(../lib/config.inc.php) [function.include]: failed to open stream: Permission denied in /home/admispconfig/ispconfig/web/login.php on line 30

Warning: include() [function.include]: Failed opening '../lib/config.inc.php' for inclusion (include_path='.:') in /home/admispconfig/ispconfig/web/login.php on line 30

Warning: require_once(login/lib/lang/.lng) [function.require-once]: failed to open stream: No such file or directory in /home/admispconfig/ispconfig/web/login.php on line 31

Fatal error: require_once() [function.require]: Failed opening required 'login/lib/lang/.lng' (include_path='.:') in /home/admispconfig/ispconfig/web/login.php on line 31
Seems better than before.
Reply With Quote
  #179  
Old 20th July 2009, 19:05
thetekgeek thetekgeek is offline
Member
 
Join Date: Oct 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I did a reinstall of ISPConfig by downloading the install package again, it went through the install and everything seems to work now.
Reply With Quote
  #180  
Old 6th March 2010, 13:52
pbrille pbrille is offline
Junior Member
 
Join Date: Sep 2009
Posts: 21
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default moving server AND Upgrading

I'm moving from an old Suse 10.1 Server with ISPConfig 2.2.16 to a new Debian Lenny with ISPConfig 2.2.25.
What do I need to know in this special scenario when moving all my files?
Can I just do a full "mysqldump --all-databases" on the old server and then fully restore on the new server?

Thanks a lot!
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
cannot access ispconfig site Nu2Linux Installation/Configuration 13 3rd January 2009 15:29
Users and websites aren't created Glorfindel Installation/Configuration 9 23rd February 2006 04:20
42goISP vs. ISPConfig nveid General 1 16th January 2006 09:07
Mirroring ISPConfig with DRBD rodriglm General 5 2nd January 2006 12:48
Moving mail in ISPConfig rodriglm General 3 7th December 2005 09:44


All times are GMT +2. The time now is 07:58.


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