Helpdesk Support

Official Supportmonk Company Blog!


July 17, 2015 , 11:23 am

    Htscanner is an apache module which helps to specify php parametes via .htaccess for suphp handlers.

Requirements for installing htscanner
PHP version 5.2.0 or greater.

How to install Htscanner?
1. wget
2. tar -zxf htscanner-1.0.0.tgz
3. cd htscanner-1.0.0
4. phpize
5. ./configure –enable-htscanner –with-php-config=/usr/bin/php-config
6. make
7. make install
8. Collect the extension_di from the “make install” output.
9. In php.ini add

                       extension_dir = “/usr/lib/php/extensions/no-debug-non-zts-20060613//”
                       extension = “”
                       config_file = “.htaccess”


10. Add the following line in a .htaccess and see  it is working in a phpinfo page.                       
php_value register_globals Off

11. Go to the unzipped package location
12. Make sure apache has mod_so
/usr/local/apache/bin/httpd -l | grep mod_so.c
13. Then Compile the module.
                             /usr/local/apache/bin/apxs -c -a -i mod_htscanner2.c
14. Restart apache
                           /usr/local/apache/bin/apachectl restart
15. Test the apache conf
                             /usr/local/apache/bin/apachectl configtest
16. Update the apache parameters
                           /usr/local/cpanel/bin/apache_conf_distiller –update

17. Search the in httpd.conf

                       grep /usr/local/apache/conf/httpd.conf
18. Output
LoadModule htscanner_module   modules/

Outsourced Customer Support