本帖最后由 hazhuer 于 2016-4-18 12:55 编辑
configure: error: mysql configure failed. Please check config.log for more infor mation.
原配置信息如下,出错:
./configure --prefix=/usr/local/php --with-onfig-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=php-fpm --with-fpm-group=php-fpm --with-mysql=/usr/local/mysql
修改后的配置信息,编译成功:
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=php-fpm --with-fpm-group=php-fpm --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd
configure: error: mysql configure failed. Please check config.log for more infor mation.
原配置信息如下,出错:
./configure --prefix=/usr/local/php --with-onfig-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=php-fpm --with-fpm-group=php-fpm --with-mysql=/usr/local/mysql
修改后的配置信息,编译成功:
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=php-fpm --with-fpm-group=php-fpm --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd
0
make ***[libphp5.la] Error 1解决方法
make ***[libphp5.la] Error 1
处理方法:
安装两个rpm包#yum -y install libtool.x86_64 libtool-ltdl.x86_64 libtool-ltdl-devel.x86_64
然后make clean;make
make ***[libphp5.la] Error 1
处理方法:
安装两个rpm包#yum -y install libtool.x86_64 libtool-ltdl.x86_64 libtool-ltdl-devel.x86_64
然后make clean;make
0
安装discuz报错:
mysqli_connect()不支持advice_mysqli_connect
解决办法
重新编译php加上--with-mysqli=mysqlnd
然后重启httpd
mysqli_connect()不支持advice_mysqli_connect
解决办法
重新编译php加上--with-mysqli=mysqlnd
然后重启httpd
0
[Fri Apr 15 23:37:50 2016] [error] [client 118.122.85.173] PHP Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /data/www/1.php on line 2
修改php.ini中date.timezone=Asia/Chongqing
重启服务
修改php.ini中date.timezone=Asia/Chongqing
重启服务
0
登录数据库报错
/usr/local/mysql/bin/mysql -uroot
/usr/local/mysql/bin/mysql: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory
解决办法:
yum install libncurses.so.5
在重启数据库
/usr/local/mysql/bin/mysql -uroot
/usr/local/mysql/bin/mysql: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory
解决办法:
yum install libncurses.so.5
在重启数据库
编辑回复