1 (edited by arneboeses 2017-05-31 03:01:04)

Topic: [Solved] speed up installation and php-fpm error

======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6
- Linux/BSD distribution name and version: 11.0-RELEASE-p9 (non-jail)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi,

1st - as you can see in my attachment, the installation took around 72 minutes at the following system:
* hw.model: Intel(R) Xeon(R) CPU E3-1271 v3 @ 3.60GHz
* hw.machine: amd64
* hw.ncpu: 8
* 32GB memory

Is it possible to speed this up?

2nd - at the end of the installation script I'm getting the php-fpm error you can see in the attachment. Should I recompile that module?

Best,
arne

Post's attachments

Auswahl_492.png 320.72 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

----

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

2

Re: [Solved] speed up installation and php-fpm error

arneboeses wrote:

Is it possible to speed this up?

If we install all packages with ports tree, i don't think we can speed it up since it requires to compile all packages.

arneboeses wrote:

2nd - at the end of the installation script I'm getting the php-fpm error you can see in the attachment. Should I recompile that module?

Seems package lang/php-XX was not successfully installed, did you notice any error on console? Or, any error in file "iRedMail-0.9.6/runtime/install.log"?
You may need to reinstall iRedMail, but let's figure out why it failed first.

3 (edited by arneboeses 2017-05-23 15:13:48)

Re: [Solved] speed up installation and php-fpm error

ZhangHuangbin wrote:
arneboeses wrote:

Is it possible to speed this up?

If we install all packages with ports tree, i don't think we can speed it up since it requires to compile all packages.

arneboeses wrote:

2nd - at the end of the installation script I'm getting the php-fpm error you can see in the attachment. Should I recompile that module?

Seems package lang/php-XX was not successfully installed, did you notice any error on console? Or, any error in file "iRedMail-0.9.6/runtime/install.log"?
You may need to reinstall iRedMail, but let's figure out why it failed first.

1st) maybe you can optimize the make routines by checking the cores available and add the option .jX. Several time I could see, that it is using only one core.

2nd) Please find the log file attached. I haven't seen any error.

3rd) Why is it using " + < DEBUG > Update /etc/make.conf: APACHE_PORT=www/apache24" when I'm selecting nginx as webserver?

4th) Huge Thank you for your fast response wink

Post's attachments

install.log 18.27 kb, 1 downloads since 2017-05-23 

You don't have the permssions to download the attachments of this post.

4

Re: [Solved] speed up installation and php-fpm error

arneboeses wrote:

1st) maybe you can optimize the make routines by checking the cores available and add the option .jX. Several time I could see, that it is using only one core.

I tried, but didn't get it working. Did you get it working?

arneboeses wrote:

2nd) Please find the log file attached. I haven't seen any error.

I did an installation today, no such error. No idea why it didn't work for you. sad

arneboeses wrote:

3rd) Why is it using " + < DEBUG > Update /etc/make.conf: APACHE_PORT=www/apache24" when I'm selecting nginx as webserver?

Fixed moment ago. Although it doesn't matter in this case, but i disabled this if not using Apache.

Thanks for the feedback.

5 (edited by arneboeses 2017-05-23 22:38:47)

Re: [Solved] speed up installation and php-fpm error

ZhangHuangbin wrote:

I tried, but didn't get it working. Did you get it working?

I'll try it for some of the packages and let you know. Meanwhile I figured out that only a few of them are supporting multi core.

ZhangHuangbin wrote:

I did an installation today, no such error. No idea why it didn't work for you. sad

Can you tell me some details about your setup? Maybe there is a difference. Otherwise I will try it on a clean and simple server.

ZhangHuangbin wrote:

Fixed moment ago. Although it doesn't matter in this case, but i disabled this if not using Apache.

understood - it was just confusing besides that the root of the nginx is called "/usr/local/www/apache24/data;"

Best,
Arne

6

Re: [Solved] speed up installation and php-fpm error

HI,

I did an other fresh installation (same setup) on a different hoster. Same error at the end. The installation runs till the end without getting stuck somewhere. Nevertheless I saw some messages. Please find them attached.

Best

Post's attachments

Auswahl_495.png 249.76 kb, file has never been downloaded. 

Auswahl_496.png 230.33 kb, file has never been downloaded. 

Auswahl_497.png
Auswahl_497.png 96.53 kb, 1 downloads since 2017-05-23 

