Unable to load dynamic library suhosin.so & htscanner.so

pucky

Verified User
Joined
Sep 9, 2006
Messages
768
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php55/lib/php/extensions/no-debug-non-zts-20121212/suhosin.so' - /usr/local/php55/lib/php/extensions/no-debug-non-zts-20121212/suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php55/lib/php/extensions/no-debug-non-zts-20121212/htscanner.so' - /usr/local/php55/lib/php/extensions/no-debug-non-zts-20121212/htscanner.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.5.15 (cli) (built: Jul 28 2014 00:29:23)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with the ionCube PHP Loader v4.6.1, Copyright (c) 2002-2014, by ionCube Ltd.

#PHP Settings
php1_release=5.5
php1_mode=fastcgi
php2_release=5.4
php2_mode=php-fpm

suhosin=yes

htscanner=yes

#CloudLinux Settings
cloudlinux=yes
cagefs=yes

I the control panel my cagefs setting are all messed up;

php_warning:_php_startup:_unable_to_load_dynamic_library_'/usr/local/php55/lib/php/extensions/no-debug-non-zts-20121212/htscanner.so'_-_/usr/local/php55/lib/php/extensions/no-debug-non-zts-20121212/htscanner.so:_cannot_open_shared_object_file:_no_such_file_or_directory_in_unknown_on_line_0 standard
core gettext mysql php_warning:_php_startup:_unable_to_load_dynamic_library_'/usr/local/php55/lib/php/extensions/no-debug-non-zts-20121212/suhosin.so'_-_/usr/local/php55/lib/php/extensions/no-debug-non-zts-20121212/suhosin.so:_cannot_open_shared_object_file:_no_such_file_or_directory_in_unknown_on_line_0
 
Does the following fail?
Code:
cd /usr/local/directadmin/custombuild
./build php_htscanner2 55
./build suhosin
 
Fixed, I recompiled soshin and disabled htscanner and recompiled.

The problem is CageFS does not show any selection for php in DA.

PHP 5.5.15 (cli) (built: Jul 28 2014 01:20:57)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with the ionCube PHP Loader v4.6.1, Copyright (c) 2002-2014, by ionCube Ltd.
with Suhosin v0.9.36, Copyright (c) 2007-2014, by SektionEins GmbH

And all php seems to be defaulting to v5.4 instead of 5.5 fastcgi.
 
Im not sure why php 5.5 is showing up like this when I do a ps aux?

506 855517 0.0 0.0 126412 10864 ? S 01:56 0:00 /usr/local/php55/bin/php-cgi55

Its configured to use fastcgi

#PHP Settings
php1_release=5.5
php1_mode=fastcgi
php2_release=5.4
php2_mode=php-fpm

is the php1_mode= name incorrect? Should it be php-fastcgi or something?
 
Please check if /etc/cl.selector/native.conf is configured correctly, and if CageFS is enabled for all users (you can just run "cagefsctl --enable-all").
 
native.conf shows;

php=/usr/local/php5/bin/php-cgi
php-cli=/usr/local/bin/php
php.ini=/usr/local/etc/php5/cgi/php.ini
php-fpm=/usr/local/sbin/php-fpm

But there is no version to select. Its just native or warn alternatives.

I enabled one user for cage then logged in as the user. The user could not select any version. The default should be php 5.5 and the alternative version should be 5.4
 
Please change:
Code:
php=/usr/local/php5/bin/php-cgi

To:
Code:
php=/usr/local/php55/bin/php-cgi

It should work then.
 
This is an issue of CloudLinux, but I'd be willing to check it free of cost for you. That might be cagefs related :) Please contact me if you'd like to get free help, otherwise I'd recommend contacting support[@]cloudlinux.com.
 
I contacted the Cloudlinux support and they stated I had to run;

yum groupinstall alt-php

Which installed 351 rpm's HOLY COW! That's a lot of rpms for a stupid selector!

Does custombuild YES run this command?

Also, noticed that htscanner is now part of the extensions in the DA control panel.

Does this mean its the same htscanner.so that failed to install? Do I still need to include and rerun custombuild with htscanner active?

What is htscanner anyway?
 
No, alt-php should be installed by you, it is not managed by custombuild (yum takes care of that). Htscanner is needed for php_value/php_flag support in .htaccess files. And yes, it would load htscanner.so if selected in CloudLinux PHP selector.
 
Back
Top