PHP Configuration – ChemiCloud Knowledge Base & Self-Support Center https://chemicloud.com/kb Mon, 05 May 2025 07:53:38 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.2 https://chemicloud.com/kb/wp-content/uploads/2019/06/favicon_rk1_icon.ico PHP Configuration – ChemiCloud Knowledge Base & Self-Support Center https://chemicloud.com/kb 32 32 HTTP Status Codes – From the 100s to the 500s https://chemicloud.com/kb/article/http-status-codes/ https://chemicloud.com/kb/article/http-status-codes/#comments Thu, 29 Apr 2021 19:21:18 +0000 https://chemicloud.com/kb/?post_type=ht_kb&p=5335 You’ve probably seen an HTTP Status / Error Page before. Take the common 500 error below:

These errors or “statuses” represent a short message from the webserver and usually, but not always, indicate that something is wrong. The first thing to remember when you see one of these errors is – Don’t Panic! Just like your hair regrows, your code can be rewritten and things can be fixed.

However, before you fix the error, you’ll need to know what it means so you know where to look. This Knowledgebase article contains a detailed listing of all known HTTP Status Codes and what they mean.

Let’s dive in!

The 5 Classes of HTTP Status Codes

To make things easy, when the RFCs for the HTTP Status Codes were created by the forefathers of the internet, that is the IETF or Internet Engineering Task Force, they were grouped into 5 classes.

  • 100s: These are informational codes that indicate the request initiated by the browser is continuing.
  • 200s: These are success codes returned when the browser request is received, understood, and processed by the server.
  • 300s: These are redirection codes returned when a new resource has been submitted for the requested resource.
  • 400s: These are client error codes that indicate there is a problem with the request.
  • 500s: These are server error codes that indicate the browser request was accepted by the web server, but an error on the server prevents it from being delivered.

List of HTTP Status Codes

100 Status Codes – Informational Responses

  • 100: Continue. This code means the server in question has received your browser’s request headers and is now ready for the request body to be sent.
  • 101: Switching Protocols. Your browser has asked the server to change protocols and the server has agreed.
  • 103: Early hints. This returns some response headers before the final HTTP message.

200 Status Codes – Success Responses

  • 200: OK. The standard response for successful HTTP requests.
  • 201: Created. The request has been fulfilled.
  • 202: Accepted. The request has been accepted for processing, but the processing has not been completed. The request may or may not be acted upon and may be disallowed when the processing does occur.
  • 203: Non-Authoritative Information. This code appears when a proxy is in use and means the proxy server received HTTP Code 200, everything is okay, from the origin server, but has modified the response before passing it on to your browser session.
  • 204: No Content. This code means the server has successfully processed the request, but it’s not going to return any content.
  • 205: Reset Content. This is similar to the 204 code in that the server has successfully processed the request, but it’s not going to return any content and the document view will be reset.
  • 206: Partial Content. You may see this status code if your HTTP client uses range headers. This enables the browser to perform tasks like resuming paused downloads and splitting downloads into multiple streams. This code is sent when a range header causes the server to send only part of the requested resource.

300 Status Codes – Redirection Responses

  • 300: Multiple Choices. Sometimes there may be multiple processing resources the server can respond with to fulfill the browser’s request. A 300 code means your browser needs to choose between them. This may occur if there are multiple file type extensions available or if the server is experiencing word-sense disambiguation.
  • 301: The requested resource has been moved permanently. This code is delivered when a web page or resource has been permanently replaced with a different one. It’s used for permanently redirecting a URL from one place to another.
  • 302: The requested resource has moved, but was found. This code indicates the resource the browser is requesting was found, but not at the location the browser expected it. It’s used for temporarily redirecting a URL from one place to another.
  • 303: See Other. This code tells your browser that it found the resource you requested via one of the HTTP Request Methods, such as POST, PUT, or DELETE, but to retrieve it using the other method – GET, you have to issue that request to a different URL than the one you originally used.
  • 304: The requested resource has not been modified since the last time you accessed it. This code tells your browser if it has a copy of the page already in the cache, it’s okay to use it because the content on it didn’t change since it was last cached.
  • 307: Temporary Redirect. This code has replaced 302 “Found” as the appropriate action when a resource has been temporarily moved to a different or new URL.
  • 308: Permanent Redirect. This code is the successor to the 301 code.

Struggling with website errors? ChemiCloud is the hosting solution designed to save you time! 🤓 Check out our web hosting plans!

