update issue using cron

uvhost

Verified User
Joined
Mar 26, 2006
Messages
40
Location
UK
Hi,

I have set cron to update custom build but i keep getting error msg like this:


Code:
/etc/cron.daily/custombuild:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php56/lib/php/extensions/no-debug-non-zts-20131226/mailparse.so' - /usr/local/php56/lib/php/extensions/no-debug-non-zts-20131226/mailparse.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/php70/lib/php/extensions/no-debug-non-zts-20151012/mailparse.so' - /usr/local/php70/lib/php/extensions/no-debug-non-zts-20151012/mailparse.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 'mailparse.so' (tried: /usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731/mailparse.so (/usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731/mailparse.so: cannot open shared object file: No such file or directory), /usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731/mailparse.so.so (/usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731/mailparse.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

How Can I solve this?
 

uvhost

Verified User
Joined
Mar 26, 2006
Messages
40
Location
UK
Please do php -v and if it says ZTS then it is because of a previous bug in custombuild wich is fixed now. If so, you can solve it by recompiling php56, php70 and php73 (but please do ./build update in custombuild first) - here is my previous reply about this: https://forum.directadmin.com/threads/emailing-with-php-7-4.59711/post-305814
I get the following:

Code:
[root@storm custom]# php -v
PHP 7.1.33 (cli) (built: Dec 17 2019 15:36:56) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
    with the ionCube PHP Loader + ionCube24 v10.3.9, Copyright (c) 2002-2019, by ionCube Ltd.
    with Zend OPcache v7.1.33, Copyright (c) 1999-2018, by Zend Technologies
 

ditto

Verified User
Joined
Apr 27, 2009
Messages
2,514
Your php -v only give output of your default PHP version 7.1 wich is installed correct with NTS, however you only have warnings in cron on php56, php70 and php73 - so I still think your php56, php70 and php73 versions is compiled with ZTS. I do not know how you can do php -v on a different version other then default, so I would not know how you can check that. However I still think that php56, php70 and php73 is compiled with ZTS and that is the problem you are seeing with the warnings in cron. If you just do ./build update and then recompile those PHP versions, the problem should be solved.

Edit: You could upload a PHP info page to one of the site that is using php56, php70 or php73, and if everything is correct, you will see it says NTS when visiting that PHP info page like this (however I think you will see that it is ZTS, and as said just update custombuild and recompile the PHP versions and the problem will be solved):

Zend Extension BuildAPI320180731,NTS
PHP Extension BuildAPI20180731,NTS
 
Last edited:
Top