推荐:《centos教程》
centos yum安装php5.2方法
yum安装低版本php安装方法
1.环境
centos6.4 x86_32
2.添加源
wget -q -o - http://www.atomicorp.com/installers/atomic | sh
3.排除php5.3的包,我们只需要php5.2.17
vim /etc/yum.confexclude=*5.3.*
4.安装
yum install php php-mysql php-xml php-gd php-mbstring php-cli
apache安装方法
安装
yum install httpd
设置为开机启动
chkconfig httpd on
启动服务
/etc/init.d/httpd start、
安装mysql
yum install mysql mysql-server
设置为开机启动
chkconfig mysqld on启动服务
/etc/init.d/mysqld start
修改mysql密码
mysql_secure_installation
当出现如下提示时候直接按回车:
enter current password for root
出现如下再次回车:
set root password? [y/n]
出现如下提示输入你需要设置的密码,回车后在输入一次确认:
new password:
接下来还会有四个确认,分别是:
remove anonymous users? [y/n]disallow root login remotely? [y/n]remove test database and access to it? [y/n]reload privilege tables now? [y/n]
直接回车即可。
安装 zendoptimizer-3.3.3
wget http://downloads.zend.com/optimi ... glibc23-i386.tar.gztar -xzvf zendoptimizer-3.3.3-linux-glibc23-i386.tar.gz./zendoptimizer-3.3.3-linux-glibc23-i386/install.sh
以上就是centos php5.2 安装教程的详细内容。
