Php-fpm
Service information
| Version | 5.6.31 |
|---|---|
| Management | wfmanager (start | stop | restart | status) php-fpm |
| Log files | Access logs: ${install_dir}/supervisord/log/php-fpm.out.log |
| Startup scripts | ${install_dir}/supervisord/apps/php-fpm.ini ${install_dir}/php/etc/php.ini |
| Configuration files | Service directory: ${install_dir}/php/ |
| Default Ports | tcp 9001 |
Troubleshooting
Check the configuration for syntax errors or warnings:
${install_dir}/php/usr/sbin/php-fpm -t --fpm-config ${install_dir}/php/etc/php-fpm.conf -c ${install_dir}/php/etc/php.iniA successful result is as follows:
$ /opt/workfusion/php/usr/sbin/php-fpm -t --fpm-config /opt/workfusion/php/etc/php-fpm.conf -c /opt/workfusion/php/etc/php.ini [25-Jun-2018 15:45:21] NOTICE: PHP message: PHP Deprecated: Comments starting with '#' are deprecated in /opt/workfusion/php/etc/php.ini on line 1 in Unknown on line 0 [25-Jun-2018 15:45:21] NOTICE: configuration file /opt/workfusion/php/etc/php-fpm.conf test is successfulCheck if TCP port 9001 is available.
Ports may be custom:
netstat command output:
$ netstat -lntp | grep phpss command output:
$ ss -ltn | grep 9001lsof command output:
$ lsof -P -n -i :9001 | grep LISTENCount number of running PHP processes. It should not be less than 1:
pgrep command output:
pgrep php | wc -lCheck the default main log files.
- Access logs:
${install_dir}/supervisord/log/php-fpm.out.log - Error logs:
${install_dir}/supervisord/log/php-fpm.err.log
$ tail -f ${install_dir}/supervisord/log/php-fpm.err.log ${install_dir}/supervisord/log/php-fpm.out.log- Access logs:
Check php-fpmout logs using the Wfmanager utility:
wfmanager tail php-fpm