1 (edited by brizz 2017-12-18 13:25:19)

Topic: New Install, Install script couldn't find PHP Version.

0.9.7 PGSQL edition.
Debian 9 - Stretch
PGSQL
Nginx
No Pro

Error is as follows.  ....basically php was installed in /7.1, not 7.0, so install script missed setting that part up.  Is there a fix I can do without completely re-installing my distro?  I looked for a iredmail uninstall script, but I think it is old.

I looked at bash scripts it used, and I don't know if I know enough to just do it by hand.  From digging around, it looks like it copied all the redmail stuff to nginx folder.  So the error below...seems to be only files that are messed up (www.conf, and php.ini).  I'm not having anything load through webbrowser, I'm assuming because of the errors...  or should it have at least loaded something?

[ 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.
[ INFO ] Configure Nginx web server and uWSGI.
Can't open /etc/php/7.0/fpm/pool.d/www.conf: No such file or directory.
Can't open /etc/php/7.0/fpm/pool.d/www.conf: No such file or directory.
Can't open /etc/php/7.0/fpm/pool.d/www.conf: No such file or directory.
Can't open /etc/php/7.0/fpm/pool.d/www.conf: No such file or directory.
Can't open /etc/php/7.0/fpm/pool.d/www.conf: No such file or directory.
Can't open /etc/php/7.0/fpm/pool.d/www.conf: No such file or directory.
Can't open /etc/php/7.0/fpm/pool.d/www.conf: No such file or directory.
[ INFO ] Configure PHP.
Can't open /etc/php/7.0/fpm/php.ini: No such file or directory.
Can't open /etc/php/7.0/fpm/php.ini: No such file or directory.
Can't open /etc/php/7.0/fpm/php.ini: No such file or directory.
Can't open /etc/php/7.0/fpm/php.ini: No such file or directory.
Can't open /etc/php/7.0/fpm/php.ini: No such file or directory.
Can't open /etc/php/7.0/fpm/php.ini: No such file or directory.
Can't open /etc/php/7.0/fpm/php.ini: No such file or directory.
Can't open /etc/php/7.0/fpm/php.ini: No such file or directory.
Can't open /etc/php/7.0/fpm/php.ini: No such file or directory.
Can't open /etc/php/7.0/fpm/php.ini: No such file or directory.
grep: /etc/php/7.0/fpm/php.ini: No such file or directory
Can't open /etc/php/7.0/fpm/php.ini: No such file or directory.
[ INFO ] Configure PostgreSQL database server.
[ INFO ] Setup daily cron job to backup PostgreSQL databases with /var/vmail/backup/backup_pgsql.sh
[ INFO ] Configure Postfix (MTA).
[ INFO ] Configure Dovecot (POP3/IMAP/Managesieve/LMTP/LDA).
[ 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 Fail2ban (authentication failure monitor).
[ INFO ] Configure Roundcube webmail.
[ INFO ] Configure Awstats (logfile analyzer for mail and web server).

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

----

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

2

Re: New Install, Install script couldn't find PHP Version.

*) Why not use default php-7.0?
*) If you really want to use a different version, try to reinstall server OS, then update file "conf/php" in iRedMail, change the php version number for Debian 9 to 7.1, then run the installer (bash iRedMail.sh).

3

Re: New Install, Install script couldn't find PHP Version.

Yea...I wondered if adding to my apt list may have broke it.

I'm fine with 7.0, but I added to my apt repo so I could install 5.6.  I have an ioncube program that only runs on php5

4

Re: New Install, Install script couldn't find PHP Version.

brizz wrote:

I have an ioncube program that only runs on php5

If you mean this one: http://www.ioncube.com
It supports php 4, 5.x, 7.1. In this case, i think it's easier to get php 7.1 working in iRedMail.