400 Status Codes – Client Error Responses

  • 400: Bad Request. This code means the server can’t return any response due to an error at the client’s end.
  • 401: Unauthorized. This code is returned by the server when the resource you’re trying to access is requested without the proper authorization credentials. If you’ve set htpasswd authentication, you’ll see this if you don’t login properly.
  • 402: Payment Required. This is a somewhat obscure error and was originally intended for use in a different industry. However that never happened, so instead the code is used by a few platforms to indicate that a request cannot be fulfilled.
    • The Google Developer API will give this error when you have reached the daily request limit.
    • Shopify will give you this error if you haven’t paid your store fees and the store is temporarily suspended/deactivated.
    • Stripe will show you this error if your payment failed or they are blocking a transaction.
  • 403: Access to that resource is forbidden. This code is returned when a user attempts to access something they don’t have permission to view. If you’re trying to access password-protected content without first logging in, you would probably see this error.
  • 404: The requested resource was not found. This means the URL / content the browser requested isn’t on the server.
  • 405: Method not allowed. This is generated when the web server supports the method received, but the target resource doesn’t.
  • 406: Not acceptable response. The resource requested is capable of generating only content that is not acceptable according to the accepted headers sent with the request.
  • 407: Proxy Authentication Required. A proxy server is in use and requires your browser to authenticate itself to continue.
  • 408: The server timed out waiting for the rest of the request from the browser. This code is generated when the server times out while waiting for the full request from the browser.
  • 409: Conflict. A 409 status code means the server couldn’t process the request from the browser because there’s a conflict with the relevant resource. This typically happens when there are multiple edits happening to the page simultaneously.
  • 410: The requested resource is gone and won’t be coming pack. This is similar to a 404, but indicates to the browser this was expected, rather than unexpected, and is also very permanent.
  • 411: Length Required. This means the requested resource requires the client to specify a certain length, and the client didn’t.
  • 412: Precondition failed. Your browser included certain conditions in the request headers and the server didn’t meet those specs.
  • 413: Payload too large. Or Request Entity Too Large. Your request is larger than the server is willing/able to process.
  • 414: URI Too Long. This means a GET request has been encoded as a query string that is too large for the server to process.
  • 415: Unsupported Media Type. This means your request was for a media type the server or resource doesn’t support.
  • 416: Range Not Satisfiable. Your request was for a portion of a resource the server isn’t able to return.
  • 417: Expectation failed. The server is unable to meet the requirements stated in the requests expect header field.
  • 418: I’m a teapot. This is returned by teapots that receive requests to brew coffee. It’s an April Fools Joke.
  • 422: Unprocessable Entity. The client request contains semantic errors and the server can’t process it.
  • 425: Too Early. This error is sent when the server is unwilling to process a request because it may be replayed.
  • 426: Upgrade required. Due to the contents of the requests upgrade header field, the client needs to switch to a different protocol.
  • 428: Precondition Required. The server requires conditions to be specified before processing the request.
  • 429: Too many requests. This is generated by the server when the user has sent too many requests in a given amount of time. Also known as rate-limiting.
  • 431: Request Header Fields Too Large. The server can’t process the request because the header fields are too large. This may indicate a problem with a single header field or all of them.
  • 451: Unavailable For Legal Reasons. The operator of the server has received a demand to prohibit access to the resources you have requested. Also a reference to the famous Ray Bradbury novel, Fahrenheit 451.
  • 499: Client closed request. This code is returned by NGINX when the client closes the request while Nginx is still processing it.

500 Status Codes – Server Error Responses

  • 500: There was an error on the server and the request could not be generated. This is a generic code that simply means, internal server error. Something went wrong on the server and what you’re requesting isn’t available.
  • 501: Not implemented. This error indicates that the server does not support the functionality required to fulfill the request.
  • 502: Bad gateway. This error code typically means that one server has received an invalid response from another, such as when a proxy server is in use.
  • 503: The server is unavailable to handle this request right now. This code happens when a server may be overloaded and is unable to handle additional requests.
  • 504: The server, acting as a gateway, timed out while waiting for another server to respond. This is the error returned when there are two servers involved in processing a request, and the first server times out waiting for the second one to respond.
  • 505: HTTP Version not supported. The server doesn’t support the version of HTTP the client used to make the request.
  • 511: Network Authentication Required. This error code is sent when the network you’re trying to use requires some form of authentication before sending your request to the server. For instance, you may need to agree to the terms and conditions of a public hotspot.
  • 521: Web server is down. This is a Cloudflare-specific error message and means your browser was able to successfully connect to Cloudflare’s network, but it wasn’t able to connect to the origin server.
  • 525: SSL Handshake failed. This error means that the SSL Handshake between a domain using Cloudflare and the origin web server failed.

