解决宝塔面板php无法加载curl或者openssl的模块的问题
PHP Warning: PHP Startup: Unable to load dynamic library ‘curl’
PHP Startup: Unable to load dynamic library ‘openssl’
v=73 # 指定宝塔现在已经安装了的php版本php_src=/www/server/php/$v/srcphp_build=/www/server/php/$vcd $php_build&&cp etc etc_bak -R# 备份原本的配置文件cd $php_src&&./configure --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir--with-mhash --without-pear --with-gd --with-xmlrpc --enable-mysqlnd --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --enable-mbregex --enable-fpm --enable-mbstring --enable-pcntl --enable-sockets --enable-zip --enable-soap \--with-php-config=$php_build/bin/php-config --with-curl=/usr/local/curl/ \--with-openssl --with-php-config=$php_build/bin/php-config \ --prefix=$php_build --with-config-file-path=$php_build/etc # 重新配置curl和openssl的php版本make&&make install #编译并覆盖安装
来源地址:https://blog.csdn.net/qq_21491871/article/details/128069599