
6th December 2007, 09:22
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,885
Thanks: 691
Thanked 4,188 Times in 3,205 Posts
|
|
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.
|

6th December 2007, 15:02
|
|
Senior Member
|
|
Join Date: Oct 2005
Posts: 547
Thanks: 10
Thanked 42 Times in 41 Posts
|
|
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
|

10th December 2007, 17:03
|
|
Junior Member
|
|
Join Date: Feb 2007
Posts: 22
Thanks: 7
Thanked 2 Times in 2 Posts
|
|
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!
|

11th December 2007, 14:12
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
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.
|

29th January 2008, 15:52
|
|
Junior Member
|
|
Join Date: Jun 2007
Location: Leeuwarden, The Netherlands
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
[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
|

29th January 2008, 18:50
|
|
Senior Member
|
|
Join Date: Nov 2006
Location: Poland,Włocławek
Posts: 369
Thanks: 22
Thanked 39 Times in 34 Posts
|
|
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 <?.
|

28th February 2008, 00:17
|
|
Junior Member
|
|
Join Date: May 2007
Posts: 19
Thanks: 8
Thanked 0 Times in 0 Posts
|
|
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,
|

28th February 2008, 20:04
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
How did you copy over the ISPConfig database from server A to B?
|

28th February 2008, 22:31
|
|
Junior Member
|
|
Join Date: May 2007
Posts: 19
Thanks: 8
Thanked 0 Times in 0 Posts
|
|
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...
|

29th February 2008, 10:52
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,885
Thanks: 691
Thanked 4,188 Times in 3,205 Posts
|
|
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
|
|
The Following User Says Thank You to till For This Useful Post:
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 10:06.
|
Recent comments
7 hours 42 min ago
12 hours 41 min ago
14 hours 7 min ago
15 hours 49 sec ago
16 hours 43 min ago
21 hours 7 min ago
21 hours 59 min ago
1 day 12 min ago
1 day 13 hours ago
1 day 14 hours ago