In php-fcgi.c it looks like the read_config, valid_config got called before the command line options are parsed, wrongly causing php-fcgi to ignore the -c conf file setting. Placing read_config, valid_config invocations AFTER command line options (like -c) are parsed causes -c option to be correctly used. Here's my patch: