Hello:
we are installing a new webserver, Centos 7 and HTTPD2.4, and wish to use PHP56 and ModSecurity from the ART repo. All have installed fine but we are unable to start PHP-FPM via systemd. Are there specific instructions on how to do this please ?
Thank you
Atomic PHP56-FPM
Re: Atomic PHP56-FPM
Output and when one checks the service filethough the binary actually resides under /opt/atomic/atomic-php56/root/usr/sbin/php-fpm.
Thoughts ?
Code: Select all
systemd[1]: atomic-php56-php-fpm.service failed to run 'start' task: No such file or directory
Code: Select all
[Service]
Type=notify
PIDFile=/run/php-fpm/php-fpm.pid
EnvironmentFile=/etc/sysconfig/php-fpm
ExecStart=/usr/sbin/php-fpm --nodaemonize
ExecReload=/bin/kill -USR2 $MAINPID
PrivateTmp=true
Thoughts ?
-
- Atomicorp Staff - Site Admin
- Posts: 8355
- Joined: Wed Dec 31, 1969 8:00 pm
- Location: earth
- Contact:
Re: Atomic PHP56-FPM
Hey thats cool, are you using this on Plesk or are you using it in a non-CP environment?
I'll see about getting these changes into the next update, my full list here is:
# in atomic-php56-php-fpm.service
1) EnvironmentFile=/opt/atomic/atomic-php56/root/etc/sysconfig/atomic-php56-php-fpm
2) ExecStart= /opt/atomic/atomic-php56/root/usr/sbin/php-fpm --nodaemonize
# Config file changs
3) mv /opt/atomic/atomic-php56/root/etc/atomic-php56-php-fpm.conf /opt/atomic/atomic-php56/root/etc/php-fpm.conf
# in php-fpm.conf
4) include=/opt/atomic/atomic-php56/root/etc/php-fpm.d/*.conf
5) error_log = /opt/atomic/atomic-php56/root/var/log/php-fpm/error.log
# in /opt/atomic/atomic-php56/root/etc/php-fpm.d/atomic-php56-www.conf
6) slowlog = /opt/atomic/atomic-php56/root/var/log/php-fpm/www-slow.log
7) php_admin_value[error_log] = /opt/atomic/atomic-php56/root/var/log/php-fpm/www-error.log
The next thing I want to tackle is running multiple php-fpm versions concurrently, which is going to involve port manipulation. Im not sure if the current plesk API will let me indicate to the virtual domain what port to use or not.
I'll see about getting these changes into the next update, my full list here is:
# in atomic-php56-php-fpm.service
1) EnvironmentFile=/opt/atomic/atomic-php56/root/etc/sysconfig/atomic-php56-php-fpm
2) ExecStart= /opt/atomic/atomic-php56/root/usr/sbin/php-fpm --nodaemonize
# Config file changs
3) mv /opt/atomic/atomic-php56/root/etc/atomic-php56-php-fpm.conf /opt/atomic/atomic-php56/root/etc/php-fpm.conf
# in php-fpm.conf
4) include=/opt/atomic/atomic-php56/root/etc/php-fpm.d/*.conf
5) error_log = /opt/atomic/atomic-php56/root/var/log/php-fpm/error.log
# in /opt/atomic/atomic-php56/root/etc/php-fpm.d/atomic-php56-www.conf
6) slowlog = /opt/atomic/atomic-php56/root/var/log/php-fpm/www-slow.log
7) php_admin_value[error_log] = /opt/atomic/atomic-php56/root/var/log/php-fpm/www-error.log
The next thing I want to tackle is running multiple php-fpm versions concurrently, which is going to involve port manipulation. Im not sure if the current plesk API will let me indicate to the virtual domain what port to use or not.
Re: Atomic PHP56-FPM
Hey Scott:
this is within an non-CP environment. Will apply those changes and see how it goes.
Thanks.
this is within an non-CP environment. Will apply those changes and see how it goes.
Thanks.