在centos上安装php5.5+MySQL 5.5.32
程序员文章站
2022-05-07 09:51:05
...
在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
好了差不多了,配置测试之类网上很多资料!!!
本文引至Install Apache, MySQL 5.5.32 & PHP 5.5.0 on RHEL/CentOS 6.4/5.9 & Fedora 19-12
上一篇: 移动app接口编程技术-学习实现之PHP进阶 数组
下一篇: 写购物app如何选用后台框架?
推荐阅读
-
在安装了Sql2000的基础上安装Sql2005的详细过程 图文
-
在IETester上安装IE9浏览器预览版图文教程
-
在Android 模拟器上安装和卸载APK包的方法
-
centos7上编译安装php7以php-fpm方式连接apache
-
在CentOS上MySQL数据库服务器配置方法
-
centos7上mysql8.0rpm方式安装教程图解
-
在CentOS上配置Nginx+Gunicorn+Python+Flask环境的教程
-
在Mac OS上编译安装Nginx+PHP+MariaDB开发环境的教程
-
在windows上安装不同(两个)版本的Mysql数据库的教程详解
-
VirtualBox 在Centos 7 中安装增强功能图解 (共享文件夹)