我想在我的服务器上安装php(CentOS 6.5)。
yum install php-devel
但是,我遇到了以下错误。
Error: php54-cli conflicts with php-cli-5.3.3-40.el6_6.x86_64
Error: php54 conflicts with php-5.3.3-40.el6_6.x86_64
Error: php54-common conflicts with php-common-5.3.3-40.el6_6.x86_64
You could try using --skip-broken to work around the
我正在尝试用PHP连接到一个PostgreSQL数据库。已经安装了PHP。当我试图在命令行(Centos)上执行以下代码时,下面的错误返回
yum install php-pgsql
Transaction Check Error: file /etc/php.ini from install of php-common-5.3.3-27.el6_5.x86_64 conflicts with file from package php54-common-5.4.24-1.ius.centos6.x86_64 file /usr/lib64/php/modules/curl.so f
我已经安装了Pear并链接到php5.5(这是操作系统附带的默认版本)。但是,我需要使用php5.4。我下载了php 5.4,但无法将其与已经安装的pear链接起来。
我尝试在终端中执行brew link php54,并尝试将路径添加到php.ini for php54中已安装的梨文件夹中,如:include_path = ".:/usr/local/pear/"
这两种方法都没有用。如有任何指导,将不胜感激。
我已经安装了wordpress for cpanel,这是通过我安装了主题的wordpress app installer安装的。主题是正常工作一天后,我的字体页面不工作。
这是error long。
[29-Apr-2018 07:56:23 UTC] PHP Warning: require(/home/eco/public_html/wp-includes/post.php): failed to open stream: Permission denied in /home/eco/public_html/wp-settings.php on line 166
[29-Apr-201
我正试图在我的mac上安装PHP的mcrypt扩展。
我使用homebrew命令来安装它。
brew install php53-mcrypt
这给了我一条消息,说它已经安装了:php53-mcrypt-5.3.26 already installed
但是,当我运行命令php -m时,我没有在列表中看到mcrypt (我已经重新启动了终端)。
编辑1:添加php.ini.default的mcrypt部分
在php.ini.default文件中,这是我关于mcrypt的部分。
[mcrypt]
; For more information about mcrypt settings see
我是symfony2的新手。我在跟踪乌德米的家教。使用此公式安装php代码嗅探器时
brew install php-code-sniffer
我得到了这个错误;
Missing PHP53, PHP54, PHP55 or PHP56 from homebrew-php. Please install one of them before continuing
我已经安装了php55,我真的不知道为什么会有这个错误。
按照这个页面的说明(链接下面),我仍然不能安装作曲家,我不知道我在哪里失败了。有什么好的眼光能发现我的错误吗?我很接近,我能感觉到,但还没有运气,这可能是我在这里做的一个简单的错误…请帮帮我!
步骤1:
curl -sS https://getcomposer.org/installer | php
控制台响应:
#!/usr/bin/env php
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and ru
我在MacPorts中安装了PHP5.4,使用了当前PHP5.3上的所有端口。然后(愚蠢地)运行命令sudo port select --set php php54并接收Selecting 'php54' for 'php' succeeded. 'php54' is now active.
但是,我无法运行当前的任何PHP页面,因为从Apache收到了一个“禁止的”错误。我决定切换回5.3,运行sudo port select --set php php5只为了接收Selecting 'php5' for 'php
我正在尝试使用Text_Diff -我以前使用过它,但它是很久以前的事了。我安装了PEAR,然后安装了Horde Text_Diff。
我不得不更新到pear的路径,但是在成功地完成了这一工作之后,我现在收到了以下消息:
Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/php54/lib/php/pear/Text/Diff.php on line 383
Deprecated: Assigning the return value of new by referen