How to apply PHP changes?

5 posts / 0 new
Last post
#1 Thu, 06/10/2010 - 19:09
manu5

How to apply PHP changes?

Well, my problem is really simple. I have changed upload max file size (to increase import file size limit in phpmyadmin), saved it but it will have no effect til I restart php. But. How do I restart PHP? (I am not a root user in Virtualmin instead I have several virtual servers under a parent) .

Second question: which php.ini should be changed? Parent or subserver?

Could it be done without using SSH?

Thu, 06/10/2010 - 19:19
andreychek

If you log into Virtualmin, and select your Virtual Server from the dropdown list -- go into Services -> PHP 5 Configuration -> Resource Limits, you should be able to edit the max file upload size there.

In most cases, you shouldn't need to do anything else in order to make those changes active.

To verify that they're working correctly, you could create a PHP script named "test.php", and have it execute "phpinfo()", which will show you the current values of all the php.ini parameters.

-Eric

Fri, 06/11/2010 - 02:08
manu5

Thank you, I checked it and it works.

Mon, 07/23/2012 - 12:41
s3w47m88

Thanks for the instructions Eric. I followed these steps as well, but the changes aren't updating my site(s).

Mon, 10/28/2013 - 09:32
amityweb

I find I have to first delete the php5 file that is in /home/yourserver/etc/ and then restart Apache for a specific website to take the new global PHP setting. Quite a pain when you have lots of sites.

Topic locked