1

Topic: Issue with Install on Ubuntu 16.04.1 LTS Server

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6
- Linux/BSD distribution name and version: Ubuntu 16.04.1 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue:
====

Install gets stuck at Configure PHP
with error message "-i used with no filenames on command line, reading from STDIN."

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Issue with Install on Ubuntu 16.04.1 LTS Server

Cannot reproduce this issue. Usually this error is caused due to miss some file. Did you notice any error during package installation?

3

Re: Issue with Install on Ubuntu 16.04.1 LTS Server

I got the same error on Ubuntu 16.04.1 installing 0.9.6. Tried installing 0.9.5-1 and it installed ok.

4

Re: Issue with Install on Ubuntu 16.04.1 LTS Server

Can you give us some more detailed error log? I also cannot reproduce this error. It would really help to get any more info on this situation, so we can help find this bug and fix it.
Thank you!

5

Re: Issue with Install on Ubuntu 16.04.1 LTS Server

Any related log in file "iRedMail-0.9.6/runtime/install.log"?

6

Re: Issue with Install on Ubuntu 16.04.1 LTS Server

ZhangHuangbin wrote:

Any related log in file "iRedMail-0.9.6/runtime/install.log"?

Install log clean install of ubuntu 16.04.1 on vmware

[ INFO ] Checking new version of iRedMail ...
 + < DEBUG > Creating necessary directories ...
[ INFO ] apt-get update ...
[ INFO ] Fetching source tarballs ...
[ INFO ] + 1 of 3: http://iredmail.org/yum/misc/roundcubemail-1.2.3-complete.tar.gz
[ INFO ] + 2 of 3: http://iredmail.org/yum/misc/iRedAPD-2.0.tar.bz2
[ INFO ] + 3 of 3: http://iredmail.org/yum/misc/iRedAdmin-0.7.tar.bz2
[ INFO ] Validate packages ...
[ INFO ] Install package: dialog
[ INFO ] Installing package(s): dialog
<< ERROR >> Please configure a fully qualified domain name (FQDN) in /etc/hosts before we go further.

Example:

127.0.0.1   mail.iredmail.org mail localhost

<< ERROR >> Please configure a fully qualified domain name (FQDN) in /etc/hosts before we go further.

Example:

127.0.0.1   mail.iredmail.org mail localhost