Other status codes

There is a Wikipedia article with a list of all of the HTTP Status Codes if you are interested.

]]>
https://chemicloud.com/kb/article/http-status-codes/feed/ 2
How to Do PHP Changes in cPanel Using MultiPHP Manager https://chemicloud.com/kb/article/how-to-use-multiphp-manager-in-cpanel/ https://chemicloud.com/kb/article/how-to-use-multiphp-manager-in-cpanel/#respond Fri, 29 Jan 2021 13:11:41 +0000 https://chemicloud.com/kb/?post_type=ht_kb&p=4545 The MultiPHP Manager feature of cPanel allows you to use multiple versions of PHP at the same time, while the MultiPHP INI Editor allows you to change PHP Variables. This article will describe how to alter the PHP version in use, as well as how to change other settings by using the cPanel feature.

Important Note:

This Knowledge Base article is specific to customers who have a Cloud VPS plan with CentOS as the operating system.

If you are using Web Hosting, WordPress Hosting, or Reseller Hosting, this article does not apply to your services. To change the PHP Version on your services, please refer to this KB article.

How to Change PHP Version Using MultiPHP Manager in cPanel

Step 1: Log in to your WHM. There’s a lot of ways to do this, but the sure-fire easiest way is to log in to your Client Area, then open the WHM for your VPS.

Active Services > Actions > WHM


Step 2:
Once logged into WHM look for the List Accounts section and click to open it.

WHM > List Accounts

Step 3: Locate the cPanel account and click on the cP icon beside the domain name. This action will log you into the cPanel of your account.

WHM > List Accounts > cP icon


Step 4:
 Look for the Software section in cPanel and click the MultiPHP Manager to open it.

Step 5: Once the MultiPHP Manager is open, you will see the current version of PHP that is being used, as well as a list of your domains.

Using the checkboxes on the left, you can choose the domains for which you want to change the PHP version. Once you have chosen the domains you want to alter, you can use the PHP Version drop-down + the Apply button to save your changes.

As of this writing, you can choose from the following PHP versions: PHP 5.4, PHP 5.5, PHP 5.6, PHP 7.0, PHP 7.1, PHP 7.2, PHP 7.3, PHP 7.4 and PHP 8.0.

Important Note Regarding PHP Versions Older Than PHP 7.4:

Warning: PHP versions PHP 5.4, PHP 5.5, PHP 5.6, PHP 7.0, PHP 7.1, and PHP 7.2 are deprecated. We recommend that you update to a supported version of PHP if your application is still using a deprecated version.

If you have questions about this, please open a ticket from your Client Area or chat with our Happiness Engineers 24×7 and we’ll get you sorted!

How to Change PHP Variables Using MultiPHP INI Editor in cPanel

Step 1: Log in to your WHM. There’s a lot of ways to do this, but the easiest way is to log in to your Client Area, then open the WHM for your VPS.

Active Services > Actions > WHM

Step 2: Once logged into WHM look for the List Accounts section and click to open it.

WHM > List Accounts

Step 3: Locate the cPanel account and click on the cP icon beside the domain name. This action will log you into the cPanel of your account.

WHM > List Accounts > cP icon

Step 4: Scroll down to the Software section and click the MultiPHP INI Editor to open it.

Step 5: Once the MultiPHP INI Editor opens, you will need to choose a home directory or domain in order to make changes to the PHP.INI Configuration.

Use the drop-down to choose a domain:

Note: If you use a PHP.ini in your home directory, rather than individual PHP.ini files, to manage your PHP configuration, you can choose “Home Directory”. 

Step 6: Once you have chosen the domain you want to modify PHP variables on, the PHP directive list will appear.

With this list, you have the option to increase or decrease the variables on settings like max_input_time, max_execution time_, memory_limit, post_max_size, and upload_max_filesize.

Be sure to click the blue Apply button at the bottom if you make any changes to these settings!

And that’s it! Now you know how to use the MultiPHP functions to change important PHP Variable settings.

]]>
https://chemicloud.com/kb/article/how-to-use-multiphp-manager-in-cpanel/feed/ 0
How to Set a Different PHP Version for an Addon Domain https://chemicloud.com/kb/article/set-a-different-php-version-for-an-addon-domain/ https://chemicloud.com/kb/article/set-a-different-php-version-for-an-addon-domain/#respond Mon, 07 Sep 2020 15:01:48 +0000 https://chemicloud.com/kb/?post_type=ht_kb&p=3627 ChemiCloud uses CloudLinux as the OS on our servers to improve server stability. A major feature of CloudLinux is that each account can select the PHP version they want to have for their websites.

