Fix hidden PHP errors fast. Turn on PHP error messages on cPanel at Hostinger with guidance from our trusted cPanel Support team.
Complete Guide to Managing PHP Settings in cPanel at Hostinger
PHP issues can stop your website from working properly if they are not handled on time. This guide explains, in simple steps, how to manage PHP settings in cPanel at Hostinger. You will learn how to track errors, change the PHP version, manage extensions, and increase upload limits to keep your site running smoothly.
- What is PHP Error Logging in cPanel?
- How to Enable or Disable PHP Error Logging in cPanel?
- How to Change the PHP Version on cPanel at Hostinger
- How to Manage PHP Extensions on cPanel at Hostinger
- How to Increase Upload Max Filesize and PHP Values on cPanel at Hostinger
What is PHP Error Logging in cPanel?
PHP error logging in cPanel is a way to track issues in your website’s PHP code, which is especially helpful when managing complex environments like a cPanel multi-server setup. It records warnings, notices, and serious errors with details like the error type, file name, and line number. You can view and manage these logs directly in cPanel to quickly find and fix problems.
How to Enable or Disable PHP Error Logging in cPanel?
PHP error logging helps you find and fix issues in your PHP scripts. For security reasons, error display is usually turned off by default, but you can enable or disable logging easily from cPanel when needed.
Method 1: Using Select PHP Version (Most Common)
- Log in to cPanel.
- Go to Software, then select PHP Version.
- Click Options (or Switch to PHP Options).
- Find log_errors.
- Enable: Check the box
- Disable: Uncheck the box
- Changes are saved automatically or after clicking Apply.
Errors are usually saved in a file named error_log inside the directory where the error occurs.
Get full control over PHP settings
Method 2: Using MultiPHP INI Editor (More Control)
- Log in to cPanel.
- Go to Software, then MultiPHP INI Editor.
- Select the domain or subdomain.
- Set log_errors to On or Off.
- (Optional) Set a custom log path, for example:
error_log = /home/username/public_html/php_error.log
- Click Apply.
Method 3: Using the .htaccess File (Advanced)
Use this if the cPanel tools are unavailable or for directory-specific settings.
Enable logging
php_flag log_errors on
php_value error_log /home/username/public_html/error_log
Disable logging
php_flag log_errors off
Save the file after editing.
How to Change the PHP Version on cPanel at Hostinger
You can change your hosting account’s PHP version anytime from cPanel, which is often required when you set up Drupal with cPanel or run other PHP-based applications. The process is quick and does not require technical skills.
- Log in to cPanel.
- Go to the Software section and click Select PHP Version.
- On the next page, choose the PHP version you want from the list.
- Click Set as current to apply the change.
That’s it. Your PHP version is now updated and active.
How to Manage PHP Extensions on cPanel at Hostinger
You can enable or disable PHP extensions on your hosting account at any time using cPanel.
- Log in to cPanel.
- Go to the Software section and click Select PHP Version.
- Open the Extensions tab on the next page.
- You’ll see a list of available PHP extensions, sorted alphabetically.
- Click the checkbox next to an extension to enable or disable it as needed.
Changes apply instantly. That’s it, now you know how to manage PHP extensions on cPanel at Hostinger.
How to Increase Upload Max Filesize and PHP Values on cPanel at Hostinger
When uploading files or running PHP-based apps, plugins, or scripts, you may face errors due to server limits. These limits can be adjusted easily from cPanel.
Increase upload_max_filesize via cPanel
- Log in to cPanel.
- Open the Software section and click Select PHP Version.
- Click on Options.
- Locate upload_max_filesize.
- Set it to the maximum value allowed by your hosting plan.
The change takes effect immediately and usually resolves upload-related errors.
[Need assistance with a different issue? Our team is available 24/7.]
Conclusion
Managing PHP settings helps keep your website stable and error-free. When you turn on PHP error messages on cPanel at Hostinger, you can find problems faster and fix them easily. This saves time and keeps your site running smoothly.