PHP startup warnings

hi,
i have asked cyberpanel about this in their helpdesk and they have said it's not included in their free support, so hopefully someone will be able to help me resolve this issue.

i'm having problem with php 7.0 and i'm unable to install mailparse etc due to it.

i get

--
[[email protected] ~]# php -v
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lsws/lsphp70/lib64/php/modules/timezonedb.so' - /usr/local/lsws/lsphp70/lib64/php/modules/timezonedb.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 7.0.33 (cli) (built: Jan 21 2019 14:17:36) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.33, Copyright (c) 1999-2017, by Zend Technologies
--


how can i solve this issue?

Comments

  • edited April 13
    Hi,

    Check to see if you can write to /var/tmp or /tmp depending on distro
    mount | grep /tmp

    Change to allow writing
    eg mount -o remount,exec /var/tmp ( CentOS 7 @ Vultr)

    Install the timezonedb by running the below which is from
    https://forums.cyberpanel.net/discussion/1109/php-7-3-timezonedb-so-file-issue

    yum install lsphp70-devel -y
    /usr/local/lsws/lsphp70/bin/pecl install timezonedb
    echo "extension=timezonedb.so" > /usr/local/lsws/lsphp70/etc/php.d/20-timezone.ini
    systemctl restart lsws
    killall lsphp

    You may need to do this for the other PHP versions as well lsphp71, lsphp72, lsphp73
Sign In or Register to comment.
Support CyberPanel CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion