简体   繁体   English

设置PHP 5.2服务器

[英]Setting up a PHP 5.2 server

I am not sure if this is the proper place for this, so I apologize if I should ask it elsewhere. 我不确定这是否是合适的地方,所以我很抱歉应该在其他地方提问。

I am attempting to setup an old Drupal 5 site just for the purpose of being able to view it short term. 我试图建立一个旧的Drupal 5网站只是为了能够短期查看它。 To do this I need to install PHP 5.2 on the web server (Ubuntu 10.04). 为此,我需要在Web服务器(Ubuntu 10.04)上安装PHP 5.2。 Does anyone have any suggestions on how to do this? 有人对此有任何建议吗? I can't find a simple way to install old versions of PHP. 我找不到安装旧版本PHP的简单方法。

This is quite a problem, as you probably know PHP-5.2 is been dead for some time now, so you can't just apt-get install php . 这是一个很大的问题,因为您可能知道PHP-5.2已经死了一段时间,所以您不能仅apt-get install php The best way to go is to compile it yourself. 最好的方法是自己编译。

You can grab a copy from the github PHP repository , and the follow the installation instructions (under ubuntu you'll need first to install the meta package build-essential to get all the tools needed to compile it). 您可以从github PHP存储库中获取一个副本,然后按照安装说明进行操作 (在ubuntu下,您首先需要安装meta软件包build-essential来获取编译它所需的所有工具)。

Be aware that you should not run php5.2 in production by now! 请注意,您现在不应在生产中运行php5.2!

PS: You'll probably have a better answer if you try superuser or serverfault. PS:如果尝试使用超级用户或服务器故障,可能会得到更好的答案。

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

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