JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
# pkg install mod_php82 php82 php82-extensions php82-mysqli php82-pdo_mysql php82-pecl-imagick php82-zip php82-zlib
# php
PHP Warning: PHP Startup:
Unable to load dynamic library 'curl.so' (tried: /usr/local/lib/php/20220829/curl.so
(Cannot open "/usr/local/lib/php/20220829/curl.so"), /usr/local/lib/php/20220829/curl.so.so
(Cannot open "/usr/local/lib/php/20220829/curl.so.so")) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'gd.so' (tried: /usr/local/lib/php/2022082
9/gd.so (Cannot open "/usr/local/lib/php/20220829/gd.so"), /usr/local/lib/php/20220829/gd.so.so
(Cannot open "/usr/local/lib/php/20220829/gd.so.so")) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'json.so' (tried: /usr/local/lib/php/20220
829/json.so (Cannot open "/usr/local/lib/php/20220829/json.so"), /usr/local/lib/php/20220829/json.so
.so (Cannot open "/usr/local/lib/php/20220829/json.so.so")) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'mbstring.so' (tried: /usr/local/lib/php/2
0220829/mbstring.so (Cannot open "/usr/local/lib/php/20220829/mbstring.so"), /usr/local/lib/php/2022
0829/mbstring.so.so (Cannot open "/usr/local/lib/php/20220829/mbstring.so.so")) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /usr/local/lib/php/202
20829/mcrypt.so (Cannot open "/usr/local/lib/php/20220829/mcrypt.so"), /usr/local/lib/php/20220829/m
crypt.so.so (Cannot open "/usr/local/lib/php/20220829/mcrypt.so.so")) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'openssl.so' (tried: /usr/local/lib/php/20
220829/openssl.so (Cannot open "/usr/local/lib/php/20220829/openssl.so"), /usr/local/lib/php/2022082
9/openssl.so.so (Cannot open "/usr/local/lib/php/20220829/openssl.so.so")) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'xmlrpc.so' (tried: /usr/local/lib/php/202
20829/xmlrpc.so (Cannot open "/usr/local/lib/php/20220829/xmlrpc.so"), /usr/local/lib/php/20220829/x
mlrpc.so.so (Cannot open "/usr/local/lib/php/20220829/xmlrpc.so.so")) in Unknown on line 0
# pkg remove php82
# pkg install mod_php81 php81 php81-extensions php81-mysqli php81-pdo_mysql php81-pecl-imagick php81-zip php81-zlib
# php
PHP Warning: PHP Startup: Unable to load dynamic library 'curl.so' (tried: /usr/local/lib/php/20210
902/curl.so (Cannot open "/usr/local/lib/php/20210902/curl.so"), /usr/local/lib/php/20210902/curl.so
.so (Cannot open "/usr/local/lib/php/20210902/curl.so.so")) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'gd.so' (tried: /usr/local/lib/php/2021090
2/gd.so (Cannot open "/usr/local/lib/php/20210902/gd.so"), /usr/local/lib/php/20210902/gd.so.so (Can
not open "/usr/local/lib/php/20210902/gd.so.so")) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'json.so' (tried: /usr/local/lib/php/20210
902/json.so (Cannot open "/usr/local/lib/php/20210902/json.so"), /usr/local/lib/php/20210902/json.so
.so (Cannot open "/usr/local/lib/php/20210902/json.so.so")) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'mbstring.so' (tried: /usr/local/lib/php/2
0210902/mbstring.so (Cannot open "/usr/local/lib/php/20210902/mbstring.so"), /usr/local/lib/php/2021
0902/mbstring.so.so (Cannot open "/usr/local/lib/php/20210902/mbstring.so.so")) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /usr/local/lib/php/202
10902/mcrypt.so (Cannot open "/usr/local/lib/php/20210902/mcrypt.so"), /usr/local/lib/php/20210902/m
crypt.so.so (Cannot open "/usr/local/lib/php/20210902/mcrypt.so.so")) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'openssl.so' (tried: /usr/local/lib/php/20
210902/openssl.so (Cannot open "/usr/local/lib/php/20210902/openssl.so"), /usr/local/lib/php/2021090
2/openssl.so.so (Cannot open "/usr/local/lib/php/20210902/openssl.so.so")) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'xmlrpc.so' (tried: /usr/local/lib/php/202
10902/xmlrpc.so (Cannot open "/usr/local/lib/php/20210902/xmlrpc.so"), /usr/local/lib/php/20210902/x
mlrpc.so.so (Cannot open "/usr/local/lib/php/20210902/xmlrpc.so.so")) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'json.so' (tried: /usr/local/lib/php/20220829/json.so
(Cannot open "/usr/local/lib/php/20220829/json.so"), /usr/local/lib/php/20220829/json.so.so
(Cannot open "/usr/local/lib/php/20220829/json.so.so")) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'openssl.so' (tried: /usr/local/lib/php/20220829/openssl.so
(Cannot open "/usr/local/lib/php/20220829/openssl.so"), /usr/local/lib/php/20220829/openssl.so.so
(Cannot open "/usr/local/lib/php/20220829/openssl.so.so")) in Unknown on line 0
can you teach me how to see to which packages are they connected ? thanks.
Same goes for json extension you can comment it out from your php.ini
You can search for particular php module via this:
pkg search php82 | grep curl
;extension=imap
;extension=mbstring
;extension=exif ; Must be after mbstring as it depends on it
;extension=mysqli
;extension=oci8_12c ; Use with Oracle Database 12c Instant Client
;extension=oci8_19 ; Use with Oracle Database 19 Instant Client
;extension=odbc
#;extension=openssl
;extension=pdo_firebird
;extension=pdo_mysql
;extension=pdo_oci
;extension=pdo_odbc
;extension=pdo_pgsql
;extension=pdo_sqlite
;extension=pgsql
;extension=shmop
;extension=snmp
;extension=soap
;extension=sockets
;extension=sodium
;extension=sqlite3
;extension=tidy
;extension=xsl
;extension=zip
;zend_extension=opcache
it means that the previous warnings are already there. I see them when the system restarts. (yes,I've just rebooted).
# ls /usr/local/etc/php
ext-10-opcache.ini ext-20-json_post.ini ext-20-tokenizer.ini
ext-10-opcache.ini.pkgsave ext-20-mbstring.ini ext-20-tokenizer.ini.pkgsave
ext-18-session.ini ext-20-mbstring.ini.pkgsave ext-20-xml.ini
ext-18-session.ini.pkgsave ext-20-mcrypt.ini ext-20-xml.ini.pkgsave
ext-20-ctype.ini ext-20-mcrypt.ini.pkgsave ext-20-xmlwriter.ini
ext-20-ctype.ini.pkgsave ext-20-mysqli.ini ext-20-xmlwriter.ini.pkgsave
ext-20-curl.ini ext-20-mysqli.ini.pkgsave ext-20-zip.ini
ext-20-curl.ini.pkgsave ext-20-openssl.ini ext-20-zip.ini.pkgsave
ext-20-dom.ini ext-20-pdo.ini ext-20-zlib.ini
ext-20-dom.ini.pkgsave ext-20-pdo.ini.pkgsave ext-20-zlib.ini.pkgsave
ext-20-filter.ini ext-20-phar.ini ext-30-pdo_mysql.ini
ext-20-filter.ini.pkgsave ext-20-phar.ini.pkgsave ext-30-pdo_sqlite.ini
ext-20-gd.ini ext-20-posix.ini ext-30-pdo_sqlite.ini.pkgsave
ext-20-gd.ini.pkgsave ext-20-posix.ini.pkgsave ext-30-xmlreader.ini
ext-20-iconv.ini ext-20-simplexml.ini ext-30-xmlreader.ini.pkgsave
ext-20-iconv.ini.pkgsave ext-20-simplexml.ini.pkgsave ext-30-xmlrpc.ini
ext-20-imagick.ini ext-20-sqlite3.ini ext-30-xmlrpc.ini.pkgsave
ext-20-json.ini ext-20-sqlite3.ini.pkgsave
sudo service mysql-server start
sudo service nginx stop
sudo nano /usr/local/etc/nginx/nginx.conf and changed port 80 with port 81
sudo /usr/local/etc/rc.d/apache24 restart
nginx and apache24 are running together. Rebooting...
Sources :
1)
https://dan.langille.org/2020/04/29/warning-failed-precmd-routine-for-mysql/
2)
https://forums.freebsd.org/threads/48-address-already-in-use-make_sock-could-not-bind-to-add.44485/
6758 - Ss 0:00.04 /usr/local/sbin/httpd -DNOHTTPACCEPT
6762 - I 0:00.00 /usr/local/sbin/httpd -DNOHTTPACCEPT
6763 - I 0:00.00 /usr/local/sbin/httpd -DNOHTTPACCEPT
6764 - I 0:00.00 /usr/local/sbin/httpd -DNOHTTPACCEPT
6765 - S 0:00.00 /usr/local/sbin/httpd -DNOHTTPACCEPT
6766 - I 0:00.00 /usr/local/sbin/httpd -DNOHTTPACCEPT
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…