SuPHP custom php.ini doesn't get read
- by Mathieu Dumoulin
Took me about 4 hours to get a FastCGI + SuPHP running off Ubuntu 11.10 and i'm now happy that it works mighty fine except for ONE big problem.
Custom php.ini's don't seem to load. I tried changing some options and then firing off a phpinfo() and nothing changes in the phpinfo() which leads me to think that there is definitely a problem with the loading of the configuration file.
<IfModule mod_suphp.c>
AddHandler x-httpd-php .php
<Location />
SuPHP_AddHandler x-httpd-php
</Location>
suPHP_ConfigPath /home/mdumoulin/Documents/tests/tests
suPHP_Engine on
</IfModule>
As you can see, i took great care in making sure i wasn't referencing the php.ini file itself but the directory of the vhost.
In the php.ini located in "/home/mdumoulin/Documents/tests/tests/php.ini", you can find:
[PHP]
error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE
display_errors = Off
And the log in /var/log/suphp/suphp.log doesn't contain anything relevant, (only old errors that occured before this post while i was testing suphp...
So i'm stumped there, dunno what more i can do!
Anyone got an idea?
EDIT:
FINALY, got time to work on this, i disabled FCGI and only enabled SuPHP but after restarting i still see "Server API: CGI/FastCGI". Is this what i should be getting or not? I believe that it's normal i get CGI since SUPHP works with a CGI... But i'm not too sure anymore...