If you get the following error message in Ubuntu when you use PHP based shell scripts:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/htscanner.so' - /usr/lib/php5/20060613+lfs/htscanner.so: cannot open shared object file: No such file or directory in Unknown on line 0

Then edit the file /etc/php5/cli/php.ini:

vi /etc/php5/cli/php.ini

and remove the lines:

Extension = "htscanner.so"
config_file = ".htaccess"
default_docroot = "/var/www"

As the htscanner module works only for scripts within webservers but not for commandline scripts.

Tagged on:

Leave a Reply

Your email address will not be published. Required fields are marked *