Help - Search - Members - Calendar
Full Version: Where is php.ini for cpanel
The Planet Forums > Control Panels > cPanel/WHM
CapCrash
Need to change something in my php settings and was wondering where the php.ini is that i should edit?
Just dont want to mess up what cpanel does or something.
Thanks
xerophyte
if you have zend installed you should be able to find the php.ini, at /usr/local/Zend/etc/php.ini

but you can find out the location of php.ini from the shell type
CODE
php -i | grep php.ini


that will give you location of the php.ini file

or you can just make phpinfo.php file with content
CODE
<?php
phpinfo();
?>

which will also give the location of the php.ini file

hope that helps
BlueFusion
The cPanel PHP or the server PHP? If it's the latter, /usr/local/lib/php.ini
CapCrash
Thanks, php -i | grep php.ini showed where it was.

Theres something else i want to change in the globals.php file, any idea how i can find that?

atiras
QUOTE (xerophyte @ Jan 22 2007, 04:05 AM) *
if you have zend installed you should be able to find the php.ini, at /usr/local/Zend/etc/php.ini

but you can find out the location of php.ini from the shell type
CODE
php -i | grep php.ini


that will give you location of the php.ini file

or you can just make phpinfo.php file with content
CODE
<?php
phpinfo();
?>

which will also give the location of the php.ini file

hope that helps



Hello,

I also need to (possibly) edit php.ini using cpanel. However, when i see code such as posted above I´m gulping. Where do you execute it? Do I go into the phpMyAdmin app from cpanel (under databases), or perhaps the PHP Configuration (under softwrae/services). Or is /usr/local/Zend/etc/php.ini perhaps reachable via the File Manager?

Sorry for the trivial question, I would REALLY appreciate your help blush.gif Do you need more info/context to answer the question, please let me know!

I can help myself with code, but i´m no programmer.
atiras
QUOTE (atiras @ Oct 25 2008, 11:55 AM) *
Hello,

I also need to (possibly) edit php.ini using cpanel. However, when i see code such as posted above I´m gulping. Where do you execute it? Do I go into the phpMyAdmin app from cpanel (under databases), or perhaps the PHP Configuration (under softwrae/services). Or is /usr/local/Zend/etc/php.ini perhaps reachable via the File Manager?

Sorry for the trivial question, I would REALLY appreciate your help blush.gif Do you need more info/context to answer the question, please let me know!

I can help myself with code, but i´m no programmer.



No reply required - I found out from the web hosting company that editing the php.ini isn´t allowed, and that wasn´t my problem after all. So please ignore previous post. blush.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.