How do I change my PHP settings via cPanel?

To make it easier to get in touch with us, from the 24th of March 2016 all support tickets will need to be submitted from your Crucial Control Panel.

If you are having issues with PHP and need to modify the PHP directives (settings) you can change these using cPanel.

A Note on PHP 7: PHP 7 is a big leap from the 5 series and provides up to a 50% speed boost and 50% reduced memory usage. It is also more secure than PHP 5. Further to this, it is actively being worked on meaning it will continue to receive speed and security updates. Some older sites may have compatibility problems with PHP 7, while 5.6 is far more compatible. We do recommend moving to 7 and if you have any incompatible themes/plugins you may want to look for alternates as PHP5 is due to stop receiving security updates within a few months and PHP7 will make sure your website is faster, safer and more future proof.

 

To change the settings, complete the following steps.            

  1. Access cPanel by browsing to http://your-domain-name/cpanel, ensuring to replace 'your-domain-name' with your actual domain




  2. Login using the details provided in the welcome email
  3. Under 'Software/Services' click on 'Select PHP Version'



  4. Ensure the 'Current PHP version' is not set to 'native'
    (If it is set to 'native' you will need to change the PHP version to a non-native option)
  5. Select 'Switch to PHP settings'



  6. You will see a number of options that can be updated, which are listed below.

    allow_url_fopen display_errors

    date.timezone

    error_reporting file_uploads

    include_path

    log_errors mail.force_extra_parameters

    max_execution_time

    max_input_time memory_limit

    open_basedir

    post_max_size session.save_path

    short_open_tag

      upload_max_filesize  


  7. Click on the value for the directive you wish to change (this is gray), 'upload_max_filesize' is used as an example in the screenshots below



  8. Change this as needed and click on Apply



  9. Click the 'Save' button to save the changes

You have now successfully modified the PHP directives.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

  • Avatar
    John Robinson

    Hello, I looked at this document to change settings however as my settings (step 4) were set to native I didn't know what to do next

  • Avatar
    Alex Gardner

    Hi John,

    Apologies about the delay in responding, I have updated the article to address the issue you found.

    Thanks, Alex

Powered by Zendesk