How to change a php.ini value?

We use suPHP in all of our servers. This is the common reason why php_flag or php_value doesn't work on MH servers. To change a value like "register_globals" or other you need to use a custom php.ini file put in the public_html folder. Suppose, if you want to change the value of register_globals using a custom php.ini file, just put the following inside a php.ini file created on your public_html folder:

register_globals = On

It should set your register_globals value to On, If you want to set the value to Off, use the following:

register_gloabls = Off

Use the same settings for all available php.ini values to be configurable by users.

After you are done with setting up php.ini file, you need to set the suPHP configpath so that all other subdirectories in your public_html takes that php.ini as its default configuration file. To do this put the following line in your .htaccess:

suPHP_ConfigPath /home/username/public_html

You need to change two things to correct values from your account settings. Username set at the above configuration is your cpanel username. You also need to find what home directory you are on, if it is /home, you do not need to do any changes above, but if it is /home2 or /home3 etc, you need to change with correct values. This settings can be found in your file manager or Go to Cpanel and from the left menu find out the path to your "Root Directory" or "WWW Directory" or "Home Directory".

Thats it, you should be all ON :)

  • 711 Користувачі, які знайшли це корисним
Ця відповідь Вам допомогла?

Схожі статті

Big File uploading problem!

We have received some complaints in these days from our customers about FTP timing out while...

Cant Access my site?

We receive lots of queries from our client saying that why i m not being able to access my site....

Slow Access to http

Sometimes server faces lots of spikes in the performance for attacks, peak hour loads and network...

Why does my custom Status script says Mysql Down?

We have heard this in many places from our clients saying, custom status scripts (Like status2k)...