简体   繁体   English

在Nginx上降级到PHP 5.3

[英]Downgrading to PHP 5.3 on Nginx

I'm on the verge of giving up with this. 我快要放弃了。 I have a client running some code compatible with PHP 5.3 and below. 我有一个运行一些与PHP 5.3及更低版本兼容的代码的客户端。 I am trying to figure out a way to install Nginx with PHP 5.3. 我试图找出一种用PHP 5.3安装Nginx的方法。

I have a LEMP set up running PHP 5.5 I followed this tutorial here that allowed me to rebuild PHP 5.3 我已经设置了运行PHP 5.5的LEMP,我在这里遵循了本教程,可以重建PHP 5.3。

And everything ran successfully, but what do I do after I've built it? 一切都成功运行了,但是构建之后该怎么办?

Okay so I've installed PHP 5.3 PHP 5.5 is still running on my web server 好的,所以我已经安装了PHP 5.3 PHP 5.5仍在我的Web服务器上运行

I've run this: 我已经运行了:

USER=root
PHP_FCGI_CHILDREN=15  
PHP_FCGI_MAX_REQUESTS=1000  

/usr/bin/env -- - USER=$USER PATH=/usr/bin PHP_FCGI_CHILDREN=$PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=$PHP_FCGI_MAX_REQUESTS /opt/PHP-5.3/etc/bin/php & 127.0.0.1:9001

to try and get it to work but I have no idea what I'm doing to be honest. 尝试使其正常工作,但老实说,我不知道我在做什么。

Why did you install PHP 5.5? 为什么安装PHP 5.5? According to that tutorial of yours, you should install 5.3: 根据您的教程,您应该安装5.3:

DOWNLOAD PHP 下载PHP

Now let's download the latest PHP 5.3.29 archive from some PHP mirror using the commands below: 现在,使用以下命令从一些PHP镜像下载最新的PHP 5.3.29归档文件:

 PHP_VERSION=5.3.29 wget -O /var/tmp/php-${PHP_VERSION}.tar.bz2 \\ http://bg2.php.net/get/php-${PHP_VERSION}.tar.bz2/from/this/mirror 

You need to specify exactly what you're doing, what the expected result is, and what the actual result is. 您需要确切指定您在做什么,预期结果是什么以及实际结果是什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM