Problem with php.ini

topcbladitop

New member
Joined
May 12, 2010
Messages
3
Hello,
I try to edit php.ini from file editor on DirectAdmin, and i have this message :
Unable to read /usr/local/etc/php5/cgi/php.ini : Unable to open /usr/local/etc/php5/cgi/php.ini for reading<br>

What can i do ?

Hi
 
It s Ok, i understand now. i didnt have php installed as CGI because location of my php.ini is (/usr/local/lib/php.ini)

My problem is resolved now thank you
 
Last edited:
Hello I have a related question, I understand I now did not build PHP as CGI but i use mod_ruid2, this means httpd is also run only for own users. I notice i have the same Message in Directadmin (of course) so that is why i landed on this topic. Should i also install php as cgi or is mod_ruid2 already the same?
 
Hello,

If you aren't using PHP as CGI (i.e. suPHP), why do you then want to edit /usr/local/etc/php5/cgi/php.ini ?
Check

PHP:
<?
phpinfo();
?>

or run

Code:
php --ini

in order to find what php.ini is used by your PHP.
 
Back
Top