[ INFO ] Checking configuration file: /root/iRedMail-0.9.6/config ...
[ INFO ] Use config file: /root/iRedMail-0.9.6/config for mail server setting.
[ INFO ] Import installation process status from file: /root/iRedMail-0.9.6/runtime/install.status.
[ INFO ] Enable apt repo for SOGo: https://packages.inverse.ca
[ INFO ] Import apt key (0x810273C4) for SOGo repo (https://packages.inverse.ca).
[ INFO ] Resynchronizing the package index files (apt-get update) ...
[ INFO ] Installing package(s): postfix postfix-pcre mysql-client mysql-server postfix-mysql libdbd-mysql-perl dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-managesieved dovecot-sieve dovecot-mysql amavisd-new libcrypt-openssl-rsa-perl libmail-dkim-perl clamav-freshclam clamav-daemon spamassassin altermime arj zoo nomarch cpio lzop cabextract p7zip rpm ripole libmail-spf-perl unrar-free pax sogo sogo-activesync sope4.9-gdl1-mysql python-sqlalchemy python-dnspython python-mysqldb python-pymysql python-jinja2 python-netifaces python-webpy python-beautifulsoup python-lxml python-pycurl python-bcrypt fail2ban bzip2 acl patch cron tofrodos logwatch unzip bsdutils liblz4-tool
 + < DEBUG > Service control: enable rsyslog.
Synchronizing state of rsyslog.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable rsyslog
 + < DEBUG > Service control: enable postfix.
postfix.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install enable postfix
 + < DEBUG > Service control: enable mysql.
Synchronizing state of mysql.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable mysql
 + < DEBUG > Service control: enable dovecot.
Synchronizing state of dovecot.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable dovecot
 + < DEBUG > Service control: enable clamav-daemon.
Synchronizing state of clamav-daemon.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable clamav-daemon
 + < DEBUG > Service control: enable amavis.
amavis.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install enable amavis
 + < DEBUG > Service control: enable clamav-freshclam.
Synchronizing state of clamav-freshclam.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable clamav-freshclam
 + < DEBUG > Service control: enable sogo.
sogo.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install enable sogo
 + < DEBUG > Service control: enable memcached.
Synchronizing state of memcached.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable memcached
 + < DEBUG > Service control: enable fail2ban.
Synchronizing state of fail2ban.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable fail2ban
 + < DEBUG > Service control: enable cron.
Synchronizing state of cron.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable cron
 + < DEBUG > Service control: disable php7.?-fpm.
Failed to execute operation: No such file or directory
 + < DEBUG > Service control: disable spamassassin.
Synchronizing state of spamassassin.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install disable spamassassin
insserv: warning: current start runlevel(s) (empty) of script `spamassassin' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `spamassassin' overrides LSB defaults (0 1 6).
 + < DEBUG > Service control: disable ufw.
Synchronizing state of ufw.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install disable ufw
insserv: warning: current start runlevel(s) (empty) of script `ufw' overrides LSB defaults (S).
insserv: warning: current stop runlevel(s) (1 S) of script `ufw' overrides LSB defaults (1).
[ INFO ] Create self-signed SSL certification files (2048 bits).
[ INFO ] Generate Diffie Hellman Group with openssl, please wait.
[ INFO ] Create required system account: vmail, iredadmin, iredapd.
 + < DEBUG > Create system account: vmail:vmail (2000:2000).
 + < DEBUG > Create directory used to store global sieve filters: /storage/iredmail/sieve.
 + < DEBUG > Create system account: iredadmin:iredadmin (2001:2001)
 + < DEBUG > Create system account: iredapd:iredapd (2002:2002).
[ INFO ] Configure PHP.
 + < DEBUG > Hide PHP Version in Apache from remote users requests: .

7

Re: Issue with Install on Ubuntu 16.04.1 LTS Server

Faw wrote:

+ < DEBUG > Hide PHP Version in Apache from remote users requests: .

Got it. iRedMail doesn't find php.ini.
On Ubuntu 16.04, it's supposed to be:

- If you use Apache: /etc/php/7.?/cli/php.ini. Offered by package: libapache2-mod-php.
- If you use Nginx: /etc/php/7.?/fpm/php.ini. Offered by package: php-fpm.

Please check whether your have the package installed.

8

Re: Issue with Install on Ubuntu 16.04.1 LTS Server

Im getting the same error in my install log for my Ubuntu install. Ran apt-get install php7.0 after exiting the install and it showed new packages to be installed : php-common php7.0 php7.0-cli php7.0-common php7.0-fpm php7.0-json php7.0-opcache php7.0-readline

Sorry for the delay i was watching my screen recorder of the install for any kind of errors

Same error after install of PHP7.0 in install log

9

Re: Issue with Install on Ubuntu 16.04.1 LTS Server

just wondering was there an update to the config file that gets created during iredmail .0.9.6 ?

for just ran install without my config file with out the error

10

Re: Issue with Install on Ubuntu 16.04.1 LTS Server

"
export VMAIL_USER_HOME_DIR='/var/vmail'
export STORAGE_BASE_DIR='/var/vmail'
export STORAGE_MAILBOX_DIR='/var/vmail/vmail1'
export SIEVE_DIR='/var/vmail/sieve'
export WEB_SERVER_IS_NGINX='NO'
export WEB_SERVER_IS_APACHE='YES'
export BACKEND_ORIG='MYSQL'
export BACKEND='MYSQL'
export VMAIL_DB_BIND_PASSWD='xxxx'
export VMAIL_DB_ADMIN_PASSWD='xxxx'
export LDAP_BINDPW='xxxx'
export LDAP_ADMIN_PW='xxxx'
export LDAP_ROOTPW='xxxx'
export MYSQL_ROOT_USER='root'
export MYSQL_ROOT_PASSWD='xxxx'
export PGSQL_ROOT_USER=''
export PGSQL_ROOT_PASSWD='xxxx'
export BACKUP_DIR='/var/vmail/backup'
export BACKUP_SCRIPT_LDAP='/var/vmail/backup/backup_openldap.sh'
export BACKUP_SCRIPT_MYSQL='/var/vmail/backup/backup_mysql.sh'
export BACKUP_SCRIPT_PGSQL='/var/vmail/backup/backup_pgsql.sh'
export SQL_SERVER_ADDRESS='127.0.0.1'
export SQL_SERVER_PORT='3306'
export FIRST_DOMAIN='xxxx'
export DOMAIN_ADMIN_NAME='xxxx'
export SITE_ADMIN_NAME='xxxx@xxxx'
export DOMAIN_ADMIN_PASSWD_PLAIN='xxxx'
export DOMAIN_ADMIN_PASSWD='xxxx'
export SITE_ADMIN_PASSWD='xxxx'
export FIRST_USER='xxxx'
export FIRST_USER_PASSWD='xxxx'
export FIRST_USER_PASSWD_PLAIN='xxxx'
export USE_IREDADMIN='YES'
export USE_RCM='YES'
export USE_AWSTATS='YES'
export USE_FAIL2BAN='YES'
export AMAVISD_DB_PASSWD='xxxx'
export IREDADMIN_DB_PASSWD='xxxx'
export RCM_DB_PASSWD='xxxx'
export SOGO_DB_PASSWD='xxxx'
export SOGO_SIEVE_MASTER_PASSWD='xxxx'
export IREDAPD_DB_PASSWD='xxxx'
#EOF"

Could any of these settings effect the install?

11

Re: Issue with Install on Ubuntu 16.04.1 LTS Server

Issue Resolved. Issue was with Config File had a bad setting trying to narrow which one right now slowly adding one by one back in it

12

Re: Issue with Install on Ubuntu 16.04.1 LTS Server

export WEB_SERVER_IS_NGINX='NO'
export WEB_SERVER_IS_APACHE='YES'
is now
export WEB_SERVER='APACHE'

Hope this helps anyone with config file