#91  
Old 6th December 2007, 09:22
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,505
Thanks: 813
Thanked 5,266 Times in 4,129 Posts
Default

Quote:
Do I need to make a backup of the following mysql databases:
mysql
information_schema
The "mysql" database has to be included in the backup too.

Quote:
The question is that, lets say the main server goes down. Can I use this procedure to restore the backup into the secondary server?
Yes, this should work. But you should test the procedure for your installation. Instead of moving the data in the tar.gz files, you can sync the data between the servers e.g. every 15 minutes with rsync.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Sponsored Links
  #92  
Old 6th December 2007, 15:02
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Till,

You are absolutely correct and I will implement rsync. However, I don't have the time to do this as I'm leaving on my vacation.

So for now, I just have to hope that nothing happens while I'm gone. As for data changing, we pretty much have static data so nothing really changes unless we change it.

Having this backup just makes me feel a bit as ease.

Thanks again,


Rocky
__________________
Home of the SpamSnake
Reply With Quote
  #93  
Old 10th December 2007, 17:03
zeeman zeeman is offline
Junior Member
 
Join Date: Feb 2007
Posts: 22
Thanks: 7
Thanked 2 Times in 2 Posts
Send a message via ICQ to zeeman
Default

I've got a little quasion about postfixs transport:
Quote:
Originally Posted by falko
Code:
echo "smtp  *:[<IP address of new server>]" >> /etc/postfix/transport
postmap /etc/postfix/transport
/etc/init.d/postfix restart
I googled a little bit around to get to know what this line really does.
Everywhere I found the example
Code:
domain.tld smtp:[<IP address of new server>]
.domain.tld smtp:[<IP address of new server>]
So I'm a little bit confused which to use.
I want to forward all mails from server A to server B. A and B use the same configuration (same users, uids, guids, webs and so on)

Thanks for the good explanation at the start of this thread!
Reply With Quote
  #94  
Old 11th December 2007, 14:12
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Use the first line if you have email addresses like user@domain.tld; use the second line if your email addresses look like this: user@sub.domain.tld.
__________________
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
  #95  
Old 29th January 2008, 15:52
pepo pepo is offline
Junior Member
 
Join Date: Jun 2007
Location: Leeuwarden, The Netherlands
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via ICQ to pepo Send a message via Skype™ to pepo
Default [SOLVED] Only half of the PHP pages work

Last nigth I used the quick howto of Falco to move my ISPconfig installation to a new server. (Thanks for this free support!)

After I was done I started testing and found something strange. Some PHP pages where blank, others showed parts php-code and there where pages that just worked.

Also a quick phpinfo page turned out blank.

Today I was playing around with one of the pages that didn't work right. After a while I had a bright idea. I changed <? for <?php in my phpinfo page and it worked. A little googleing tought me that in PHP 5.2.? short tags ar discouraged.

Now I was stuck with lots of pages that didn't work. The easy method would be to change httpd.comf settings to allow short tags, but I desided to figure out how to update all php pages with the right opening tag.

Here is a little script that loops through all the php pages in a directory and replaces <? with <?php.

#!/bin/bash
for fl in *.php; do
mv $fl $fl.old
sed 's/<? /<?php /g' $fl.old > $fl
rm -f $fl.old
done

I found a little drawback when you have both <? and <?php openingtags. I should figure out regular expressions to solve this. So I first ran the script twice, first like this:

#!/bin/bash
for fl in *.php; do
mv $fl $fl.old
sed 's/<?/<?php/g' $fl.old > $fl
rm -f $fl.old
done

and than

#!/bin/bash
for fl in *.php; do
mv $fl $fl.old
sed 's/<?phpphp/<?php /g' $fl.old > $fl
rm -f $fl.old
done

Maybe this script can be the start of a script to run through all the directories in /src/www, but that will be one for another time.

Hope this script can help someone.

Greetz,

Pepo
__________________
Bow before me for I am root

Succesfull moved ISPConfig from "Perfect Setup" OpenSUSE 10.0 to "Perfect Setup" OpenSUSE 10.3
Reply With Quote
  #96  
Old 29th January 2008, 18:50
Leszek Leszek is offline
Senior Member
 
Join Date: Nov 2006
Location: Poland,Włocławek
Posts: 369
Thanks: 22
Thanked 42 Times in 35 Posts
Send a message via Skype™ to Leszek
Default

That's useful pepo.
You can also manipulate php_flag short_open_tag Off|On in a .htaccess file to allow execution of php scripts started with <?php or just <?.
Reply With Quote
  #97  
Old 28th February 2008, 00:17
azidtripz azidtripz is offline
Junior Member
 
Join Date: May 2007
Posts: 19
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Hello everyone,

first i would like to state that ISPConfig is a fantastic bit of software.

though i am having some issues with moving to server B

here is my setup

Server A and B both have the same linux version and all software on both is up to date (same versions of mysql, php, ispconfig and so on)

i move everything other all files and databases and it all seams fine, in myphpadmin i look and all the databases are there, when i log into ISPConfig and goto the database section on my of my websites the database section doesnt show up, and then when i log back into myphpadmin and click on one of the databases from that website it then dissapears :S, i have no idea what could be doing thing but its proberly something easy to fix,
Reply With Quote
  #98  
Old 28th February 2008, 20:04
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

How did you copy over the ISPConfig database from server A to B?
__________________
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
  #99  
Old 28th February 2008, 22:31
azidtripz azidtripz is offline
Junior Member
 
Join Date: May 2007
Posts: 19
Thanks: 8
Thanked 0 Times in 0 Posts
Default

the first time i i just exported all the databases using phpmyadmin and then imported them on server B, though i couldn't add add the missing info out of database 'mysql' because it wouldn't show up, but existed, so to same me some more trouble, i zipped /var/lib/mysql, and then extracted it on server B, and all databases were showing fine until i went into ispconfig and into option of any sites...
Reply With Quote
  #100  
Old 29th February 2008, 10:52
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,505
Thanks: 813
Thanked 5,266 Times in 4,129 Posts
 
Default

You can try to download this version of ISPConfig and run a update on your system:

http://www.ispconfig.org/downloads/I...-stable.tar.gz
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
azidtripz (2nd March 2008)
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 17:07.


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