Gentoo Blog

The ultimate Gentoo Blog
  • Home
  • About

Howto install htscanner

Simon | March 29, 2010

I have started using Suphp on some of our confixx servers. Suphp hast one big advantage over mod php it executes PHP scripts with the permissions of their owners. Which is extremely useful on multi domain servers. Otherwise you always have the problem that files uploaded via FTP have different permissions than files upload via http. For example plugins uploaded via the wordpress backend or photos via php gallery. One of the big downsides of Suphp for us is that you cannot use .htaccess files for mod rewrite and so on. This is were htscanner comes along this is the description. Allow one to use htaccess-like file to configure PHP. sounds good :) You need to perform the following steps to install htscanner on debian or ubuntu:

1. Download htscanner:

wget http://pecl.php.net/get/htscanner-0.9.0.tgz

2. Unpack the archive:

tar -xzvf htscanner-0.9.0.tgz

3. Install dependencies:

aptitude install php5-dev php-config

4. Change into the htscanner directory:

cd htscanner-0.9.0

5. run phpize

phpize

6. Configure htscanner

./configure --enable-htscanner

7. Then make and make install

make && make install

8. This should have installed htscanner at the end of the install you should see the install path.

9. Create a file to get the htscanner module loaded:

vi /etc/php5/cgi/conf.d/htscanner.ini

10. With the following content:

extension=htscanner.so

11. restart the Apache web server and you can use .htaccess files again.

Share on Facebook
Categories
Ubuntu/Debian
Comments rss
Comments rss
Trackback
Trackback

« Confixx on Debian Lenny and Umlautdomains Confixx Can’t locate Confixx/Filter.pm after Upgrade to Debian Lenny »

2 Responses to “Howto install htscanner”

  1. Favre Anael says:
    January 27, 2012 at 12:54 pm

    Hello,

    You make a mistake, mod rewrite (using the “RewriteEngine On” directive on .htaccess) is still available even using suPHP.

    Only the “php_value” and “php_admin_value” directives are unusable and require htscanner :)

  2. Simon says:
    February 13, 2012 at 11:33 am

    Ok thanks for that I will give it a try. I had the understanding that .htaccess files were ignored by suphp. Thanks for the update

Leave a Reply

Click here to cancel reply.

 

May 2012
M T W T F S S
« Apr    
 123456
78910111213
14151617181920
21222324252627
28293031  

Categories

  • confixx/Plesk
  • fun
  • Gentoo
  • iptables
  • mysql
  • news
  • Raid Controllers
  • Stuff
  • Ubuntu/Debian
  • Xen/Vmware

Links

  • Gentoo
  • http.net
  • iphone software linux
  • michael-fuchs.net
  • Ubuntu
  • webupd8.org

Search Blog

rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox