{"id":169,"date":"2014-02-27T03:45:57","date_gmt":"2014-02-27T03:45:57","guid":{"rendered":"https:\/\/www.nettigritty.com\/kb\/?p=169"},"modified":"2014-02-27T03:56:57","modified_gmt":"2014-02-27T03:56:57","slug":"enable-htscanner-for-htaccess-work-with-suphp-fastcgi","status":"publish","type":"post","link":"https:\/\/www.nettigritty.com\/kb\/linux\/enable-htscanner-for-htaccess-work-with-suphp-fastcgi\/","title":{"rendered":"Enable htscanner for .htaccess to work with suPHP\/FastCGI"},"content":{"rendered":"<p>First, install htscanner from WHM > Module Installers > PHP Pecl > htscanner<\/p>\n<p>This will allow php_value and php_flag to work with php.<\/p>\n<p>Next for it to also work with Apache without the need to use ifmodule<\/p>\n<p>\t# cd \/usr\/src\/<br \/>\n\t# wget http:\/\/pecl.php.net\/get\/htscanner-1.0.1.tgz<br \/>\n\t# tar -zxf htscanner-1.0.1.tgz<br \/>\n\t# cd htscanner-1.0.1<\/p>\n<p>IMPORTANT: Make sure apache has mod_so and then proceed remaining steps<\/p>\n<p>\t# \/usr\/local\/apache\/bin\/httpd -l | grep mod_so.c<br \/>\n\t<code>mod_so.c<\/code><\/p>\n<p>Compile the module by<\/p>\n<p>\t\/usr\/local\/apache\/bin\/apxs -c -a -i mod_htscanner2.c<\/p>\n<p>Restart apache<\/p>\n<p>\t# \/usr\/local\/apache\/bin\/apachectl configtest<br \/>\n\t# \/usr\/local\/apache\/bin\/apachectl restart<br \/>\n\t# \/usr\/local\/cpanel\/bin\/apache_conf_distiller &#8211;update<\/p>\n<p>And a final check<\/p>\n<p>\t# grep  mod_htscanner2.so \/usr\/local\/apache\/conf\/httpd.conf<br \/>\n\t<code>LoadModule htscanner_module   modules\/mod_htscanner2.so<\/code><\/p>\n<p>php_value and php_flag should now be working fine in .htaccess<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-169","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/posts\/169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/comments?post=169"}],"version-history":[{"count":6,"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/posts\/169\/revisions"}],"predecessor-version":[{"id":175,"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/posts\/169\/revisions\/175"}],"wp:attachment":[{"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/media?parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/categories?post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/tags?post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}