1 (edited by ScottTheFalcon 2011-04-17 10:39:36)

Topic: <SOLVED> trouble installing 0.7.0 onto clean Ubuntu on Linode

Hi there - can't find an answer so I need to ask, sorry.
I'm preparing a major update to my Linode production server on a backup Linode - running Ubuntu.  Everything goes fine until I try to install iRedMail.  I've been using 0.5.1 on my production server for quite a while.

I'll add later the script I use to build the software stack before the iRedMail installation.  The trouble I have is during the iRedMail install I run into errors.  The first sign of trouble was:

Setting up postfix-pcre (2.7.0-1) ...
Adding pcre map entry to /etc/postfix/dynamicmaps.cf
Setting up postfix-policyd (1.82-2ubuntu5) ...
dbconfig-common: writing config to /etc/dbconfig-common/postfix-policyd.conf
Creating config file /etc/postfix-policyd.conf with new version
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO).
unable to connect to mysql server.
error encountered creating user:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
dbconfig-common: postfix-policyd configure: aborted.
dbconfig-common: flushing administrative password
dpkg: error processing postfix-policyd (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up python-jinja2 (2.3.1-1) ...
Setting up python-ldap (2.3.10-1ubuntu1) ...

There's more stuff then the installation fails.  At this point I've tried:

apt-get update
apt-get upgrade

or

apt-get install postfix-policyd

      (suggestion I found somewhere)

And then I re-run the installation, which this time completes.  When I go to the xxxxx.com/mail page to check the webmail I always get the following error:

ERROR: Wrong 'suhosin.session.encrypt' option value. Read REQUIREMENTS section in INSTALL file or use Roundcube Installer, please!

I've read the install page but couldn't find the answer.

Here's my install script:

#!/bin/bash
# A script to get my production server XXXXXX built
# configures hostname, timezone, installs LAMP, default website, perl, webmin 
#
# /etc/hosts file and fstab entry for /storage mount are handled in preboot.sh
#
SHORTNAME="XXXXXX"
LONGNAME="XXXXXX.webhop.net"
REGION="Australia/Brisbane"
#
# mount the storage partition - will fail gracefully if fstab isn't prepared earlier
mount /dev/xvdc /storage
#
# copy software and files from /storage/software to here
# php.ini, iRedMail, webmin, other scripts as we go along
cp /storage/software/* ./
#
# set host name
echo "$SHORTNAME" > /etc/hostname
hostname -F /etc/hostname
#
# set timezone
echo "$REGION" | tee /etc/timezone
dpkg-reconfigure --frontend noninteractive tzdata
#
#update
apt-get update
apt-get -y upgrade --show-upgraded
#
# install apache2
apt-get -y install apache2
#
# install default website
echo "<VirtualHost *:80>"                                         > /etc/apache2/sites-available/$LONGNAME 
echo "    ServerName $LONGNAME"                                  >> /etc/apache2/sites-available/$LONGNAME
echo "    ServerAlias www.$LONGNAME"                             >> /etc/apache2/sites-available/$LONGNAME
echo "    DocumentRoot /srv/www/$LONGNAME/public_html/"          >> /etc/apache2/sites-available/$LONGNAME
echo "    ErrorLog /srv/www/$LONGNAME/logs/error.log"            >> /etc/apache2/sites-available/$LONGNAME
echo "    CustomLog /srv/www/$LONGNAME/logs/access.log combined" >> /etc/apache2/sites-available/$LONGNAME
echo "</VirtualHost>"                                            >> /etc/apache2/sites-available/$LONGNAME
mkdir -p /srv/www/$LONGNAME/public_html
mkdir    /srv/www/$LONGNAME/logs
a2ensite $LONGNAME
/etc/init.d/apache2 reload
echo "<html><head><title>Welcome</title></head>"          > /srv/www/$LONGNAME/public_html/index.html 
echo "<body><p>A place holder page, come back soon</p>"  >> /srv/www/$LONGNAME/public_html/index.html 
echo "</body></html>"                                    >> /srv/www/$LONGNAME/public_html/index.html 
#
# update
apt-get update
apt-get -y upgrade
#
# install perl etc
apt-get -y install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl
#
# install webmin
###wget http://prdownloads.sourceforge.net/webadmin/webmin_1.540_all.deb
dpkg --install webmin_1.540_all.deb
apt-get install -f -y
#
# install mySQL
apt-get -y install mysql-server
mysql_secure_installation
#
# install php
apt-get -y install php5 php-pear
#
# move a prepared php.ini to the right place
cp php.ini /etc/php5/apache2/
/etc/init.d/apache2 restart
apt-get -y install php5-mysql
apt-get -y install php5-suhosin
/etc/init.d/apache2 restart
#
# get iRedMail files
###wget http://iredmail.googlecode.com/files/iRedMail-0.7.0.tar.bz2
tar xvjf iRedMail-0.7.0.tar.bz2
apt-get update
apt-get -y upgrade
cd iRedMail-0.7.0
echo "check above then run  -    bash iRedMail.sh"

Please help!!! smile

2

Re: <SOLVED> trouble installing 0.7.0 onto clean Ubuntu on Linode

ScottTheFalcon wrote:

The first sign of trouble was:

Setting up postfix-pcre (2.7.0-1) ...
Adding pcre map entry to /etc/postfix/dynamicmaps.cf
Setting up postfix-policyd (1.82-2ubuntu5) ...
dbconfig-common: writing config to /etc/dbconfig-common/postfix-policyd.conf
Creating config file /etc/postfix-policyd.conf with new version
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO).
unable to connect to mysql server.
error encountered creating user:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
dbconfig-common: postfix-policyd configure: aborted.
dbconfig-common: flushing administrative password
dpkg: error processing postfix-policyd (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up python-jinja2 (2.3.1-1) ...
Setting up python-ldap (2.3.10-1ubuntu1) ...

It's *OK*. It's safe to ignore them.

ScottTheFalcon wrote:
ERROR: Wrong 'suhosin.session.encrypt' option value. Read REQUIREMENTS section in INSTALL file or use Roundcube Installer, please!

Simply setting it to "Off" in /etc/php5/apache2/conf.d/suhosin.ini will fix it.

3

Re: <SOLVED> trouble installing 0.7.0 onto clean Ubuntu on Linode

ZhangHuangbin wrote:

/etc/php5/apache2/conf.d/

Thanks so much Zhang.  I found if I made that change before I install iRedMail the install went much better.  I also added

apt-get -y install postfix-policyd

before I installed iRedMail as well.
Thanks again smile