我有一台运行nginx和memcache的Ubuntu机器,我试图在Memcached上使用PHP。 我遇到了Fatal error: Class 'Memcached' not found 。 ini文件是从/etc/php5/fpm/php.ini加载的,除了memcached.ini(即使在重新启动nginx之后)之外,所有其他附加的.ini文件都被parsing,如phpinfo()的输出所示。 我试着apt-get install php5-memcache ,它没有错误地完成。 但是, pecl install memcached失败,出现以下错误: In file included from /tmp/pear/temp/memcached/php_memcached.h:22:0, from /tmp/pear/temp/memcached/php_memcached.c:47: /tmp/pear/temp/memcached/php_libmemcached_compat.h:5:40: fatal error: libmemcached-1.0/memcached.h: No such file or directory compilation terminated. make: *** [php_memcached.lo] Error 1 ERROR: `make' failed 服务器在/usr/include/libmemcached ,但即使使用–with-libmemcache=/usr/include/libmemcached pecl安装也会失败。 输出为php -i | grep -i memcache php -i | […]
当试图安装php5-apc时,得到这个错误: root@x-fr-1:/etc/apt# apt-get install php5-apc Reading package lists… Done Building dependency tree Reading state information… Done The following NEW packages will be installed: php5-apc 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 70.4 kB of archives. After this operation, 211 kB of additional disk space will be used. […]
安装MySQL 5.6 for Debian 7(使用ISPConfig)后, (仅供参考,我遵循本教程: http : //xmodulo.com/2013/12/upgrade-mysql-server-debian-ubuntu.html ) 我的PHPMyAdmin给我看这个消息: Your PHP MySQL library version 5.5.35 differs from your MySQL server version 5.6.16. This may cause unpredictable behavior. 我试着用aptitude更新php5-mysql,但正式我已经有了最新版本…我想安装php5-mysql支持MySQL 5.6
我在运行Centos 6的计算机上为我的数据库和Nginx安装了MariaDB。 当我想安装php-mysql的驱动程序,我得到这个问题: #yum安装php-mysql Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: centos.mirror.gtcomm.net * epel: fedora-epel.mirror.iweb.com * extras: mirror.agmn.ca * updates: centos.mirror.gtcomm.net Setting up Install Process Resolving Dependencies –> Running transaction check —> Package php-mysql.x86_64 0:5.3.3-27.el6_5 will be installed –> Processing Dependency: php-pdo(x86-64) for package: php-mysql-5.3.3-27.el6_5.x86_64 –> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for […]
我只是试图在Ubuntu 12.04上升级我的PHP版本,现在我已经搞砸了。 首先我做了这个: sudo add-apt-repository ppa:ondrej/php5-oldstable 然后我做了这个: sudo apt-get update 最后我做了这个: sudo apt-get install php5 而现在我得到关于Sub-process /usr/bin/dpkg returned an error code (1)的错误信息Sub-process /usr/bin/dpkg returned an error code (1) 我做错了什么? 我该如何解决这个问题? 谢谢。 以下是收到的错误: Do you want to continue [Y/n]? Y debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable Setting up libapache2-mod-php5 (5.4.28-1+deb.sury.org~precise+1) […]
我通过ondrej软件包安装了Ubuntu 12.04 LTS + Apache 2.4 + PHP 5.4。 我升级到PHP 5.5,现在似乎不可能启动apache的webdav扩展。 apache mod webdav无法升级: Depends: apache2.2-common (>= 2.2.4) but it is not going to be installed E: Unable to correct problems, you have held broken packages 有没有人有这种configuration的运气? 我无法findwebdav的任何存储库/软件包来解决我的问题。 谢谢。
我刚安装了php-pecl-apcu : # yum info php-pecl-apcu Loaded plugins: amazon-id, priorities, rhui-lb 4 packages excluded due to repository priority protections Installed Packages Name : php-pecl-apcu Arch : x86_64 Version : 4.0.4 Release : 1.el7 Size : 138 k Repo : installed From repo : epel Summary : APC User Cache URL : http://pecl.php.net/package/APCu License : PHP […]
我有oldsubdomain.xxx.com。 一切工作正常。 Windows 2008 R2运行PHP网站的IIS 7.5。 也有SSL运行,并用于所有网站。 所以我需要更改为newsubdomain.xxx.com。 安装新的证书和编辑的绑定…新的子域正在工作。 有点。 当人们尝试通过SSOlogin到我们的应用程序时,在SSO传递他们的信息之后,他们得到“405 – 用于访问此页面的HTTP动词是不允许的”。 此外oldsubdomain.xxx.com现在被我们的networking团队设置为别名。 它会在浏览器中redirect到newsubdomain.xxx.com,但会给出相同的“405 – 用于访问此页面的HTTP动词是不允许的”。 如果刷新页面加载正常… 我检查了PHP处理程序,它允许所有的动词。 我在哪里开始解决这个问题? 据我所知,没有其他更改的networking服务器。 Module DefaultDocumentModule Notification ExecuteRequestHandler Handler StaticFile Error Code 0x80070001
背景:我有一个非常旧的网站,运行在一个非常古老的VPS,一个非常老的Apache和一个非常古老的PHP,我不能升级,因为它是一个非常古老的CentOS机器。 这是一个最新的WordPress网站,suExec设置约100页/分钟。 是的,100 /分钟。 今天晚上7:01分,一个网站下了大约15分钟。 错误日志文件中的第一个相关消息是: [Fri Aug 01 19:01:41 2014] [error] [client:abcd]脚本标题提前结束:index.php,referer:… 日志文件中有大约两三百个错误信息,以7:02结束。 Google Analytics(分析)告诉我,该网站一直对1或2个请求/分钟做出响应。 在7点15分,它开始正常响应,没有任何我的干预。 错误日志文件有关于启动的正常Apache通知,如下所示: Fri Aug 01 19:16:17 2014] [notice]启用suEXEC机制(包装:/ usr / local / apache / bin / suexec) 我不知道是什么原因造成的。 它可能是服务器或Apache或PHP内存不足? 运行顶部给这个内存,所以它应该是别的东西: Mem: 1048576k total, 472756k used, 575820k free, 0k buffers Swap: 0k total, 0k used, 0k free, 0k cached 我们需要在接下来的两周内完成,届时我们将会迁移到一个新的主机。 […]
我的PHP 5.3在我公司使用的旧服务器上工作。 我有我的AWS服务器上的PHP 5.5工作。 这两个服务器都是Ubuntu。 我的应用程序在我的AWS服务器上正常工作。 但是,当我将其迁移到旧的服务器,它停止工作,并不断告诉我有一个数据库连接问题。 现在我多次检查了login是不是一个问题。 错误日志是说PHP Warning: mysqli::mysqli(): [2002] Connection refused 。 我检查了configuration。 这个问题似乎是在我使用mysqli编写应用程序的版本中。 在这个问题和这个页面的步骤之后,我尝试将我的PHP版本升级到5.5。 但是它没有工作,因为info.php页面仍然保持不变。 所以我想也许我只是删除apache2服务器,并通过发出这个命令重新开始: apt-get remove apache2 。 但是,当我这样做后,PHP停止工作。 每当我尝试在浏览器中打开一个PHP文件,它会自动下载它。 现在我有点迷失在我应该去的地方。 我应该尝试完全删除apache2,然后从头开始重新安装它? 我在开始的时候安装了apache2服务器。 服务器很老了。 顺便说一句我检查了apache2 conf设置,并确保以下是正确的:选项索引FollowSymLinks AllowOverride所有要求所有授予