PHP
Changes in PHP configuration of your hosting account
20 articlesPHP Versions
How to change the PHP version for subfolders or subdomains in Hostinger
Change the PHP version for subfolders or subdomains in Hostinger by adding a SetHandler rule to the folder’s .htaccess file.
How to change the PHP version of your Hostinger hosting plan
Change the PHP version of your Hostinger hosting plan in PHP Configuration, and learn which PHP versions are supported or deprecated.
How to check the PHP version in Hostinger
Check the PHP version in Hostinger on the PHP Info page, or with a phpinfo.php file to confirm the version of a specific folder or subdomain.
PHP Info
How to check the PHP information of your website in Hostinger
Checking the PHP information and parameters of your hosting plan
What is PHP memory limit at Hostinger
Knowing the PHP memory limit of your hosting package
What is the difference between PHP memory limit and RAM
PHP memory limit and RAM differences
PHP Extensions and Options
How to change values of PHP parameters in Hostinger
Changing upload_max_filesize, max_input_vars, and other PHP parameters at Hostinger
How to enable disabled PHP functions in Hostinger
Enabling PHP functions, which are disabled by default: system, exec, shell_exec, and others
How to manage PHP extensions and options in Hostinger
Manage PHP extensions and options in Hostinger: enable or disable extensions, edit PHP options and limits, or reset them to default values.
How to set up New Relic at Hostinger
Set up New Relic at Hostinger: enable the newrelic PHP extension and add your license key and app name to .htaccess to monitor performance.
Is ZLib compression enabled in Hostinger?
Enabling ZLib compression at Hostinger
PHP Errors
How to display PHP error messages in Hostinger
Display PHP error messages in Hostinger via PHP Configuration, WordPress wp-config.php debugging, or .htaccess to troubleshoot your PHP code.
How to hide errors and warnings on your website in Hostinger
Hide errors and warnings on your website in Hostinger using the WordPress wp-config.php file, the .htaccess file, or a single .php file.
How to turn off PHP error messages in Hostinger
Disabling PHP error messages
Where to find your website’s error logs in Hostinger
Find your website’s error logs in Hostinger in the .logs folder via File Manager, and learn why an error_log file may be missing or empty.
PHP Advanced
How to change the PHP timezone setting for your website in Hostinger
Change the PHP timezone setting for your website in Hostinger by editing date.timezone in PHP Configuration or using date_default_timezone_set.
How to disable PHP output_buffering at Hostinger
Disabling output_buffering via the .htaccess file
How to fix the “Unexpected T_STRING” error at Hostinger
Fixing "Parse error: syntax error Unexpected T_STRING error"
How to fix the PHP cannot redeclare error at Hostinger
Fixing "Fatal error: Cannot redeclare"
How to parse PHP in HTML files
Parse PHP in HTML files at Hostinger by adding an AddHandler directive to .htaccess so the server runs PHP code inside .html and .htm files.