php.ini is a configuration file that is read when a php script gets executed, when the php script starts it looks for it in the current working directory, if it’s not present then it will check for the main servers php.ini . It contains the directives with their local values and master values – few most common directives are: register_globals, allow_url_include , allow_url_fopen , open_basedir etc…
So, you must be wondering how to find the path for php.ini on your cPanel web server. Assuming that you have root access the command to check the path is:
root@server# php –i | grep php.ini
Configuration File (php.ini) Path => /usr/local/lib/php.ini
If you’re not a system admin and you do not have root access, but want to know about the PHP directives which is on the server on which your site is hosted – this can be done by creating a simple PHP file and accessing it with your favorite browser. Just add the below code in the PHP file:
<?
phpinfo();
?>
I hope you see all the information that you require.
This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now



