在centos上安装php5.5+MySQL 5.5.32
发布:smiling 来源: PHP粉丝网 添加日期:2013-11-13 22:13:26 浏览: 评论:0
在centos直接使用yum install 安装php的话版本比较低,如果需要高版本的话,请看如下:
Step 1: Installing Remi Repository
- ## Install Remi & Epel Repository on RHEL/CentOS 6.4-6.0 - 32 Bit ##
- rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
- rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
- ## Install Remi & Epel Repository on RHEL/CentOS 6.4-6.0 - 64 Bit ##
- rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
- rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
- ## Install Remi Repository on RHEL/CentOS 5.9-5.0 - 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.9-5.0 - 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
Step 2: Installing Apache, MySQL 5.5.32 & PHP 5.5.0
- ## Installing on RHEL/CentOS 5-6 ##
- # yum --enablerepo=remi,remi-test install httpd mysql mysql-server php php-common
Step 3: Installing PHP 5.5.0 Modules
- ## Installing on RHEL/CentOS 5-6 ##
- # 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
- php-pear php-pdo
Step 4: Starting/Stopping Apache & MySQL 5.5.32
- ## Enable Apache and MySQL on Run-Levels ##
- # chkconfig --levels 235 httpd on
- # chkconfig --levels 235 mysqld on
- ## Apache Commands ##
- # /etc/init.d/httpd start
- # /etc/init.d/httpd stop
- # /etc/init.d/httpd status
- ## MySQL Commands ##
- # /etc/init.d/mysqld start
- # /etc/init.d/mysqld stop
- # /etc/init.d/mysqld status
- 好了差不多了,配置测试之类网上很多资料!!!
Tags: centos 安装 php5 5+MySQL
- 上一篇:phpMyAdmin简明安装教程
- 下一篇:phpmyadmin 配置方法与安装教程
相关文章
- ·CentOS 64 编译PHP出现 error: Cannot find ldap libraries in /usr/lib(2013-12-03)
- ·centos7下安装配置phpmyadmin教程(2015-04-18)
- ·如何在CentOS / RHEL 6.10上安装PHP( 7.3,7.2,7.1)?(2020-02-05)
- ·如何在CentOS和RHEL上安装PHP7(2020-02-11)
- ·如何在CentOS和RHEL和Fedora上安装NGINX Web服务器(2020-02-15)
- ·centos系统下nginx宝塔快速安装(2020-04-04)
- ·CentOS6.9源码编译安装redis和php-redis扩展(2020-04-28)
- ·在CentOS上php5.6怎么安装?(2020-04-28)
- ·CentOS 6.3下安装PHP xcache扩展模块笔记(2021-04-11)
- ·CentOS6.5 编译安装lnmp环境(2021-05-04)
- ·CentOS安装php v8js教程(2021-05-14)
- ·Centos下升级php5.2到php5.4全记录(编译安装)(2021-05-20)
- ·在CentOS上搭建LAMP+vsftpd环境的简单指南(2021-06-15)
- ·CentOS下与Apache连接的PHP多版本共存方案实现详解(2021-06-30)
- ·在CentOS系统上从零开始搭建WordPress博客的全流程记录(2021-07-29)
- ·CentOS下搭建PHP环境与WordPress博客程序的全流程总结(2021-08-01)
推荐文章
热门文章
最新评论文章
- 写给考虑创业的年轻程序员(10)
- PHP新手上路(一)(7)
- 惹恼程序员的十件事(5)
- PHP邮件发送例子,已测试成功(5)
- 致初学者:PHP比ASP优秀的七个理由(4)
- PHP会被淘汰吗?(4)
- PHP新手上路(四)(4)
- 如何去学习PHP?(2)
- 简单入门级php分页代码(2)
- php中邮箱email 电话等格式的验证(2)