BE SOCIAL & SHARE:

Your GreenGeeks hosting account includes the ability to run your own php.ini file which gives you the ability to customize PHP environment variables without the assistance of our technical support staff.

GreenGeeks provides an easy to use interface for managing your PHP version, Extensions, and Settings. Below we show you how to change PHP settings such as memory_limit, register_globals, safe_mode etc. This tutorial will walk you through php.ini file changes to PHP environment variables using our cPanel interface.

How to Configure PHP Settings

1) 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.

2) In cPanel, navigate to the “Software” section and select “Select PHP Version.”

cPanel SOFTWARE select PHP version

3) 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 shown. So in this example, you would not be able to change the PHP settings for version 7.0.

So in order to change PHP settings, you must select a version other than the version that is noted as “native.”

cPanel select PHP version

To change the PHP settings, click the “Switch To PHP Options” link. You should then see the following.

cPanel select PHP selector options

4) 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.

cPanel PHP selector settings

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).

Comments

  1. Jeremiah

    This article is lacking in detail and all attempts I’ve made at implementing a custom php.ini workaround have not worked. My current WordPress installation has a max file upload size of only 1MB and my php.ini in the root directory has a setting of 30MB.

    The article should be updated with a sample php.ini (complete).

  2. Josh

    Hello Jeremiah,

    Thank you for your comments, modifying PHP.ini files has always been a difficult/confusing process. GreenGeeks is proud to announce, a new & easier way of managing your PHP.ini files directly from your cPanel account. Take a look at the updates and contact support if you have any further difficulties.

  3. Jonathan Griffiths

    Any attempts to use php 5.3 or 5.4 result in a configuration error on any php script I try to execute. Even with default settings and includes.

  4. Kaumil - GreenGeeks Article Author

    Are you sure that your PHP scripts are coded to work correctly with 5.3 and 5.4? Check with the developer of the script. If your script is compatible, send in a ticket via the Account Manager and one of our technicians will look into this for you.

  5. Zach Shivers

    Thank you for this article.
    It resolved my issue.

    I run a Denver cleaning service> and I administer the website also.

    I have a background in IT back end systems but I’m a novice on front end systems and web stuff.

    I love Green Geeks. They have provided me the best support ever.
    Support actually directed me to this link.

    I love that we have access to cPanel with the GUI admin tools.
    It makes life much easier for we who do not modify code files often.

  6. Josh Dargie

    This functionality is only available on our Shared & Reseller hosting services. VPS servers are restricted to one PHP version (5.4 by default) and support the traditional php.ini functionality.

  7. John Hollier

    Now that php 5.5 is “end of life” (no actively being supported and no security fixes after July 10, 2016, does GreenGeeks have a migration plan?

    Will you go to 5.6, or jump directly to 7?
    When are you planning to do this?

    P.S. It’s been almost three years since you updated this Knowledge Base item – maybe it’s time the article said that you’re on 5.5 and what your plans are.

  8. Richard Gledhill

    So how do I set outside of the 2 or 3 suggested variables?

    For example: You encourage the installation of Moodle through Softaculous apps installer, however if I want to download all students work at once or even if serveral of them are uploading at once the max I can set “max_execution_time” to is a whopping 90 sec. Also know as internal server error 500 request timed out.

  9. Martin

    Hey Josh,

    So it looks like you’re on 5.6 now, at least that’s what I’m seeing on PHP Selector. It says that changing options is impossible.

    I need to change the upload_max_filesize and the post_max_size settings. I need both to be 20MB. Any way this can be done?

    Thanks,
    Martin

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.