With x10Premium and x10Hosting, you can easily change your web hosting account’s PHP version via cPanel. By default, the PHP version will be set to 5.4, however you can change this to 5.3 or 5.5. You can also modify setting, such as post_max_size, or enable or disable certain extension, such as the zip extension.
Changing PHP Version
You can change your web hosting’s PHP version via cPanel – if you’re with x10Premium, please make sure you are using the x3 theme rather than the x10’s Basic theme, you can see how to change to x3 theme here. Once you’re logged in, look for the Software and Services category. There you will see the Select PHP Version.
On the following page you’ll see what your current version is, which will be Default (5.4) if you have not changed your version before. You’ll be able to select which PHP version you would like to have for your web hosting account with the drop down menu. Once you select which version you would like, make sure to click on the “Set as current” button to the right before you click save at the bottom. Please note: if you’re looking to change any setting or enable any extensions with PHP 5.4, please change your version to 5.4 from the default. Even though the default is 5.4, you will not be able to make any changes when you’re using that version.
Enabling PHP Extension
After you change your PHP version from the default version, you’ll see a list of extensions that you can enable or disable appear below it. Tick the boxes off for any option that you would like to have enabled for your account. If you hover over the boxes, text will appear by your mouse explaining the option you are hovering over. Once you’ve enabled or disabled any extensions, click on save at the bottom of the page. Please keep in mind that you shouldn’t enable anything that you do not need, or enable every single extension, as this can break things for your website.
Changing PHP Settings
If there are any settings that you need to change, you’ll be able to do it here as well. First, you will need to click on the “Switch to PHP Settings” at the top right corner of the page.
On the following page you’ll see a list of settings that you can modify. The most commonly used ones are:
- post_max_size: This increases the max size of data that can be uploaded with the POST method. Increasing this can be useful when you’re trying to upload a WordPress theme and it is timing out or giving you an error.
- upload_max_filesize: This increases the max file size of an uploaded file.
- display_errors: This will display any PHP errors that may be occurring with your website. Enabling this option may help you figure out what is causing any error, and help you fix it. Once you’ve enabled the option, visit your website and any existing PHP errors will display at the top of the page
Once you’ve made a change for any single option, make sure you select the “Apply” button to the right of it before you move on to any other settings or even before you click save at the bottom. Otherwise the setting will revert back to the default or previously set option, losing any changed information in the process. If you hover over the value for each option, you will see some text appear by your mouse again explaining what each setting does. After you have changed the settings, and clicked on apply, you will need to click save at the bottom of the page to finalize any changes made.
Now you’ll be able to change your PHP version, enable/disable any extensions you may need, and modify your PHP settings without any troubles! Be sure you are following our Facebook and Twitter pages to stay up to date with the latest in webmaster tips, updates for web software, everything x10Hosting, and more!