1

Topic: Instalation Bugs

Following down what i get.

php5-5.4.27_1 doesn't install the Apache module anymore: update your OPTIONS and build www/mod_php5 port instead.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/lang/php5
*** Error code 1

Stop.
make: stopped in /usr/ports/mail/roundcube
< ERROR > Tarballs were not downloaded correctly, please fix it manually and then re-execute iRedMail.sh.


==== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Linux/BSD distribution name and version: FreeBSD
- Related log if you're reporting an issue:
====

----

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

2

Re: Instalation Bugs

FreeBSD ports tree changes every day, it's hard to follow it. Maybe we should split ports installation code as a download file, so that we don't need to touch iRedMail release version, and catch up ports tree changes.

3

Re: Instalation Bugs

What i must to do?
I am worried with the instalation, if i install something that isnt compatible with iredmail pro.


ZhangHuangbin wrote:

FreeBSD ports tree changes every day, it's hard to follow it. Maybe we should split ports installation code as a download file, so that we don't need to touch iRedMail release version, and catch up ports tree changes.

4

Re: Instalation Bugs

Please download the latest file in iRedMail in development version, then replace the one one your server:
https://bitbucket.org/zhb/iredmail/raw/ … freebsd.sh

Replace file 'functions/packages_freebsd.sh' in iRedMail directory on your server, then execute "bash iRedMail.sh" again to finish iRedMail installation.

Fabricio wrote:

I am worried with the instalation, if i install something that isnt compatible with iredmail pro.

Don't worry. smile

5

Re: Instalation Bugs

Hello!

I tried to install iRedMail in FreeBSD jail. I got problem:
-------
====
====> Compressing man pages (compress-man)
===>  Installing for python27-2.7.6_4
===>  Checking if lang/python27 already installed
===>   Registering installation for python27-2.7.6_4 as automatic
pkg-static: lstat(/var/ports/basejail/usr/ports/lang/python27/work/stage/usr/local/lib/python2.7/lib-dynload/dl.so): No such  file or directory
pkg-static: lstat(/var/ports/basejail/usr/ports/lang/python27/work/stage/usr/local/lib/python2.7/lib-dynload/imageop.so): No  such file or directory
*** Error code 74

Stop.
make[2]: stopped in /basejail/usr/ports/lang/python27
*** Error code 1

Stop.
make[1]: stopped in /basejail/usr/ports/devel/py-setuptools27
*** Error code 1

Stop.
make: stopped in /basejail/usr/ports/databases/py-MySQLdb
< ERROR > Port was not success installed, please fix it manually and then re-execute this script.
-------
My system (uname -a)
FreeBSD mx1.vivahostings.com 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

How to resolve?

6

Re: Instalation Bugs

********************************************************************
* Start iRedMail Configurations
********************************************************************
< INFO > Create self-signed SSL certification files.
< INFO > Create required system accounts: vmail, iredapd, iredadmin.
< INFO > Configure Apache web server and PHP.
< INFO > Configure MySQL database server.
< INFO > Configure Postfix (Message Transfer Agent).
< INFO > Configure Cluebringer (postfix policy server).
< INFO > Configure Dovecot-2 (pop3/imap/managesieve server).
< INFO > Configure ClamAV (anti-virus toolkit).
< INFO > Configure Amavisd-new (interface between MTA and content checkers).
< INFO > Configure SpamAssassin (content-based spam filter).
< INFO > Configure iRedAPD (postfix policy daemon).
< INFO > Configure iRedAdmin (official web-based admin panel).
< INFO > Configure Roundcube webmail.
cp: db.inc.php.dist: No such file or directory
cp: main.inc.php.dist: No such file or directory
chown: db.inc.php: No such file or directory
chown: main.inc.php: No such file or directory
chmod: db.inc.php: No such file or directory
chmod: main.inc.php: No such file or directory
Can't open db.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
< INFO > Configure phpMyAdmin (web-based MySQL management tool).

*************************************************************************
* iRedMail-0.8.6 installation and configuration complete.
*************************************************************************

