AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题

问题[php53](server)

Martin Hope
anjanesh
Asked: 2010-04-03 03:51:28 +0800 CST

从 PHP 5.2 升级到 PHP 5.3 后 WordPress 站点的 HTTP 请求失败

  • 0

我已经从 Ubuntu 9.10 升级到 10.04 beta 1,PHP 从 5.2 升级到 5.3 现在我所有的 WordPress 和 Magento 网站都不能正常工作。我尝试从命令行检索 URL 标头,但 HTTP 请求失败。

在一个小脚本中使用 get_headers,PHP 警告:get_headers( http://local.vhosts1.com ): failed to open stream: HTTP request failed!在第 12 行的 get_headers.php 中

但是 HTTP 请求仅对基于 WordPress 和 Magento 的站点失败 - 而不是自定义编写的站点。这可能与某些 htaccess 指令有关吗?

wordpress php53
  • 1 个回答
  • 437 Views
Martin Hope
ironkeith
Asked: 2010-02-22 13:04:55 +0800 CST

我可以使用 Apache 在同一台服务器上运行 PHP 5.3 和 PHP 5.2 吗?

  • 3

我只是好奇是否有一种方法可以设置我的开发框,以便我可以让一些站点运行 PHP 5.3 和一些运行 PHP 5.2 的站点,并且我可以相当轻松地在它们之间切换。

apache-2.2 php5 php53
  • 4 个回答
  • 6277 Views
Martin Hope
richard
Asked: 2010-02-15 05:48:35 +0800 CST

如何在 Ubuntu 8.04 上安装 PHP5.3 和 SQLite3

  • 0

我有一个 Ubuntu Hardy VPS,我正在尝试使用 SQLite 安装 PHP5.3。我添加了dotdeb PHP5.3存储库并成功安装了PHP5.3。但我也需要安装 SQLite。当我尝试安装 php5-sqlite3 ( sudo aptitude install php5-sqlite3) 时,输出如下:

The following packages are BROKEN:
  php5-sqlite3 
The following NEW packages will be automatically installed:
  php-db php-pear php-sqlite3 
The following NEW packages will be installed:
  php-db php-pear php-sqlite3 
0 packages upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 460kB of archives. After unpacking 3027kB will be used.
The following packages have unmet dependencies:
  php5-sqlite3: Depends: phpapi-20060613 which is a virtual package.
Resolving dependencies...
The following actions will resolve these dependencies:

Remove the following packages:
libapache2-mod-php5
php5
php5-mysql

Install the following packages:
php-pear [5.2.4-2ubuntu5.10 (hardy-updates, hardy-security)]

Downgrade the following packages:
php5-cli [5.3.1-0.dotdeb.1 (<NULL>, now) -> 5.2.4-2ubuntu5.10 (hardy-updates, hardy-security)]
php5-common [5.3.1-0.dotdeb.1 (<NULL>, now) -> 5.2.4-2ubuntu5.10 (hardy-updates, hardy-security)]
php5-suhosin [5.3.1-0.dotdeb.1 (<NULL>, now) -> 0.9.22-1 (hardy)]

Score is 197

Accept this solution? [Y/n/q/?]

显然,降级 PHP 不是一种选择。

请帮我!如果将服务器升级到更新版本的 Ubuntu 会使事情变得更容易,那不是问题。

ubuntu sqlite ubuntu-8.04 php53
  • 1 个回答
  • 3151 Views
Martin Hope
James
Asked: 2010-02-06 10:52:30 +0800 CST

重复的 PHP 安装

  • 0

从安装 5.2.6 开始,然后继续安装 5.3.1,但 SSH php 现在运行的是 5.3.1,而不是覆盖,而 Web 服务器仍然使用 5.2.6 安装提供内容。

关于如何纠正这个问题的任何想法?我基本上需要找到两个单独安装的位置并且正确,但我只能在 /usr/bin/ 中找到 5.3.1

伙计们需要很大的帮助:)

CentOS 2.6.9,Lighttpd

[root@server ~]# rpm -qa |grep php
php-gd-5.2.6-1.el5.art
php-imap-5.2.6-1.el5.art
php-snmp-5.2.6-1.el5.art
php-mbstring-5.2.6-1.el5.art
php-ldap-5.2.6-1.el5.art
php-cli-5.2.6-1.el5.art
php-xmlrpc-5.2.6-1.el5.art
php-mysql-5.2.6-1.el5.art
php-common-5.2.6-1.el5.art
php-ncurses-5.2.6-1.el5.art
php-pdo-5.2.6-1.el5.art
php-xml-5.2.6-1.el5.art
php-odbc-5.2.6-1.el5.art
php-mhash-5.2.6-1.el5.art
php-mcrypt-5.2.6-1.el5.art
[root@server ~]# php -v
PHP 5.3.1 (cli) (built: Nov 26 2009 03:27:03)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
php php5 php53
  • 1 个回答
  • 227 Views
Martin Hope
Kzqai
Asked: 2010-01-22 11:47:12 +0800 CST

xdebug 是否与 php 5.3 的自定义安装兼容?

  • 0
sudo apt-get install php5-xdebug
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  php5-xdebug: Depends: phpapi-20060613
E: Broken packages
tchalvak:~/sites/loltrading$ apt-cache show phpapi-20060613

有没有办法解决这个问题并在 ubuntu 上使用 php 5.3 运行 xdebug?

ubuntu xdebug php53
  • 1 个回答
  • 550 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve