PHP-FPM (TinyMCE)
Service overview
| Management | wfmanager (start | stop | restart | status) php-fpm |
|---|---|
| Log files | Access logs: |
| Startup scripts | <INSTALL_DIR>/supervisord/apps/php-fpm.ini<INSTALL_DIR>/php/etc/php.ini |
| Configuration files | Service directory: <INSTALL_DIR>/php/General configuration: <INSTALL_DIR>/php/etc/php-fpm.conf |
| Default ports | TCP 9001 |
Troubleshooting
Check 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.iniThe 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 the number of running PHP processes. This 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 util:
wfmanager tail php-fpm