Unable to load dynamic library htscanner.so

Amit

Verified User
Joined
Mar 24, 2020
Messages
129
Location
India
Hi,
I am getting following error on page load sometime

Whoops\Exception\ErrorException: PHP Startup: Unable to load dynamic library 'htscanner.so' (tried: /usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718/htscanner.so (/usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718/htscanner.so: cannot open shared object file: No such file or directory), /usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718/htscanner.so.so (/usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718/htscanner.so.so: cannot open shared object file: No such file or directory)) in Unknown:0
Stack trace:
 
and?
threre all described: "cannot open shared object file: No such file or directory"
so:
or install this extension
or edit path where it exists
or don't include this extension.
 
It seems htscanner creating issue How would I uninstall htscanner what is command for it to remove?
 
If you remove htscanner, then lot of functions of .htaccess files won't work anymore. Customers have to switch to personal .ini files.

I don't know how removal works from the GUI, I never use that thing.
Removal via SSH might work like this:

Code:
cd /usr/local/directadmin/custombuild
./build set htscanner no
./build update

Now check if in php_extensions.conf the setting htscanner=no instead of yes in the same directory.

If it's set to no, then recompile php.
Code:
cd /usr/local/directadmin/custombuild
./build php n

Better consider upgrading php because 7.2 is EOL for some time already.
 
I have the same error on Alma Linux 9 and... after ./build php_htscanner2 8.1 I have error in compiling...


Code:
Trying to make htscanner2-1.0.1-enhanced PHP extension...
/bin/sh /usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/libtool --mode=compile cc -I. -I/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced -I/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/include -I/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/main -I/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced -I/usr/local/php81/include/php -I/usr/local/php81/include/php/main -I/usr/local/php81/include/php/TSRM -I/usr/local/php81/include/php/Zend -I/usr/local/php81/include/php/ext -I/usr/local/php81/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c -o htscanner.lo  -MMD -MF htscanner.dep -MT htscanner.lo
mkdir .libs
 cc -I. -I/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced -I/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/include -I/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/main -I/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced -I/usr/local/php81/include/php -I/usr/local/php81/include/php/main -I/usr/local/php81/include/php/TSRM -I/usr/local/php81/include/php/Zend -I/usr/local/php81/include/php/ext -I/usr/local/php81/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c -MMD -MF htscanner.dep -MT htscanner.lo  -fPIC -DPIC -o .libs/htscanner.o
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:44:1: warning: parameter names (without types) in function declaration
   44 | int (*php_cgi_sapi_activate)(TSRMLS_D);
      | ^~~
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:89:90: error: expected ';', ',' or ')' before 'TSRMLS_DC'
   89 | static int value_hnd(char *name, char *value, int flag, int mode, HashTable *ini_entries TSRMLS_DC)
      |                                                                                          ^~~~~~~~~
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:184:66: error: expected ';', ',' or ')' before 'TSRMLS_DC'
  184 | static void parse_config_file(char *file, HashTable *ini_entries TSRMLS_DC)
      |                                                                  ^~~~~~~~~
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c: In function 'htscanner_main':
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:325:12: warning: type of 'TSRMLS_D' defaults to 'int' [-Wimplicit-int]
  325 | static int htscanner_main(TSRMLS_D) /* {{{ */
      |            ^~~~~~~~~~~~~~
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:334:140: error: expected ')' before 'TSRMLS_CC'
  334 |         if (HTG(force_default_docroot) || !sapi_module.getenv || !(doc_root = sapi_module.getenv("DOCUMENT_ROOT", sizeof("DOCUMENT_ROOT")-1 TSRMLS_CC))) {
      |                                                                                                 ~                                          ^~~~~~~~~~
      |                                                                                                                                            )
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:363:35: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRMLS_D'?
  363 |         t = sapi_get_request_time(TSRMLS_C);
      |                                   ^~~~~~~~
      |                                   TSRMLS_D
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:363:35: note: each undeclared identifier is reported only once for each function it appears in
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:363:13: error: too many arguments to function 'sapi_get_request_time'
  363 |         t = sapi_get_request_time(TSRMLS_C);
      |             ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:29:
/usr/local/php81/include/php/main/SAPI.h:211:17: note: declared here
  211 | SAPI_API double sapi_get_request_time(void);
      |                 ^~~~~~~~~~~~~~~~~~~~~
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:424:33: warning: implicit declaration of function 'parse_config_file' [-Wimplicit-function-declaration]
  424 |                                 parse_config_file(file, ini_entries TSRMLS_CC);
      |                                 ^~~~~~~~~~~~~~~~~
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:424:68: error: expected ')' before 'TSRMLS_CC'
  424 |                                 parse_config_file(file, ini_entries TSRMLS_CC);
      |                                                  ~                 ^~~~~~~~~~
      |                                                                    )
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c: In function 'sapi_cgi_activate':
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:444:12: warning: type of 'TSRMLS_D' defaults to 'int' [-Wimplicit-int]
  444 | static int sapi_cgi_activate(TSRMLS_D)
      |            ^~~~~~~~~~~~~~~~~
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:450:39: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRMLS_D'?
  450 |                 php_cgi_sapi_activate(TSRMLS_C);
      |                                       ^~~~~~~~
      |                                       TSRMLS_D
make: *** [Makefile:207: htscanner.lo] Error 1
*** The make has failed. Exiting...
 
after ./build php_htscanner2 8.1 I have error in compiling...

Check this thread:

Try and just use
./build mod_htscanner2
because the php package is not supported anymore for newer php versioms as you can read.
 
Back
Top