Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Fast CGI with PHP, and it runs great except I just noticed it's not picking up the php ini path. It seems not to pick up the -c argument at all and says no configuration file is loaded when I do phpinfo()

I'm using:

AddHandler fcgid-script .php
FCGIWrapper '/usr/bin/php-cgi -c /path/to/php.ini' .php

Oddly running from the command line it does work.

[tim@localhost ~] $ /usr/bin/php-cgi -c /path/to/php.ini -i | grep Loaded\ Configuration\ File
<tr><td class="e">Loaded Configuration File </td><td class="v">/path/to/php.ini </td></tr>

Further details PHP 5.2.10 (cgi-fcgi) (built: Jul 20 2009 18:09:05)

share|improve this question
up vote 0 down vote accepted

So, it turns out it this was a file permissions issue.

My ini directory was owned root:apache and changing to root:root suddenly got the config picked up.

No errors were raised informing me of the bad permissions though

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.