Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all, I'm following; The Perfect Server - OpenSUSE 12.2 x86_64 (Apache2, Dovecot, ISPConfig 3) The Perfect Server - OpenSUSE 12.2 x86_64 (Apache2, Dovecot, ISPConfig 3) - Page 4 | ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,791

    start php-fpm.service problem


    Hi all,

    I'm following;
    The Perfect Server - OpenSUSE 12.2 x86_64 (Apache2, Dovecot, ISPConfig 3)
    The Perfect Server - OpenSUSE 12.2 x86_64 (Apache2, Dovecot, ISPConfig 3) - Page 4 | HowtoForge - Linux Howtos and Tutorials

    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
    Code:
    php-fpm.service is not a native service, redirecting to /sbin/chkconfig.
    Executing /sbin/chkconfig php-fpm on
    # systemctl start php-fpm.service
    Code:
    Job failed. See system journal and 'systemctl status' for details.
    # tail /var/log/messages
    Code:
    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

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by satimis
    Code:
    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)
    I would guess that not being able to open the logfile is your problem. It is probably that the /usr/var/log dir does not exist. Maybe change it to /var/log in the init script or config file for php-fpm (not sure what that is). If php-fpm is installed via rpm, then you can list the files belonging to the package, e.g.:
    Code:
    rpm -ql php-fpm
    The log file may be defined in the systemd file or a conf file.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •