Centos 6.10
cpanel: 84.0 (build 19)
Apache/2.4.41 (cPanel)
PHP: 7.3.13
Handler: DSO (not negotiable, must use)
After upgrading to PHP7.3 (from PHP5.6) and using the cPanel Multi PHP INI Editor it wrote PHP variable settings into the .htaccess file that Apache2.4 chokes on:
The .htaccess as written by cPanel is:
Observations:
- Happens with tiny PHP test file.
- Happens when start with no previous .htaccess file (so only as written by cPanel).
- I have checked carefully (also with cat -v .htaccess) for any strange or extra characters.
- Reboot of Apache server did not help.
- Reboot of Centos VPS did not help.
cpanel: 84.0 (build 19)
Apache/2.4.41 (cPanel)
PHP: 7.3.13
Handler: DSO (not negotiable, must use)
After upgrading to PHP7.3 (from PHP5.6) and using the cPanel Multi PHP INI Editor it wrote PHP variable settings into the .htaccess file that Apache2.4 chokes on:
Code:
... /home/USERNAME/public_html/.htaccess: php_value takes two arguments, PHP Value Modifier
Apache config:
# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
php_value error_reporting E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT
php_value memory_limit 2048M
php_value post_max_size 20M
php_value upload_max_filesize 20M
php_value max_execution_time 120
php_flag display_errors Off
php_value max_input_time 60
php_value max_input_vars 1000
php_value session.gc_maxlifetime 1440
php_value session.save_path "/var/cpanel/php/sessions/ea-php73"
php_flag zlib.output_compression Off
</IfModule>
<IfModule lsapi_module>
php_value error_reporting E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT
php_value memory_limit 2048M
php_value post_max_size 20M
php_value upload_max_filesize 20M
php_value max_execution_time 120
php_flag display_errors Off
php_value max_input_time 60
php_value max_input_vars 1000
php_value session.gc_maxlifetime 1440
php_value session.save_path "/var/cpanel/php/sessions/ea-php73"
php_flag zlib.output_compression Off
</IfModule>
# END cPanel-generated php ini directives, do not edit
- Happens with tiny PHP test file.
- Happens when start with no previous .htaccess file (so only as written by cPanel).
- I have checked carefully (also with cat -v .htaccess) for any strange or extra characters.
- Reboot of Apache server did not help.
- Reboot of Centos VPS did not help.