迁移网站至新服务器,提示错误:PHP message: SQLSTATE[HY000] [2006] MySQL server has gone away
迁移网站至新服务器,提示:PHP message: SQLSTATE[HY000] [2006] MySQL server has gone away
迁移网站至新服务器,提示:PHP message: SQLSTATE[HY000] [2006] MySQL server has gone away
环境:contos 6.3 php 5.6.11 mysql 5.5.40
问题:
PHP 采用 localhost
连接本机 MYSQL 数据库时,提示:
Warning: xxx::mysqli(): (HY000/2002): No such file or directory in xxx on line xxx
环境:contos 6.3
硬件:memory 512mb
问题:
编译安装 php 5.6.11 时遇到错误:
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
#./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=nginx --with-fpm-group=nginx --enable-exif --with-gd --with-jpeg-dir --with-png-dir --with-openssl --with-zlib-dir --with-freetype-dir --enable-gd-native-ttf --with-mhash --with-ldap --with-ldap-sasl --enable-mbstring --with-mcrypt --with-mysqli --enable-pcntl --enable-opcache --with-pdo-mysql --with-openssl-dir --with-libxml-dir --enable-sockets --enable-zip --enable-soap --with-pear --with-libdir=lib64 --without-sqlite3 --without-pdo-sqlite
环境:contos 6.3 php 5.3.3
问题:
PHP安装 memcached
扩展遇到如下错误:
pecl install memcached
libmemcached directory [no]:
checking whether libmemcached supports sasl… no
configure: error: no, libmemcached sasl support is not enabled. Run configure with –disable-memcached-sasl to disable this check
ERROR: '/tmp/pear/temp/memcached/configure –with-libmemcached-dir=no' failed