This is super useful if you have an application that requires a specific version of PHP. However, the main disadvantage of these features is that you can’t set a different PHP version for an Addon Domain or Subdomain inside cPanel.

While this option is not available in your cPanel, it is possible to have a different PHP version for an addon domain, subdomain, or on a per-folder basis by using handlers in your site’s .htaccess file.

You can easily change the PHP version on your account by using one of the following handlers, according to your desired PHP version.

The handlers for all the PHP versions we offer are:

AddHandler application/x-httpd-alt-php56 .php .php7 .phtml
AddHandler application/x-httpd-alt-php70 .php .php7 .phtml
AddHandler application/x-httpd-alt-php71 .php .php7 .phtml
AddHandler application/x-httpd-alt-php72 .php .php7 .phtml
AddHandler application/x-httpd-alt-php73 .php .php7 .phtml
AddHandler application/x-httpd-alt-php74 .php .php7 .phtml
AddHandler application/x-httpd-alt-php80 .php .php8 .phtml
AddHandler application/x-httpd-alt-php81 .php .php8 .phtml
AddHandler application/x-httpd-alt-php82 .php .php8 .phtml
AddHandler application/x-httpd-alt-php83 .php .php8 .phtml
AddHandler application/x-httpd-alt-php84 .php .php8 .phtml
Need to set a global PHP version instead?

If you want to set a global PHP version for all your domains inside your cPanel, you can easily do so using the Select PHP Version feature in cPanel.

How to Set PHP 5.6 Version for an Addon Domain

Let’s have a practical example of how to set the PHP 5.6 version for one of your Addon Domains.

.htaccess file in the desired directory or modify an existing .htaccess file where you want to have a different from default PHP version with the following handler:

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “alt-php56” package as the default “PHP” programming language.
AddHandler application/x-httpd-alt-php56 .php .php7 .phtml
# php -- END cPanel-generated handler, do not edit

As a result, an addon domain, for instance, will use the PHP 5.6 version which you’ve set for it, and not the global one set for the account in the cPanel > PHP Selector.

How to Set PHP 7 Version for an Addon Domain

Let’s have a practical example of how to set the PHP 7 version for one of your Addon Domains.

.htaccess file in the desired directory or modify an existing .htaccess file where you want to have a different from default PHP version with the following handler:

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “alt-php70” package as the default “PHP” programming language.
AddHandler application/x-httpd-alt-php70 .php .php7 .phtml
# php -- END cPanel-generated handler, do not edit

As a result, an addon domain, for instance, will use the PHP 7 version which you’ve set for it, and not the global one set for the account in the cPanel > PHP Selector.

How to Set PHP 7.1 Version for an Addon Domain

Let’s have a practical example of how to set the PHP 7.1 version for one of your Addon Domains.

.htaccess file in the desired directory or modify an existing .htaccess file where you want to have a different from default PHP version with the following handler:

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “alt-php71” package as the default “PHP” programming language.
AddHandler application/x-httpd-alt-php71 .php .php7 .phtml
# php -- END cPanel-generated handler, do not edit

As a result, an addon domain, for instance, will use the PHP 7.1 version which you’ve set for it, and not the global one set for the account in the cPanel > PHP Selector.

How to Set PHP 7.2 Version for an Addon Domain

Let’s have a practical example of how to set the PHP 7.1 version for one of your Addon Domains.

.htaccess file in the desired directory or modify an existing .htaccess file where you want to have a different from default PHP version with the following handler:

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “alt-php72” package as the default “PHP” programming language.
AddHandler application/x-httpd-alt-php72 .php .php7 .phtml
# php -- END cPanel-generated handler, do not edit

As a result, an addon domain, for instance, will use the PHP 7.2 version which you’ve set for it, and not the global one set for the account in the cPanel > PHP Selector.

How to Set PHP 7.3 Version for an Addon Domain

Let’s have a practical example of how to set the PHP 7.3 version for one of your Addon Domains.

.htaccess file in the desired directory or modify an existing .htaccess file where you want to have a different from default PHP version with the following handler:

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “alt-php73” package as the default “PHP” programming language.
AddHandler application/x-httpd-alt-php73 .php .php7 .phtml
# php -- END cPanel-generated handler, do not edit

As a result, an addon domain, for instance, will use the PHP 7.3 version which you’ve set for it, and not the global one set for the account in the cPanel > PHP Selector.

