第一次使用PHP 5.5,以及我得到很多头痛。 我不能安装php-mysql ,我得到以下错误: Error: Package: php-mysql-5.4.30-1.el6.remi.x86_64 (remi) Requires: php-pdo(x86-64) = 5.4.30-1.el6.remi Installed: php-pdo-5.5.14-2.el6.remi.x86_64 (@remi-php55) php-pdo(x86-64) = 5.5.14-2.el6.remi Available: php-pdo-5.3.3-26.el6.x86_64 (base) php-pdo(x86-64) = 5.3.3-26.el6 Available: php-pdo-5.3.3-27.el6_5.x86_64 (updates) php-pdo(x86-64) = 5.3.3-27.el6_5 Available: php-pdo-5.4.29-3.el6.remi.x86_64 (remi) php-pdo(x86-64) = 5.4.29-3.el6.remi Available: php-pdo-5.4.30-1.el6.remi.x86_64 (remi) php-pdo(x86-64) = 5.4.30-1.el6.remi You could try using –skip-broken to work around the problem You could try […]
我们使用WordPress的公司网站,它已经崩溃,没有明显的原因。 它给出了这样的错误消息: FastCGI Error The FastCGI Handler was unable to process the request. Error Details: The FastCGI process has failed frequently recently. Try the request again in a while Error Number: -2147467259 (0x80004005). Error Description: Unspecified error HTTP Error 500 – Server Error. Internet Information Services (IIS) 看完之后,WordPress似乎并不适合FastCGI,也不需要使用它。 有谁能够告诉我如何将FastCGI与WordPress的交互closures?
我有一个小型服务器,在我工作的公司内部,有一个应用程序需要发送电子邮件通知用户出于不同的原因。 我正在使用PHPMailer来做到这一点。 但是正如我怀疑的那样,我需要configuration一些东西。 而我的意思可能是SMPT或iMAP,或者我不知道该怎么做。 任何人都知道我能用PHPMailer发送邮件吗? 提前致谢!
我有一个小问题,我希望你能帮助我。 我不是程序员或编码员,但我只想解决一些我的项目的麻烦。 这里是上下文。 我需要在我的笔记本(HP-Windows7)上离线安装和使用我的一个项目(电子商务网站)。 所以我已经安装了Appserv并导入了数据库。 我也复制粘贴项目文件夹的www /名称中的所有文件。 该网站是在PHP和Javascript。 没有内部devise的CMS和CSS模板。 我使用本地主机离线启动网站,并打开pipe理员login页面。 我input了我的login名和密码,我收到以下消息: *“Warning:session_start()[function.session-start]:无法发送会话caching限制器 – 已经发送的头文件(输出在C:\ AppServ \ www \ thailema_v2 \ controller \ admin \ login.php: \ AppServ \ www \ thailema_v2 \ controller \ admin \ login.php在第3行 警告:无法修改头文件信息 – C:\ AppServ \ www \ thailema_v2 \ controller \ admin \ login中已经发送的头文件(输出在C:\ AppServ \ www \ […]
我正在尝试在我的AWS EC2实例上设置一个cronjob。 crontab文件中的实际条目没有错,但是当我尝试在命令行中运行命令时,我得到了这个响应。 PHP Warning: include(../scripts/connect.php): failed to open stream: No such file or directory in /var/www/htdocs/crons/emailnotifications.php on line 2 PHP Warning: include(): Failed opening '../scripts/connect.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/htdocs/crons/emailnotifications.php on line 2 PHP Warning: include(../scripts/functions.php): failed to open stream: No such file or directory in /var/www/htdocs/crons/emailnotifications.php on line 3 PHP Warning: include(): Failed […]
我有一台使用nginx web服务器的centOS机器。 在我的应用程序(php)中,我使用cURL来获取远程文件,然后将其发送到视图: $cache_expire = 60*60*24*365; header("Pragma: public"); header("Cache-Control: maxage=". $cache_expire); header('Expires: ' . gmdate('D, d MYH:i:s', time() + $cache_expire).' GMT'); $ch = curl_init(); $timeout = 5; curl_setopt($ch, CURLOPT_URL, $REMOTE-FILE-URL); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $img = curl_exec($ch); curl_close($ch); echo $img; 我想知道,cURL需要下载文件到我的服务器的某个地方的tmp / cache文件夹吗? 这个文件夹在哪里? 稍后删除文件,或者我必须在一段时间内清理文件夹?
我有一个托pipe服务器,它提供了我的PHP版本5.2,但由我做的应用程序需要PHP版本5.4.So有没有可能有任何方式我怎么能升级该版本的PHP在我的远程服务器上,而无需联系提供给我的托pipe服务的公司。
我正在考虑更新我的PHP从5.3版本到5.5版本。 我想知道5.5是否向5.3兼容,因为它只是一个小的更新(例如不是5.3到6.4)。 我遇到问题,如果我只是通过https://serverfault.com/a/420288/124883更新PHP安装? 有没有办法(就像nginx的'configtest'选项来testing依赖关系? 还是有可能有两个版本同时运行,因为我没有一个testing服务器只有一个现场服务器?
我最近更新了我的PHP版本到5.4和我的MySQL版本到5.5 [root@**** ~]# php -v PHP 5.4.31 (cli) (built: Jul 25 2014 07:41:53) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies 当我进入我的PHPMyAdmin我得到以下警告: Centos Your PHP MySQL library version 1.5.73 differs from your MySQL server version 5.5.39. 我能做些什么来摆脱这个警告? 正如你可以看到我的mysql版本是正确的: [root@***** ~]# mysql -u root -p -e 'SELECT VERSION();' Enter password: […]
我只是删除所有的PHP和MySQL,并再次安装它。 但在PHPMyadmin我仍然得到: Your PHP MySQL library version 5.1.69 differs from your MySQL server version 5.5.39. This may cause unpredictable behavior. 有我的完整规格列表: [root@**** ~]# php -v PHP 5.4.31 (cli) (built: Jul 25 2014 07:41:53) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies [root@***** ~]# rpm -qa | grep php php54w-5.4.31-1.w6.x86_64 […]