PDA

View Full Version : PHP4 CGI & PHP5 CLI - Where is my php.ini ?



apichault
09-17-2008, 08:51 AM
Hello,

I have the following configuration:


#PHP settings. default_php possible values - 4 or 5
default_php=5
php4_cli=no
php4_cgi=yes
php5_cli=yes
php5_cgi=no

#Possible values - 1.3, 2.0 or 2.2
apache_ver=2.2

I want to put the register_globals to ON for PHP4.
I update the
/usr/local/etc/php4/cgi/php.ini
But when i do phpinfo(), it still off.
Can you help me ?

Thank you,

smtalk
09-17-2008, 09:09 AM
/usr/local/lib/php.ini

apichault
09-17-2008, 09:31 AM
/usr/local/lib/php.ini
Is it the same for both (php4 and Php5) ?

smtalk
09-17-2008, 09:43 AM
Just PHP5 as CLI (it's set to default).

apichault
09-17-2008, 10:06 AM
Ok...
In fact, i'm looking for the php.ini (php4 cgi)...

But where is it...? That this the question...:):):)
(I'm a newbie on unix... speak sloooooowwwwly please :))

smtalk
09-17-2008, 10:18 AM
http://directadmin.com/forum/showthread.php?t=19221 #15. If you want to have your own php.ini: http://help.directadmin.com/item.php?id=183