Your GreenGeeks hosting account includes the ability to customize PHP environment variables without the assistance of our technical support staff.
This tutorial will show you how to make changes to the PHP version and environment variables using our cPanel interface.
How to Change the PHP Version
In order to customize your PHP settings, you must select a custom PHP version. You cannot change the PHP settings for the native (default) PHP version.
Log in to your GreenGeeks Account Manager and go to your cPanel Account by clicking the “cPanel Login” button in the “Quick Server Login” section.
In the “SOFTWARE” section, click the “Select PHP Version” link or icon.
Select the version you wish to use. By default, the latest stable version (called the “native” version) will be selected and is already active. So if you wish to use the native version, you cannot change the PHP settings.
Click the “Set as current” button, then scroll down.
1) Click the “Use Defaults” button to select the default extensions.
2) Click the “Save” button.
How to Configure PHP Settings
To change the PHP settings, click the “Switch To PHP Options” link.
You should then see the following.
To make changes simply click the grey text, enter or select the setting change, and click the “Apply” button. Click “Save” when you have completed all of your modifications.
Viewing the Changes
You can check to ensure that your changes have taken place by creating a phpinfo.php file. Add the following line of code to a blank text file:
<? phpinfo(); ?>
Name the file phpinfo.php and upload it to the root directory of your site.
Visit http://ggexample.com/phpinfo.php to view the PHP settings (replacing ggexample.com with your domain name).