好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

centos php5.2 安装教程

vim /etc/yum.conf
exclude=*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]
wget http://downloads.zend测试数据/optimi ... glibc23-i386.tar.gz
tar -xzvf ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz
./ZendOptimizer-3.3.3-linux-glibc23-i386/install.sh

以上就是centos php5.2 安装教程的详细内容!

查看更多关于centos php5.2 安装教程的详细内容...

  阅读:54次