安装LAMP(CentOS6.6)
来源:互联网 发布:我的世界linux服务端 编辑:程序博客网 时间:2024/05/24 01:11
操作系统:CentOS6.6(x86_64)
安装方式:源码安装 & RPM包
安装目录:/opt/
安装文件:
(1) Apache Httpd(V2.2.x)
(2) MySQL(V5.5)
a) client(V5.5.36)
b) server(V5.5.36)
(3) PHP(V5.3.x)
一、Httpd
1. 卸载旧版本
卸载系统自带httpd(V2.2.15-29)
yum remove httpd
2. 安装
tar httpd-2.2.26.tar.gzcd httpd-2.2.26./configure --prefix=/opt/httpd \ --enable-so \ --enable-rewritemakemake install
二、MySQL
1. 卸载旧版本libs
yum remove mysql-libs
2. 安装
客户端[root@localhost ~]# rpm –ivh MySQL-client-5.5.36-1.el6.x86_64.rpm服务器端
[root@localhost ~]# rpm -ivh MySQL-server-5.5.36-1.el6.x86_64.rpm
3. Micro-version update
(1) remove
#client
[root@localhost ~]# yum remove MySQL-client-5.5.36-1.el6.x86_64
#server
[root@localhost ~]# yum remove MySQL-server-5.5.36-1.el6.x86_64
(2) update
#client
[root@localhost ~]# rpm -ivh MySQL-client-5.5.43-1.el6.x86_64.rpm
#server
[root@localhost ~]# rpm -ivh MySQL-server-5.5.43-1.el6.x86_64.rpm
三、PHP
1. 依赖包安装
yum install libxml2-devel \ curl-devel \ libjpeg-devel \ libpng-devel \ libtool-ltdl-devel如果系统没有安装普通包,则安装之。默认已安装。
安装libmcrypt包(RPM包)
rpm –ivh libmcrypt-2.5.8-9.el6.x86_64.rpmrpm –ivh libmcrypt-devel-2.5.8-9.el6.x86_64.rpm
2. 安装
tar zxvf php-5.3.28.tar.gzcd php-5.3.28./configure --prefix=/opt/php \ --with-apxs2=/opt/httpd/bin/apxs \--with-curl \--with-mcrypt \--enable-mbstring \--with-iconv \--with-gd \--with-jpeg-dir=/usr/local/lib \--enable-pdo \--with-pdo-mysql=mysqlnd \--with-mysqli=mysqlnd \--with-mysql=mysqlndmakemake install
(1) 建立ini文件
当前目录为:php-5.3.28
cp php.ini-development /opt/php/lib/php.ini
(2) 建立软链接
ln -s /opt/php/bin/php /usr/bin/php
配置httpd和php请参见《配置httpd - linux》。
1 0
- 安装LAMP(CentOS6.6)
- centos6.6 lamp 安装
- Centos6.6中LAMP的安装
- LAMP 源码安装基于centos6.6
- CentOS6下安装LAMP
- CentOS6.4 lamp安装
- centos6.* 安装lamp环境
- centos6.5 安装lamp
- centos6.3 lamp环境安装
- CentOS6.4 YUM 安装LAMP
- Centos6.5 源码安装LAMP
- CentOS6.5安装LAMP+Redis
- centos6.5 yum安装lamp
- centos6源码编译安装lamp
- linux centos6 yum 安装lamp
- CentOS6.9编译安装LAMP
- linux学习笔记 centos6.6用yum安装lamp
- centos6.5安装LAMP全过程(不带图片)
- android ListView 的 setOnItemClickListener方法失效解决方法
- 数位dp模板
- 设计模式(1)-状态模式(C++)
- SRM 582
- 新起点?!
- 安装LAMP(CentOS6.6)
- 循环矩阵
- hdu 2089 数位dp模板题
- algorithm and data structure
- hdu 3555 数位dp模板题
- 如何下载Google Play上的APK?
- 学习炒汇的感受
- Edit Distance
- 帧、报文、报文段、分组、包、数据报的概念区别