ok I installed Debian again and this time I made a dist-upgrade to 6.0.3
After installing some packages (apache2, php5, mysql ....) I download iRedmail, untar it and run bash iRedmail.sh
I am asked for mysql root password, I give the same password as I gave it minutes before as I installed mysql-server. I run a shellscript after a fresh OS Installation, some lines from my installscript.sh:
aptitude -y install nmap iptables tcpdump fwlogwatch ncftp lftp ftp-ssl curl zip unzip bzip2 openssl ssl-cert wput libssl-dev dnsutils telnet less hdparm
aptitude -y install apache2-mpm-prefork apache2-utils
aptitude -y install php5 libapache2-mod-php5 libapache2-mod-fcgid php5-cli php5-common php5-cgi php5-curl php5-imagick
aptitude -y install mysql-server-5.1 php5-mysql phpmyadmin
Then this error message appears:
< INFO > Configure User/Group: vmail.
< INFO > Configure Apache web server and PHP.
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
I guess it´s in the file functions/mysql.sh line 52
mysqladmin --user=root password "${MYSQL_ROOT_PASSWD}"
Why it is saying using password: NO ?
I got it!
I changed it to
mysqladmin --user=root -pXXX password "${MYSQL_ROOT_PASSWD}"
(yes, hard-coded)
One step further.
this time:
ERROR 1049 (42000) at line 5: Unknown database 'postfixpolicyd'
How can I fix this ?
So your script assumes that we don´t have mysql installed ?