< INFO > Mail sensitive administration info to postmaster@test.ua.
< INFO > Updating SpamAssassin rules (sa-update), please wait ...
< INFO > Compiling SpamAssassin rulesets (sa-compile), please wait ...
< INFO > Updating ClamAV database (freshclam), please wait ...
ClamAV update process started at Mon Apr 21 01:06:36 2014
Downloading main.cvd [100%]
main.cvd updated (version: 55, sigs: 2424225, f-level: 60, builder: neo)
Downloading daily.cvd [100%]
daily.cvd updated (version: 18835, sigs: 900987, f-level: 63, builder: neo)
Downloading bytecode.cvd [100%]
bytecode.cvd updated (version: 236, sigs: 43, f-level: 63, builder: dgoddard)
Database updated (3325255 signatures) from database.clamav.net (IP: 193.1.193.64)
connect(): No such file or directory
WARNING: Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.sock
********************************************************************
* URLs of installed web applications:
*
* - Webmail: httpS://tesst.km/mail/
* - Admin Panel (iRedAdmin): httpS://tesst.km/iredadmin/
*   + Username: postmaster@test.ua, Password: 123
*

********************************************************************
* Congratulations, mail server setup completed successfully. Please
* read below file for more information:
*
*   - /root/iRedMail-0.8.6/iRedMail.tips
*
* And it's sent to your mail account .
*
* Please reboot your system to enable mail services.
*
********************************************************************
root@tesst:~/iRedMail-0.8.6 # shutdown -r now
Shutdown NOW!
shutdown: [pid 52297]
root@tesst:~/iRedMail-0.8.6 #                                                                               
*** FINAL System shutdown message from root@tesst.km ***                     

System going down IMMEDIATELY

7

Re: Instalation Bugs

ilmarsk wrote:

make[2]: stopped in /basejail/usr/ports/lang/python27

Please install lang/python27 manually, then re-execute iRedMail installation: bash iRedMail.sh.

8

Re: Instalation Bugs

ZhangHuangbin wrote:
ilmarsk wrote:

make[2]: stopped in /basejail/usr/ports/lang/python27

Please install lang/python27 manually, then re-execute iRedMail installation: bash iRedMail.sh.

iRedMail-0.8.6 supports Roundcube 0.9.5, but FreeBSD ports tree ships Roundcube 1.0.0, it uses different (better) config file, so iRedMail-0.8.6 doesn't work right now. The latest development edition fixes it.

9

Re: Instalation Bugs

Here works great!

Now i am on pgsql thing.

root@spo68:/usr/local/www # su -l pgsql
$ postgres
postgres does not know where to find the server configuration file.
You must specify the --config-file or -D invocation option or set the PGDATA environment variable.
root@spo68:/usr/local/www # whereis postgresql.conf
postgresql.conf:


Where is the postgres setup file of iRedMail PRO?

Cheers

10

Re: Instalation Bugs

Fabricio wrote:

root@spo68:/usr/local/www # su -l pgsql
$ postgres

Is 'postgres' a valid command? Maybe you need command 'psql' instead?

Fabricio wrote:

Where is the postgres setup file of iRedMail PRO?

Check /usr/local/www/iredadmin/settings.py.

11

Re: Instalation Bugs

Thanks, now all finished successfully except similar error mesages in install screen like 3m.
...
cp: db.inc.php.dist: No such file or directory
cp: main.inc.php.dist: No such file or directory
chown: db.inc.php: No such file or directory
chown: main.inc.php: No such file or directory
chmod: db.inc.php: No such file or directory
chmod: main.inc.php: No such file or directory
Can't open db.inc.php: No such file or directory.
Can't open main.inc.php: No such file or directory.
...


It seems do not create Roundcube mail config files. When try to login to /mails - "Configuration error" config.inc.php was not found.

Can i fix it manually?

12

Re: Instalation Bugs

Why it happens:

iRedMail-0.8.6 supports Roundcube 0.9.5, but FreeBSD ports tree ships Roundcube 1.0.0, it uses different (better) config file, so iRedMail-0.8.6 doesn't work right now. The latest development edition fixes it.

Yes you can fix it manually by creating roundcube config file.