centos6下使用yum安装php5.4+mysql5.5教程
发布:smiling 来源: PHP粉丝网 添加日期:2015-05-07 14:01:31 浏览: 评论:0
在linux中使用yum安装php+mysql数据库小编整理的文章有很多了,下文一聚教程小编再来为各位整理一篇相关文章,希望对各位有帮助.
系统:centos 5.x
需要软件包:epel-release-5-4.noarch.rpm、remi-release-5.rpm
1.安装准备
- ##Install Remi Repository on RHEL/CentOS 5.0-5.9 - 32 Bit ##
- rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
- rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
- ##Install Remi Repository on RHEL/CentOS 5.0-5.9 - 64 Bit ##
- rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
- rpm -Uvh http://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扩展
- yum --enablerepo=remi,remi-test install php-mysql php-pgsql php-pecl-mongo php-sqlite \
- php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml php-pecl-apc php-cli \ --phpfensi.com
- php-pear php-pdo
5.安装mysql扩展
yum --enablerepo=remi,remi-test install mysql-connector-odbc mysql-devel libdbi-dbd-mysql
6.启动并验证
- service mysqld start
- service httpd start
- chkconfig httpd on
- chkconfig mysqld on
- httpd -v
- Server version: Apache/2.2.3
- Server built: Sep 16 2014 11:05:09
- php -v
- PHP 5.4.40 (cli) (built: Apr 15 2015 16:05:43)
- Copyright (c) 1997-2014 The PHP Group
- Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
- mysql -V
- mysql Ver 14.14 Distrib 5.5.43, for Linux (x86_64) using readline 5.1
好了,这样就可以了,安装结束.
Tags: centos6 php5 4+mysql5 5
相关文章
- ·zabbix 2.2.5 没有中文汉化选项解决方法(2014-10-01)
- ·centos 5.8安装iotop的步骤详解(2014-10-13)
- ·wdcp中php 5.2升级到php 5.3步骤详解(2014-10-14)
- ·linux中 Nginx 常见502错误问题解决办法(2014-10-15)
- ·linux中Pureftpd提示553与530错误问题解决办法(2014-10-18)
- ·centos中pure-ftpd服务器错误:530 Login authentication failed解决办法(2015-04-21)
- ·linux中Pure-FTPd出现“登录失败: 530 Login authentication failed”(2015-04-21)
- ·php5.3.10的安装配置步骤详解(2015-04-22)
- ·解决安装 Plasma 5 的错误 plasmashell closed unexpected问题(2015-04-22)
- ·zimbra8.5.1安装第三方签名ssl证书的步骤(2015-04-22)
- ·CentOS6.5添加SFTP上传的用户的步骤(2015-04-22)
- ·linux中vsftpd 530 Login incorrect 解决(2015-04-24)
- ·linux中PHP 5.6编译安装方法(支持ORACLE/MARIADB数据库)(2015-04-24)
- ·dpkg中mysql-server-5.5 (configure)时出错解决办法(2015-04-24)
- ·linux中ruby2.1+ redmine2.5+nginx 配置(2015-04-25)
- ·解决linux下vsftp 500 OOPS: cannot change directory:/home/ 办法(2015-04-28)
推荐文章
热门文章
最新评论文章
- 写给考虑创业的年轻程序员(10)
- PHP新手上路(一)(7)
- 惹恼程序员的十件事(5)
- PHP邮件发送例子,已测试成功(5)
- 致初学者:PHP比ASP优秀的七个理由(4)
- PHP会被淘汰吗?(4)
- PHP新手上路(四)(4)
- 如何去学习PHP?(2)
- 简单入门级php分页代码(2)
- php中邮箱email 电话等格式的验证(2)