Can I change my website's PHP configuration?

Can I change my website's PHP configuration?

Yes, you can.

This is available via the Manage Hosting > Select Package > PHP Configuration section of our control panel. Alternatively, you can create a custom file in your webspace with your desired PHP configuration. Please note that PHP will only read a custom configuration once every 5 minutes, so it can take a short time before the configuration changes appear on your website. This is always the case for our WordPress platform, as PHP-FPM caches the configuration quite aggresively. 

Control Panel

The PHP Configuration icon inside the control panel allows you to view and modify a list of the more common configuration options. You can also see our default values. To change one, simply enter your preferred value in the text input or make a radio selection and save.

File System (Advanced)

If you wish to set an option that is not listed in the control panel, you can just modify the ~/public_html/.user.ini file directly via File Manager. This file is parsed in addition to our standard PHP configuration by our web server, allowing you to change almost all the PHP settings for your website. If you've already made changes via the control panel you will see those in a .user.ini already. For example “max_input_time=500” would set max_input_time to 500 seconds.

Testing

The best way to confirm the settings are live is via phpinfo(). This allows you to see the current (local) and default (global) PHP configuration. To do this, use File Manager or an FTP client to create a file, for example “info.php”, with the following content:

phpinfo();
?>

Then visit your website via domain.com/info.php and you'll see all PHP configuration settings. Please remember to remove the script when you've finished testing.

    • Related Articles

    • Can I change my website's PHP configuration?

      Yes, you can. This is available via the Manage Hosting > Select Package > PHP Configuration section of our control panel. Alternatively, you can create a custom file in your webspace with your desired PHP configuration. Please note that PHP will only ...
    • How do I change PHP version?

      As standard, we run PHP 7+. If you wish to switch version, head HERE > Manage Hosting > [Select Package] > “Switch PHP Version” Our Linux platform has the ability to run different versions of PHP: PHP 5.3 PHP 5.4 PHP 5.5 PHP 5.6 PHP 7.0 PHP 7.1 PHP ...
    • How do I use the Website Malware Scanner?

      Overview One of the major problems with malware is its persistence. This is why VISYOO's Website Malware Scanner makes daily scans of all the sites within your hosting account. It uses a combination of commercial and in-house tools and provides ...
    • How do I use the Website Malware Scanner?

      Overview One of the major problems with malware is its persistence. This is why VISYOO's Website Malware Scanner makes daily scans of all the sites within your hosting account. It uses a combination of commercial and in-house tools and provides ...
    • Why should you use Force HTTPS on your website

      Using HTTPS instead of HTTP means that communications between your browser and a website is encrypted via the use of an SSL (Secure Socket Layer). Even if your website doesn’t handle sensitive data, it’s a good idea to make sure your website loads ...