Auswahl_499.png 179.19 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

7

Re: [Solved] speed up installation and php-fpm error

The screenshots look fine, but the root cause is php-7 was not installed.
Could you please try to install it manually and check whether it works?

cd /usr/ports/lang/php70
make install clean

cd /usr/ports/lang/php70-extensions
make install clean

8

Re: [Solved] speed up installation and php-fpm error

ZhangHuangbin wrote:

The screenshots look fine, but the root cause is php-7 was not installed.
Could you please try to install it manually and check whether it works?

cd /usr/ports/lang/php70
make install clean

cd /usr/ports/lang/php70-extensions
make install clean

jepp - installation succeeded

9

Re: [Solved] speed up installation and php-fpm error

Did the installation succeed with "make reinstall", or just "make install clean"?
If "make install clean" works, that means php was not installed by iRedMail at all. Did you modify file "config" under iRedMail-0.9.6 directory?

10

Re: [Solved] speed up installation and php-fpm error

just did "make install clean" and didn't modified the configs at all. I did a default installation of the OS. Afterwards I just followed the instructions of the documentation including the download of your current archive (so current the version of iRedMail)

11

Re: [Solved] speed up installation and php-fpm error

I'm re-testing, stay tuned.

12

Re: [Solved] speed up installation and php-fpm error

ZhangHuangbin wrote:

I'm re-testing, stay tuned.

inside your "InstallDir/conf/php"  you're calling the php.ini to be copied from the php-production, but the command is missing, right?

elif [ X"${DISTRO}" == X'FREEBSD' ]; then
    export PHP_BIN='/usr/local/bin/php'

    # Copy from example: /usr/local/etc/php.ini-production
    export PHP_INI='/usr/local/etc/php.ini'


Best,
Arne

13

Re: [Solved] speed up installation and php-fpm error

arneboeses wrote:

inside your "InstallDir/conf/php"

The "copy" is done in functions/php.sh.

I cannot reproduce this issue after few tests. sad

14

Re: [Solved] speed up installation and php-fpm error

ZhangHuangbin wrote:

The "copy" is done in functions/php.sh.

understood

ZhangHuangbin wrote:

I cannot reproduce this issue after few tests. sad

mh - can you describe your environment? (hardware setup - special system configuration - OS version) Maybe there are some special differences.

15

Re: [Solved] speed up installation and php-fpm error

arneboeses wrote:

mh - can you describe your environment? (hardware setup - special system configuration - OS version) Maybe there are some special differences.

how about this: you create a new freebsd system and give me root privilege, I will try to reproduce it.

BTW, I forgot that I tested with the latest development edition (my bad), I will try again with iRedMail-0.9.6 later tonight. Stay tuned. .

16 (edited by arneboeses 2017-05-29 21:42:12)

Re: [Solved] speed up installation and php-fpm error

ZhangHuangbin wrote:

how about this: you create a new freebsd system and give me root privilege, I will try to reproduce it.

Done. If you place your ssh pub key at your github account, I can send you the data encrypted (ssh-vault -> https://github.com/ssh-vault/ssh-vault). Otherwise let me know, how to send you the data.

Best,

17

Re: [Solved] speed up installation and php-fpm error

I cannot reproduce this issue with the latest FreeBSD ports tree and iRedMail-0.9.6 (also the latest iRedMail development edition).

Please mail me: zhb _at_ iredmail _dot_ org

18

Re: [Solved] speed up installation and php-fpm error

ZhangHuangbin wrote:

I cannot reproduce this issue with the latest FreeBSD ports tree and iRedMail-0.9.6 (also the latest iRedMail development edition).

Please mail me: zhb _at_ iredmail _dot_ org

pretty strange, as I'm using the default setup. I send you the data.

19 (edited by arneboeses 2017-05-31 03:35:15)

Re: [Solved] speed up installation and php-fpm error

So - I finally marked it as solved. It is working know without any error messages.

I figured out two major and one side step (huge thanks + coffee for ZHB ):

* side step - installing the failing package (attachment #1)
* major steps - cleaning the /usr/ports/* folders (attachment #2) + I always deselected roundcube. maybe therefore the php package was not requested to be installed.

I re-set it up without those steps and it's failing again.

Best,
Arne

Post's attachments

Auswahl_506.png 37.01 kb, file has never been downloaded. 

Auswahl_507.png
Auswahl_507.png 3.36 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.