最近给一个公司部署服务器的时候发现他们提供的服务器是redhat 6.4系统的,又没有注册,只好修改yum源。 参考一下地址:http://wenku.baidu.com/view/34b085c40508763231121214.html 装好系统 和相关服务httpd,mysql,php,一跑代码,发现php5.3中的spilt函
最近给一个公司部署服务器的时候发现他们提供的服务器是redhat 6.4系统的,又没有注册,只好修改yum源。
参考一下地址:http://wenku.baidu.com/view/34b085c40508763231121214.html
装好系统 和相关服务httpd,mysql,php,一跑代码,发现php5.3中的spilt函数不能用,代码里面好多用的的啊,日
,赶紧上网找一下,有没有yum安装php5.2的要不改死代码了。
还真被我找到了。方法如下
1.环境
centos6.4 x86_64
2.添加源
wget -q -O - http://www.atomicorp.com/installers/atomic | sh
3.排除php5.3的包,我们只需要php5.2.17
vim /etc/yum.conf
exclude=*5.3.*
4.安装
yum install php php-mysql php-xml php-gd php-mbstring php-cli
大功告成,
ps:希望以后开发人员写代码别再用split()函数。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version
Useful JavaScript development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment