PHP settings on VirtualMin Hosted sites

Customers using our VirtualMin control panel may need to make changes to PHP settings.  Most commonly when using CMS systems like WordPress or Joomla!  Placing a php.ini in the root folder of your application will not work, because there is a php.ini file located in the etc/php7/ folder of your home directory.  This php.ini takes precedence of any others.  

You can use file manager within Virtualmin to edit this file. simply open the file manager and navigate to /etc/php7.2/php.ini.  

You may also want to create a page to show PHP information.  It's simple just create a phpinfo.php file in your /public_html folder and the edit it.  Paste this into it and save the file:

 <?php phpinfo(); ?>

now just browse to your site and call the phpinfo.php file.  Something like this  You should see a page similar to this:

When you are done, you may want to delete this file as it may reveal information about your site you don't want others to know.

That's it.  Happy Developing!

Add Feedback