Failed loading /usr/local/php/lib/php/extensions/no-debug-zts-20151012/ioncube_l oader_lin_7.0.so: /usr/local/php/lib/php/extensions/no-debug-zts-20151012/ioncu be_loader_lin_7.0.so: undefined symbol: executor_globals
PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /data/wwwroot/default/mysql.php:2
Stack trace:
#0 {main}
thrown in /data/wwwroot/default/mysql.php on line 2
phpinfo 里面也有mysqli的信息,劳烦指导一下 谢谢
PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /data/wwwroot/default/mysql.php:2
Stack trace:
#0 {main}
thrown in /data/wwwroot/default/mysql.php on line 2
phpinfo 里面也有mysqli的信息,劳烦指导一下 谢谢
2 Answers
1. 安装前修改options.conf新增--enable-maintainer-zts参数
php_modules_options='--enable-maintainer-zts'
2. 安装php3. 安装pthread
cd ~/oneinstack/src
wget http://pecl.php.net/get/pthreads-3.1.6.tgz
tar xzf pthreads-3.1.6.tgz
cd pthreads-3.1.6
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install
ls #查看有没有 pthreads.so,如果有,证明编译成功
#加载pthreads
echo extension=pthreads.so > /usr/local/php/etc/php.d/ext-pthreads.ini
4. 重载php-fpm
service php-fpm reload
Please login or Register to submit your answer