First, install htscanner from WHM > Module Installers > PHP Pecl > htscanner
This will allow php_value and php_flag to work with php.
Next for it to also work with Apache without the need to use ifmodule
# cd /usr/src/
# wget http://pecl.php.net/get/htscanner-1.0.1.tgz
# tar -zxf htscanner-1.0.1.tgz
# cd htscanner-1.0.1
IMPORTANT: Make sure apache has mod_so and then proceed remaining steps
# /usr/local/apache/bin/httpd -l | grep mod_so.c
mod_so.c
Compile the module by
/usr/local/apache/bin/apxs -c -a -i mod_htscanner2.c
Restart apache
# /usr/local/apache/bin/apachectl configtest
# /usr/local/apache/bin/apachectl restart
# /usr/local/cpanel/bin/apache_conf_distiller –update
And a final check
# grep mod_htscanner2.so /usr/local/apache/conf/httpd.conf
LoadModule htscanner_module modules/mod_htscanner2.so
php_value and php_flag should now be working fine in .htaccess
All our servers need you to enable outgoing SMTP server authentication to be able to…
Learn how to configure and check your DNS settings in Plesk. After you registered your…
This video demonstrates how to use the Force HTTPS Redirect feature. This feature allows you…
Use cPanel's MultiPHP Manager to manage your domains' PHP version. Being able to manage the…
This tutorial will help you to configure Microsoft Outlook 2016 for an email account. Step…
Generally emails are directly delivered to the destination server. However, if the delivery attempt to…