centos6下使用yum安装php5.4+mysql5.5教程

爱互踩 爱互踩流量交换~

在linux中使用yum安装php+mysql数据库小编整理的文章有很多了,下文一聚教程小编再来为各位整理一篇相关文章,希望对各位有帮助.

系统:centos 5.x

需要软件包:epel-release-5-4.noarch.rpm、remi-release-5.rpm

1.安装准备

  1. ##InstallRemiRepositoryonRHEL/CentOS5.0-5.9-32Bit##
  2. rpm-Uvhhttp://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
  3. rpm-Uvhhttp://rpms.famillecollet.com/enterprise/remi-release-5.rpm
  4. ##InstallRemiRepositoryonRHEL/CentOS5.0-5.9-64Bit##
  5. rpm-Uvhhttp://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
  6. rpm-Uvhhttp://rpms.famillecollet.com/enterprise/remi-release-5.rpm

2.安装apche php mysql

yum --enablerepo=remi,remi-test install httpd mysql mysql-server php php-common -y

3.安装apache扩展

yum --enablerepo=remi,remi-test install httpd-manual mod_ssl mod_perl mod_auth_mysql httpd-devel -y

4.安装php扩展

  1. yum--enablerepo=remi,remi-testinstallphp-mysqlphp-pgsqlphp-pecl-mongophp-sqlite\
  2. php-pecl-memcachephp-pecl-memcachedphp-gdphp-mbstringphp-mcryptphp-xmlphp-pecl-apcphp-cli\--phpfensi.com
  3. php-pearphp-pdo

5.安装mysql扩展

yum --enablerepo=remi,remi-test install mysql-connector-odbc mysql-devel libdbi-dbd-mysql

6.启动并验证

  1. servicemysqldstart
  2. servicehttpdstart
  3. chkconfighttpdon
  4. chkconfigmysqldon
  5. httpd-v
  6. Serverversion:Apache/2.2.3
  7. Serverbuilt:Sep16201411:05:09
  8. php-v
  9. PHP5.4.40(cli)(built:Apr15201516:05:43)
  10. Copyright(c)1997-2014ThePHPGroup
  11. ZendEnginev2.4.0,Copyright(c)1998-2014ZendTechnologies
  12. mysql-V
  13. mysqlVer14.14Distrib5.5.43,forLinux(x86_64)usingreadline5.1

好了,这样就可以了,安装结束.

相关广告
  • centos6下使用yum安装php5.4+mysql5.5教程 centos6下使用yum安装php5.4+mysql5.5教程 centos6下使用yum安装php5.4+mysql5.5教程
相关阅读

centos6下使用yum安装php5.4+mysql5.5教程

2019/10/10 17:44:47 | 谷歌SEO算法 | 微信公众号