Error:

lamnk@lamnk:~% sudo php-fpm start

Starting php_fpm Error in argument 1, char 1: no argument for option -
Usage: php-cgi [-q] [-h] [-s] [-v] [-i] [-f ] php-cgi [args...]
-a Run interactively
-C Do not chdir to the script's directory
-c | Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-f Parse . Implies `-q'
-h This help -i PHP information
-l Syntax check only (lint)
-m Show compiled in modules -q Quiet-mode. Suppress HTTP Header output.
-s Display colour syntax highlighted source.
-v Version number
-w Display source with stripped comments and whitespace.
-z Load Zend extension
................................... failed

Reason:

The old config file php-fpm.conf is located at /etc. However the new config file is moved to /usr/etc.

I don’t know why is that. I’ve used the exact same old configuration directives …

Fix:

M

Error:

lamnk@lamnk:~% sudo php-fpm start

Starting php_fpm Error in argument 1, char 1: no argument for option -
Usage: php-cgi [-q] [-h] [-s] [-v] [-i] [-f ] php-cgi [args...]
-a Run interactively
-C Do not chdir to the script's directory
-c | Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-f Parse . Implies `-q'
-h This help -i PHP information
-l Syntax check only (lint)
-m Show compiled in modules -q Quiet-mode. Suppress HTTP Header output.
-s Display colour syntax highlighted source.
-v Version number
-w Display source with stripped comments and whitespace.
-z Load Zend extension
................................... failed

Reason:

The old config file php-fpm.conf is located at /etc. However the new config file is moved to /usr/etc.

I don’t know why is that. I’ve used the exact same old configuration directives …

Fix:

Move or copy php-fpm.conf from /etc to /usr/etc. Problem solved.

ove or copy php-fpm.conf from /etc to /usr/etc. Problem solved.