How to Set PHP 7.4 Version for an Addon Domain

Let’s have a practical example of how to set the PHP 7.4 version for one of your Addon Domains.

Create a .htaccess file in the desired directory or modify an existing .htaccess file where you want to have a different from default PHP version with the following handler:

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “alt-php74” package as the default “PHP” programming language.
AddHandler application/x-httpd-alt-php74 .php .php7 .phtml
# php -- END cPanel-generated handler, do not edit

As a result, an addon domain, for instance, will use the PHP 7.4 version which you’ve set for it, and not the global one set for the account in the cPanel > PHP Selector.

How to Set PHP 8.0 Version for an Addon Domain

Let’s have a practical example of how to set the PHP 8.0 version for one of your Addon Domains.

.htaccess file in the desired directory or modify an existing .htaccess file where you want to have a different from default PHP version with the following handler:

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “alt-php80” package as the default “PHP” programming language.
AddHandler application/x-httpd-alt-php80 .php .php8 .phtml
# php -- END cPanel-generated handler, do not edit

As a result, an addon domain, for instance, will use the PHP 8.0 version which you’ve set for it, and not the global one set for the account in the cPanel > PHP Selector.

How to Set PHP 8.1 Version for an Addon Domain

Let’s have a practical example of how to set the PHP 8.1 version for one of your Addon Domains.

.htaccess file in the desired directory or modify an existing .htaccess file where you want to have a different from default PHP version with the following handler:

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “alt-php81” package as the default “PHP” programming language.
AddHandler application/x-httpd-alt-php81 .php .php8 .phtml
# php -- END cPanel-generated handler, do not edit

As a result, an addon domain, for instance, will use the PHP 8.1 version which you’ve set for it, and not the global one set for the account in the cPanel > PHP Selector.

How to Set PHP 8.2 Version for an Addon Domain

Let’s have a practical example of how to set the PHP 8.2 version for one of your Addon Domains.

.htaccess file in the desired directory or modify an existing .htaccess file where you want to have a different from default PHP version with the following handler:

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “alt-php82” package as the default “PHP” programming language.
AddHandler application/x-httpd-alt-php81 .php .php8 .phtml
# php -- END cPanel-generated handler, do not edit

As a result, an addon domain, for instance, will use the PHP 8.1 version which you’ve set for it, and not the global one set for the account in the cPanel > PHP Selector.

How to Set PHP 8.3 Version for an Addon Domain

Let’s have a practical example of how to set the PHP 8.3 version for one of your Addon Domains.

.htaccess file in the desired directory or modify an existing .htaccess file where you want to have a different from default PHP version with the following handler:

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “alt-php83” package as the default “PHP” programming language.
AddHandler application/x-httpd-alt-php83 .php .php8 .phtml
# php -- END cPanel-generated handler, do not edit

As a result, an addon domain, for instance, will use the PHP 8.3 version which you’ve set for it, and not the global one set for the account in the cPanel > PHP Selector.

How to Set PHP 8.4 Version for an Addon Domain

Let’s have a practical example of how to set the PHP 8.4 version for one of your Addon Domains.

.htaccess file in the desired directory or modify an existing .htaccess file where you want to have a different from default PHP version with the following handler:

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “alt-php83” package as the default “PHP” programming language.
AddHandler application/x-httpd-alt-php84 .php .php8 .phtml
# php -- END cPanel-generated handler, do not edit

As a result, an addon domain, for instance, will use the PHP 8.4 version which you’ve set for it, and not the global one set for the account in the cPanel > PHP Selector.

That’s a wrap!

Now you know how you can easily change the PHP version on your Addon domains by using one of the following handlers, according to your desired PHP version.

]]>
https://chemicloud.com/kb/article/set-a-different-php-version-for-an-addon-domain/feed/ 0
How to enable or disable PHP error logging in cPanel https://chemicloud.com/kb/article/how-to-enable-or-disable-php-error-logging-in-cpanel/ https://chemicloud.com/kb/article/how-to-enable-or-disable-php-error-logging-in-cpanel/#respond Wed, 24 Jul 2019 15:46:29 +0000 https://chemicloud.com/kb/?post_type=ht_kb&p=2398 There are certain scenarios when you may be asked to make changes to your PHP configuration. Specifically, you may be directed to edit a file on your server called php.ini, and to enable or disable PHP error logging.

PHP error logging tells whether to log errors. By default, errors are logged in the server’s error_log file.

While do not allow direct changes to PHP.ini on our servers. However, PHP configuration changes can be made from cPanel by following these steps:

1) Log into cPanel.

