Topic: Install problems with remote mysql server
==== Required information ====
- iRedMail version: 0.9.1
- Store mail accounts in which backend (remote - MySQL 5.6.24):
- Web server (Apache):Apache
- Linux/BSD distribution name and version: Centos 7 x64
- Related log if you're reporting an issue:
====
Hi all,
I try to install iredmail with remote mysql server as it is described in website howto, but when iReadMail configuration has started, i receive errors.
[ INFO ] Create self-signed SSL certification files (2048 bits).
[ INFO ] Create required system account: vmail, iredadmin, iredapd.
[ INFO ] Configure Apache web server and PHP.
[ INFO ] Configure PHP.
[ INFO ] Configure MariaDB database server.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[ INFO ] Setup daily cron job to backup SQL databases: /var/vmail/backup/backup_mysql.sh
[ INFO ] Configure Postfix (Message Transfer Agent).
[ INFO ] Configure Cluebringer (postfix policy server).
groupadd: group 'cluebringer' already exists
useradd: user 'cluebringer' already exists
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[ INFO ] Configure Dovecot (pop3/imap/managesieve server).
[ INFO ] Configure ClamAV (anti-virus toolkit).
[ INFO ] Configure Amavisd-new (interface between MTA and content checkers).
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[ INFO ] Configure SpamAssassin (content-based spam filter).
[ INFO ] Configure iRedAPD (postfix policy daemon).
[ INFO ] Configure iRedAdmin (official web-based admin panel).
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[ INFO ] Configure Fail2ban (authentication failure monitor).
[ INFO ] Configure Roundcube webmail.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[ INFO ] Configure Awstats (logfile analyzer for mail and web server).
On remote server firewall is disabled, and no any problems with grants in mysql.
Command
MYSQL_SERVER='x.x.x.x.' MYSQL_ROOT_USER='user_name' MYSQL_GRANT_HOST='y.y.y.y' bash iRedMail.sh
Thanks.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.