PDA

View Full Version : Problem running systemctl start php-fpm.service


satimis
25th November 2012, 16:33
Hi all,

I'm following;
The Perfect Server - OpenSUSE 12.2 x86_64 (Apache2, Dovecot, ISPConfig 3)
http://www.howtoforge.com/perfect-server-opensuse-12.2-x86_64-apache2-dovecot-ispconfig-3-p4

building the server on a VM of KVM

Host - Fedora 17 64bit
VM - OpenSuse 12.2 64bit
KVM

There is NOT much problem until coming to;

10.1 PHP-FPM
===========
Next create the system startup links for php-fpm and start it:

# systemctl enable php-fpm.service
php-fpm.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig php-fpm on

# systemctl start php-fpm.service
Job failed. See system journal and 'systemctl status' for details.


# tail /var/log/messages
Nov 25 21:46:44 server1 systemd[1]: php-fpm.service: control process exited, code=exited status=7
Nov 25 21:46:44 server1 systemd[1]: Unit php-fpm.service entered failed state.
Nov 25 21:57:02 server1 systemd[1]: Reloading.
Nov 25 21:58:25 server1 php-fpm[11173]: Starting php-fpm[25-Nov-2012 21:58:25] ERROR: failed to open error_log (/usr/var/log/php-fpm.log): No such file or directory (2)
Nov 25 21:58:25 server1 php-fpm[11173]: [25-Nov-2012 21:58:25] ERROR: failed to post process the configuration
Nov 25 21:58:25 server1 php-fpm[11173]: [25-Nov-2012 21:58:25] ERROR: FPM initialization failed
Nov 25 21:58:25 server1 startproc: startproc: exit status of parent of /usr/sbin/php-fpm: 78
Nov 25 21:58:25 server1 php-fpm[11173]: ..failed
Nov 25 21:58:25 server1 systemd[1]: php-fpm.service: control process exited, code=exited status=7
Nov 25 21:58:25 server1 systemd[1]: Unit php-fpm.service entered failed state


Please help. TIA

B.R.
satimis

satimis
26th November 2012, 15:13
I forgot deleting ";" (semi-colon) at the beginning of the line. on /etc/php5/fpm/php-fpm.conf


;error_log = /var/log/php-fpm.log


server1:~ # systemctl enable php-fpm.service
php-fpm.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig php-fpm on


server1:~ # systemctl start php-fpm.service
no complaint

Thanks

satimis
26th November 2012, 15:17
duplicate

deleted