2) Look for the SOFTWARE section and click on Select PHP version

PHP Selector

The PHP Selector is not included by default in cPanel and might be missing from your account if you are hosting with a different web host. All ChemiCloud customers should see the Select PHP Version section in their hosting account’s cPanel.

cPanel > Software > Select PHP Version
cPanel > Software > Select PHP Version

3) In the new window click on the Switch To PHP Options link.

cPanel PHP Options
Select PHP Version > Switch to PHP Options

4) Here you can locate the log_errors and tick on the box next to it to enable it or un-tick the box to disable it.

5) If the change was successful, you will see a green box with a message which will confirm that the change has been applied.

That’s all! Now you know how to enable or disable PHP error logging in cPanel

For further questions, or if you need help, please open a support ticket from your Client Area’s Dashboard.

]]>
https://chemicloud.com/kb/article/how-to-enable-or-disable-php-error-logging-in-cpanel/feed/ 0
How to enable or disable PHP error reporting in cPanel https://chemicloud.com/kb/article/enable-or-disable-php-error-reporting-in-cpanel/ https://chemicloud.com/kb/article/enable-or-disable-php-error-reporting-in-cpanel/#respond Wed, 24 Jul 2019 15:38:32 +0000 https://chemicloud.com/kb/?post_type=ht_kb&p=2393 There are certain scenarios when you may be asked to make changes to your PHP configuration. Specifically, you may be directed to edit a file on your server called php.ini, and to enable or disable PHP error reporting.

While do not allow direct changes to PHP.ini on our servers. However, PHP configuration changes can be made from cPanel by following these steps:

1) Log into cPanel.

2) Look for the SOFTWARE section and click on Select PHP version

PHP Selector

The PHP Selector is not included by default in cPanel and might be missing from your account if you are hosting with a different web host. All ChemiCloud customers should see the Select PHP Version section in their hosting account’s cPanel.

cPanel > Software > Select PHP Version
cPanel > Software > Select PHP Version

3) In the new window click on the Switch To PHP Options link.

cPanel PHP Options
Select PHP Version > Switch to PHP Options

4) Here you can locate the error_reporting and click on the drop-down menu next to it to choose the option you want.

E_ALL : Everything
E_ALL & ~E_NOTICE : Report all errors except E_NOTICE
~E_ALL : Disable all

5) If the change was successful, you will see a green box with a message which will confirm that the change has been applied.

That’s all! Now you know how to enable or disable PHP error reporting in cPanel

For further questions, or if you need help, please open a support ticket from your Client Area’s Dashboard.

]]>
https://chemicloud.com/kb/article/enable-or-disable-php-error-reporting-in-cpanel/feed/ 0
How to change the date.timezone in cPanel https://chemicloud.com/kb/article/how-to-change-the-date-timezone-in-cpanel/ https://chemicloud.com/kb/article/how-to-change-the-date-timezone-in-cpanel/#respond Tue, 16 Jul 2019 14:45:29 +0000 https://chemicloud.com/kb/?post_type=ht_kb&p=2273 There are certain scenarios when you may be asked to change your PHP configuration. Specifically, you may be directed to edit a file on your server called php.ini and to change your PHP’s timezone (date.timezone).

What is the date.timezone PHP Setting?

date.timezone is a setting managed through the PHP setting which set your PHP’s script timezone. This helps when the time is showing incorrectly in scripts, and applications, setting the timezone may resolve your issue

How to Change the date.timezone in cPanel

The PHP Selector is omitted by default in cPanel and might be missing from your account if you are hosting with a different web host. All ChemiCloud customers should see the Select PHP Version section in their hosting account’s cPanel.

Watch the video tutorial, or continue following the step-by-step instructions in this tutorial.

While do not allow direct changes to PHP.ini on our servers. However, PHP configuration changes can be made from cPanel by following these steps:

1) Log into cPanel.

2) Look for the SOFTWARE section and click on Select PHP version

PHP Version
Software > Select PHP Version

3) Click on the Options link in the new window.

Struggling with support and website problems? ChemiCloud is the hosting solution designed to save you time and money! 🤓 Check out our web hosting plans!

4) Here, you can locate the date.timezone, and type in the value you require.

date.timezone cPanel

Here’s a list with the Supported PHP Timezones

5) Once you’ll do any changes, please do a left-hand side click anywhere outside the dropdown or text input box. If the change was successful, you will see a green box with a message which will confirm that the change has been applied.

That’s all! Now you know how to change the date.timezone in cPanel.

