This topic will show how to manage your websites PHP version and settings via your WCP control panel.
Update PHP Version & Settings via WCP
Login to your WCP control panel.
Note: You can view our topic on logging into WCP if you need help with this step.
Once logged in if you are not already on the domain in questions control panel page then click on the ‘Hosted Domains’ drop-down from the top of the pages navigation bar. Then select the desired domain from the drop-down.
Now within the control panel for the desired domain click on the icon labeled ‘PHP Settings’, which resides under the ‘Website Settings’ section.
- If you have any sub-domains created on this account then you will be requested which domain / sub-domain you wish to manage the PHP Settings for. Click on the ‘Configuration’ button next to the desired domain / sub-domain. If you don’t have any sub-domains then you’ll automatically be taken to the next step without the need to choose which domain to update the settings for.
You should now see the the configuration settings for your sites PHP version. You can see an example of what this will look like in the screenshot below.
Note: Underneath the screenshot we’ll describe what each option allows.
Site: This one is self explanatory. This is the site that you are viewing / updating the PHP configuration settings for.
PHP Version: This drop-down will allow you to choose from the available list of PHP versions installed on the server. On both our shared and dedicated servers we have many PHP versions to choose from by default.
Custom php.ini: By checking this box you will enable your site to override the default PHP configuration that is set for that specific PHP version on the server. Instead, the PHP settings for your site will be controlled by the newly created ‘php.ini’ file within your sites root directory (/wwwroot by default).
Also as a result of checking this box, the tab for ‘PHP INI Settings’ will become available to navigate into, which we’ll cover in the next step.
As mentioned in the previous step, if we check the box for ‘Custom php.ini’ then the tab for ‘PHP INI Settings’ will become available to navigate into. Let’s go ahead and navigate into that folder now and show the options available (see screenshot below):
As you can see from this screenshot (above) you can control a couple of the most commonly changed PHP values. If you change a value in this drop-down and then click ‘Save’ then this will automatically update your custom ‘php.ini’ file for the value you submitted.
Note: You can also change the values for these settings, along with a enormous amount of other configurable options for PHP by manually updating your custom ‘php.ini’ file. You can do so via the ‘File Manager’, ‘FTP’, or by updating the file manually via RDP (if you have your own dedicated server).