Hello,
Where can I find the php.ini file. I need to disable safe mode in it. Whenever I do a php info it says that the .ini file is in /etc but I can't find it. Is it somewhere else? please help.
isn't it there in /etc/php.ini ???
reg kevin
That's what I thought too. But I have searched all over for it and can't find it. Just to be a bit more clear, I am using mandrake 9.1 and used the php.rpm that came with the disc. 🙁
mallujigga,
Not sure if you ever found a solution to your PHP problem, but I too just installed Mandrake 9.1 and they did not include a PHP.ini file with this version. So I created one... this is causing me other problems... but it will allow you to controll the settings in PHP...
PHPdev
Mine was in C:\Windows\php.ini
put up a phpinfo.php page with this in it
<? phpinfo(); ?>
about the 6th option down will be
Configuration File (php.ini) Path
it will tell you where the php.ini is stored
stolzyboy,
I did that one, and it shows /etc, then do a ls-al on /etc as root and.. No php.ini file
I was able to grab the default from php.net and tweak it to match my configuration, and works now.. but by default MDK 9.1 did not install a PHP.ini file
Thanks
A few people have noticed their ini files are missing, I had the same problem.
There is a seperate rpm with ini files and other bits
try this:
http://rpms.mandrakeclub.com/rpms/php-ini.html
hope that helps
get to a command prompt and type:
locate php.ini