If you enjoyed this tutorial, then you’ll love our support! All ChemiCloud’s hosting plans include 24/7 support from our fantastic support team. Check out our web hosting plans and have your website migrated for free today!

]]>
https://chemicloud.com/kb/article/how-to-change-the-date-timezone-in-cpanel/feed/ 0 PHP Configuration Tutorials nonadult
How to enable or disable allow_url_fopen in cPanel https://chemicloud.com/kb/article/how-to-enable-or-disable-allow_url_fopen-in-cpanel/ https://chemicloud.com/kb/article/how-to-enable-or-disable-allow_url_fopen-in-cpanel/#comments Fri, 12 Jul 2019 12:27:16 +0000 https://chemicloud.com/kb/?post_type=ht_kb&p=2254 There are specific scenarios when you may be asked to change your PHP configuration. Specifically, you may be directed to edit a file on your server called php.ini and to enable or disable allow_url_fopen.

What is allow_url_fopen?

The allow_url_fopen is a setting managed through the PHP Options which allows PHP file functions to retrieve data from remote locations over FTP or HTTP. This option is a significant security risk, thus, do not turn it on without necessity.

How to Enable or Disable allow_url_fopen in cPanel

The PHP Selector is omitted by default in cPanel and might be missing from your account if you are hosting with a different web host. All ChemiCloud customers should see the Select PHP Version section in their hosting account’s cPanel.

While do not allow direct changes to PHP.ini on our servers. However, PHP configuration changes can be made from cPanel by following these steps:

Watch the video tutorial, or continue following the step-by-step instructions in this tutorial.

1) Log into cPanel.

2) Look for the SOFTWARE section and click on Select PHP version

PHP Version
Software > Select PHP Version

3) Click on the Options link in the new window.

PHP Selector > Options

4) You can locate the allow_url_fopen and tick on the box next to it to enable it or un-tick the box to disable it.

allow_url_fopen

5) Once you make any changes, please do a left-hand side click anywhere outside the dropdown or text input box. If the change were successful, you would see a green box with a message confirming that the change has been applied.

That’s all! Now you know how to enable or disable allow_url_fopen in cPanel.

If you enjoyed this tutorial, then you’ll love our support! All ChemiCloud’s hosting plans include 24/7 support from our fantastic support team. Check out our web hosting plans and have your website migrated for free today!

]]>
https://chemicloud.com/kb/article/how-to-enable-or-disable-allow_url_fopen-in-cpanel/feed/ 1 PHP Configuration Tutorials nonadult
How to Increase the max_execution_time Limit in cPanel https://chemicloud.com/kb/article/how-to-increase-the-max_execution_time-limit-in-cpanel/ https://chemicloud.com/kb/article/how-to-increase-the-max_execution_time-limit-in-cpanel/#comments Fri, 12 Jul 2019 12:22:17 +0000 https://chemicloud.com/kb/?post_type=ht_kb&p=2252 There are specific scenarios when you may be asked to change your PHP configuration. Specifically, you may be directed to edit a file on your server called php.ini and to increase the max_execution_time limit.

max_execution_time is a setting managed through the PHP setting, which sets the maximum time in seconds for a script to parse input data.

While do not allow direct changes to PHP.ini on our servers. However, PHP configuration changes can be made from cPanel by following these steps:

How to Increase the max_execution_time Limit in cPanel

The PHP Selector is omitted by default in cPanel and might be missing from your account if you are hosting with a different web host. All ChemiCloud customers should see the Select PHP Version section in their hosting account’s cPanel.

Watch the video tutorial, or continue following the step-by-step instructions in this tutorial.

1) Log into cPanel.

2) Look for the SOFTWARE section and click on Select PHP version

PHP Version
Software > Select PHP Version

3) Click on the Options link in the new window.

4) Here you can locate the max_execution_time and type in the value that you require.

max_execution_time

Check your script, plugin, or theme’s documentation (or an on-screen error message) to find the correct value.

Struggling with support and website problems? ChemiCloud is the hosting solution designed to save you time and money! 🤓 Check out our web hosting plans!

5) Once you make any changes, please do a left-hand side click anywhere outside the dropdown or text input box. If the change was successful, you will see a green box with a message confirming that the change has been applied.

That’s all! Now you know how to increase the maximum execution time of a script in cPanel.

