With x10Hosting and x10Premium, instead of modifying PHP settings with your php.ini file, you can change your PHP version and settings easily via your cPanel account. At x10Premium, you will have more versions to choose from, and settings to modify. With this blog post, we’ll go over how you can change your PHP version and settings without any hassle!
Changing PHP Version
After logging into your cPanel account, look for the Software Category. Here you will see an icon for Select PHP Version. Click on this icon.
On the following page, you will see your current PHP version and a drop down menu to select other versions. By default, cPanel accounts are set to use Native (5.4) for the PHP version. If you want to use 5.4, but would like to modify some settings, you will need to change your PHP version to 5.4 rather than “Native”. With x10Premium, you will be able to choose between versions 5.3, 5.4, and 5.5. You’ll only be able to choose between 5.4 and 5.5 with x10Hosting. Once you have selected the version you want to use for your account, click on “Set as current”. Now you will be able to enable PHP extensions and modify PHP settings.
Changing PHP Settings
After choosing which PHP version you want, you should see a list of extensions below the current PHP version. You can enable or disable each extension by simply checking the box next to the extension name. To find out more about the extension, you can hover over the name and more information will pop up by your mouse cursor. We do not recommend enabling every single extension available to you at once, as you may break things for your website. Because of this, please only enable extensions you need for your account. After checking off extensions you’d like to have enabled for your account, make sure to click save at the bottom of page before making any further changes.
To change PHP settings, you will need to click the link at the top of the page, Switch to PHP Options. On the following page, you will see a list of PHP options that you will be able to make changes to. The options that frequently need to be changed are:
- display_errors and error_reporting: enable these two options if your website is displaying a “500 Server Error” or a blank page. If any scripts have a fatal error, which could be the cause of the blank page, you should now be able to see the error when you reload your web page.
- post_max_size and upload_max_filesize: if you’re having issues uploading any files or themes to your account or WordPress websites, try increasing these two options to be larger than the file you’re uploading.
If you’re not sure what an option does for your account, simply hover over the name to get more information about it. After you make a change to one of the options, please make sure to click on apply before changing another option and click save at the bottom once you’re completely finished making changes.
Now you’ll be able to modify any PHP setting for your web hosting account, and enable extensions on the fly! 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!