![]() |
problem with mirror setup and multiserver setup
Hi,
I installed ispconfig3 on 3 servers. 2 servers installed with mirror setup with this tutorial http://www.howtoforge.com/installing...th-ispconfig-3 with all service except DNS. It worked well but when I had the third server to DNS service with this tutorial http://www.howtoforge.com/installing...th-ispconfig-3 I had this problem Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ispconfig'@'localhost' (using password: YES) in /usr/local/ispconfig/interface/lib/classes/db_mysql.inc.php to resolv this problem I pasted the password found on /usr/local/ispconfig/server/lib/config.inc.php and i do this command mysql -u root -p use mysql; mysql> update user set password=PASSWORD("Password found on th file") where User='ispconfig'; flush privileges; quit I resolv the problem but I have a new error PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 78 PHP Warning: mysql_error() expects parameter 1 to be resource, boolean given in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 63 PHP Warning: mysql_error() expects parameter 1 to be resource, boolean given in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 64 Any idea?? please Thank you for all your answers |
Falko Till could you help me please to understand what is wrong or would like some additionals informations
the last week i did the same install and I had no problem with |
Quote:
in ispconfig/cron.log I have Code:
PHP Warning: mysql_connect(): Access denied for user 'ispcsrv4'@'ns1.myisp.be' (using password: YES) in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.phpI tried to launch ispconfig's update.php (and second time telling it reconfigure permissions) but it didn't change anything (maybe parameter 1 ... boolean actually appeared after that) In Master DB/ DB mysql/ Table user I have : Code:
Modifier Effacer ns1.myisp.be ispcsrv4 *FA44CAB3F0172E7017ED9F04D7AEE769ED03D4CB N N N N N N N N N N N N N N N N N N N N N N N N N N N N [BLOB - 0o] [BLOB - 0o] [BLOB - 0o] 0 0 0 0Please note that we had a bug in config : ns1 was mirror of ns2 AND ns2 was mirror of ns1 AND ns3 was mirror of ns2. Now ns1 is not a mirror anymore.. From ispconfig interface I cannot see anything on ns1 in monitor tab.. I don't have a clue of what to do next .. Keep on doing good work Cheers Abu Hurayra Edit : Forget to tell you : On ISPConfig Interface the status of ns1 is "ok" Well, Maybe it's ok but it seems it don't update anymore !! |
Do you have a problem only with the ns1 server or with the otherservers as well? And in which database did you update the ispconfig user manually?
|
Quote:
I checked on ns2 in /etc/bind/ It updates the config when I update DNS in ISPConfig interface Quote:
I launched Code:
php -q update.phpBut : - Every Slave server avec one mysql database where he has his own ispconfig info. - The master Server avec one mysql database where he puts his info and all slave synchronize Can I give you more info ? Thanks for this quick reply ! Abu Hurayra |
Please check the /etc/hosts files on all servers incl. the master server to ensure that they all contain the host lines for all servers that belong to this cluster.
and post the output of: ls -la /var/run/mysqld/ from the dns server. |
Quote:
Code:
root@mail:~# cat /etc/hostsQuote:
Code:
root@ns1:/tmp/ispconfig3_install/install# ls -la /var/run/mysqld/Code:
root@ns2:/etc/bind# ls -la /var/run/mysqldCode:
Apr 12 14:36:01 ns1 /USR/SBIN/CRON[26506]: (root) CMD (/usr/local/ispconfig/servI checked ifconfig eth0 and resolv.conf on ns1 and ns2, they are the same (with their own ip adress) Inchaallah it helps |
| All times are GMT +2. The time now is 13:04. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.