If you enjoyed this tutorial, then you’ll love our support! All ChemiCloud’s hosting plans include 24/7 support from our fantastic support team. Check out our web hosting plans and have your website migrated for free today!

]]>
https://chemicloud.com/kb/article/how-to-increase-the-max_execution_time-limit-in-cpanel/feed/ 1 PHP Configuration Tutorials nonadult
How to Increase the upload_max_filesize Limit in cPanel https://chemicloud.com/kb/article/how-to-increase-the-upload_max_filesize-limit-in-cpanel/ https://chemicloud.com/kb/article/how-to-increase-the-upload_max_filesize-limit-in-cpanel/#comments Fri, 12 Jul 2019 12:17:38 +0000 https://chemicloud.com/kb/?post_type=ht_kb&p=2248 There are specific scenarios when you may be asked to change your PHP configuration. Specifically, you may be directed to edit a file on your server called php.ini and to increase the upload_max_filesize limit.

What is the upload_max_filesize PHP setting?

upload_max_filesize is a setting managed through the PHP Options, which sets the maximum size of each uploaded file.

How to Increase the upload_max_filesize Limit in cPanel

The PHP Selector is omitted by default in cPanel and might be missing from your account if you are hosting with a different web host. All ChemiCloud customers should see the Select PHP Version section in their hosting account’s cPanel.

While do not allow direct changes to PHP.ini on our servers. However, PHP configuration changes can be made from cPanel by following these steps:

Watch the video tutorial, or continue following the step-by-step instructions in this tutorial.

1) Log into cPanel.

2) Look for the SOFTWARE section and click on Select PHP version

PHP Version
Software > Select PHP Version

Struggling with support and website problems? ChemiCloud is the hosting solution designed to save you time and money! 🤓 Check out our web hosting plans!

3) Click on the Options link in the new window.

4) Here you can locate the upload_max_filesize and click on the value.

upload_max_filesize

A dropdown menu or text input box will appear, allowing you to change the value as required. Check your script, plugin, or theme’s documentation (or an on-screen error message) to find the correct value.

For the new change to be reflected, this value should be at least as big as the post_max_size. 

5) Once you make any changes, please do a left-hand side click anywhere outside the dropdown or text input box. If the change was successful, you will see a green box with a message confirming that the change has been applied.

That’s all! Now you know how to increase the upload_max_filesize in cPanel.

If you enjoyed this tutorial, then you’ll love our support! All ChemiCloud’s hosting plans include 24/7 support from our fantastic support team. Check out our web hosting plans and have your website migrated for free today!

]]>
https://chemicloud.com/kb/article/how-to-increase-the-upload_max_filesize-limit-in-cpanel/feed/ 1 PHP Configuration Tutorials nonadult
How to Increase the post_max_size Limit in cPanel https://chemicloud.com/kb/article/how-to-increase-the-post_max_size-limit-in-cpanel/ https://chemicloud.com/kb/article/how-to-increase-the-post_max_size-limit-in-cpanel/#respond Fri, 12 Jul 2019 12:10:12 +0000 https://chemicloud.com/kb/?post_type=ht_kb&p=2244 There are specific scenarios when you may be asked to change your PHP configuration. Specifically, you may be directed to edit a file on your server called php.ini and to increase the post_max_size limit.

What is the post_max_size PHP setting?

post_max_size is a setting managed through the PHP Options, which sets the maximum size of POST data that PHP will accept. This value should be the same as the upload_max_filesize.

While do not allow direct changes to PHP.ini on our servers. However, PHP configuration changes can be made from cPanel by following these steps:

How to Increase the post_max_size Limit in cPanel

PHP Selector

The PHP Selector is omitted by default in cPanel and might be missing from your account if you are hosting with a different web host. All ChemiCloud customers should see the Select PHP Version section in their hosting account’s cPanel.

1) Log into cPanel.

2) Look for the SOFTWARE section and click on Select PHP version

PHP Version
Software > Select PHP Version

Struggling with support and website problems? ChemiCloud is the hosting solution designed to save you time and money! 🤓 Check out our web hosting plans!

3) Click on the Options link in the new window.

4) Here you can locate the post_max_size and click on the value.

post_max_size

A dropdown menu or text input box will appear, allowing you to change the value as required. Check your script, plugin, or theme’s documentation (or an on-screen error message) to find the correct value.

5) Once you’ll do the change, the new value will be automatically updated. If the change was successful, you would see a green box with a message confirming that the change has been applied.

That’s all! Now you know how to increase the post_max_size in cPanel.

If you enjoyed this tutorial, then you’ll love our support! All ChemiCloud’s hosting plans include 24/7 support from our fantastic support team. Check out our web hosting plans and have your website migrated for free today!

]]>
https://chemicloud.com/kb/article/how-to-increase-the-post_max_size-limit-in-cpanel/feed/ 0