可根据需要安装
分类:威尼斯手机平台

三、安装PHP

由表及里:
1.Mysql (注意,注意,要下载贰个六11个人的mysql卡塔尔国
# wget //下载
# tar zxvf mysql-5.1.30-linux-x86_64-glibc23.tar.gz //解压
# ln -s mysql-5.1.30-linux-x86_64-glibc23 mysql //链接
# groupadd mysql //增加组
# useradd -g mysql mysql //扩大客户
# cd mysql //改换目录
# scripts/mysql_install_db –user=mysql //安装
# chown -R root . //权限
# chown -R mysql data //权限
# chgrp -R mysql . //权限
# bin/mysqld_safe –user=mysql & //第二回运转
# bin/mysqladmin -u root password XXXXXX // 改mysql 的root 密码为 XXXXXX
# cp support-files/mysql.server /etc/rc.d/init.d/mysqld //系统运转时自动运行:
# chkconfig –add mysqld //系统运转时自动运营:
# /etc/rc.d/init.d/mysqld restart //测验一把

先安装php供给的有的包。

// mysql 搞定

1、安装libxml2:apt-get install libxml2 libxml2-devtar -zxvf zlib-1.2.3.tar.gzcd zlib-1.2.3./configure prefix=/usr/local/zlibmakemake install

  1. Apache
    平素不设置gcc , 先yum install gcc.

2、安装jpeg:tar -zxvf jpegsrc.v6b.tar.gzcd jpeg-6bmkdir /usr/local/jpegmkdir /usr/local/jpeg/binmkdir /usr/local/jpeg/libmkdir /usr/local/jpeg/includemkdir /usr/local/jpeg/manmkdir /usr/local/jpeg/man/man1./configure prefix=/usr/local/jpeg enable-shared enable-staticmakemake install

# wget //下载
# tar jxvf httpd-2.0.63.tar.bz2 //解压
# cd httpd* //改换目录
# ./configure –prefix=/usr/local/apache –enable-so –enable-rewrite –enable-info –enable-cgid –enable-mime-magic –enable-alias –enable-access –enable-forward //配置
# make //编译
# make install //安装
# /usr/local/apache/bin/apachectl start //第一遍运转

3、安装libpng:tar -zxvf libpng-1.2.16.tar.gzcd libpng-1.2.16./configure prefix=/usr/local/libpngmakemake install

3.GD

4、安装freetype:tar -zxvf freetype-2.3.3.tar.gzcd freetype-2.3.3./configure prefix=/usr/local/freetypemakemake install

千帆竞发前先建一些索引方便安装(不建目录也可卡塔尔国

5、安装gd:tar -zxvf gd-2.0.33.tar.gzcd gd-2.0.33./configure prefix=/usr/local/gd with-jpeg=/usr/local/jpeg with-freetype=/usr/local/freetype with-png with-zlibmakemake install

mkdir /usr/local/modules
#jpeg目录
mkdir /usr/local/modules/jpeg6
mkdir /usr/local/modules/jpeg6/bin
mkdir /usr/local/modules/jpeg6/lib
mkdir /usr/local/modules/jpeg6/include
mkdir /usr/local/modules/jpeg6/man
mkdir /usr/local/modules/jpeg6/man/man1

6、安装curl:tar -zxvf curl-7.16.1.tar.gzcd curl-7.16.1mkdir -p /usr/local/curl./configure prefix=/usr/local/curl with-sslmakemake install

a.zlib (看来zlib结束晋级了,到现行反革命依然二〇〇六年发布的三个东东卡塔尔
# wget //下载
# tar zxvf zlib-1.2.5.tar.gz //解压
# cd zlib-1.2.5 //纠正目录
# CFLAGS=”-O3 -fPIC” ./configure   //使用六十人的主意开展编写翻译 (日常只必要./configure卡塔尔
# make
# make install

7、安装libiconv:tar -zxvf libiconv-1.11.tar.gzcd libiconv-1.11./configure prefix=/usr/local/iconvmakemake install

b.FreeType
# wget //下载
# tar zxvf freetype-2.3.5.tar.gz //解压
# cd freetype-2.3.5 //改动目录
# ./configure –prefix=/usr/local/modules/freetype  //配置
# make //编译
# make install //安装

8、正式安装PHP:参数非常多,可依赖须求设置,日常景观下那个已经够了。tar -zxvf php-5.2.5.tar.gzcd php-5.2.5./configure prefix=/usr/local/php with-apxs2=/usr/local/apache/bin/apxs with-config-file-path=/usr/local/apache/conf enable-magic-quotes with-openssl=/usr/local/ssl with-zlib=/usr/local/zlib with-zlib-dir=/usr/local/zlib with-curl=/usr/local/curl enable-ftp with

c.Libpng

# wget //下载
# tar zxvf libpng-1.2.8-config.tar.gz //解压
# cd libpng-1.2.8-config //改换目录

潜心:首先看有未有装libtool (whereis libtool卡塔尔,未有就需求yum install libtool.
# ./configure //配置
# make //编译
# make install //安装

63个人的机械这样搞
cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess .
./configure –enable-shared –enable-static
make
make install

d.jpeg
# wget //下载
# tar jpegsrc.v8b.tar.gz //解压
# cd jpeg-8b //退换目录
# ./configure –prefix=/usr/local/modules/jpeg6 –enable-shared –enable-static  //配置
# make //编译
# make install  //安装

e.GD
# wget //下载
# tar xzvf gd-2.0.33.tar.gz //解压
# cd gd-2.0.33 //退换目录
# ./configure –prefix=/usr/local/modules/gd –with-jpeg=/usr/local/modules/jpeg6 –with-png=/usr/local/libpng –with-zlib –with-freetype=/usr/local/modules/freetype  //配置
# make //编译
# make install  //安装

4.PHP
a.libxml2
# wget ftp://xmlsoft.org/libxml2/libxml2-2.7.2.tar.gz //下载
# tar zxvf libxml2-2.7.2.tar.gz //解压
# cd libxml2-2.7.2 //退换目录
# ./configure –prefix=/usr/local/libxml2 //配置
# make //编译
# make install //安装

b.curl (系统设置了就yum remove curl,然后下载多少个新版的卡塔尔国 # wget //下载
# tar -zxvf curl-7.19.0.tar.gz //解压
# cd curl-7.19.0 //改善目录
# ./configure –prefix=/usr/local/curl //配置
# make //编译
# make install //安装

c.PHP
# wget
# tar jxvf php-5.2.8.tar.bz2
# cd php*
# ./configure –prefix=/usr/local/php –with-mysql=/usr/local/mysql –with-libxml-dir=/usr/local/libxml2 –with-gd=/usr/local/modules/gd –with-png-dir=/usr/local/libpng –with-jpeg-dir=/usr/local/modules/jpeg6 –with-zlib  –with-freetype-dir=/usr/local/modules/freetype –enable-magic-quotes –with-apxs2=/usr/local/apache/bin/apxs  –enable-ftp –with-config-file-path=/usr/local/php/etc –with-iconv –with-gettext –with-curl=/usr/local/curl
# make
# make install
# cp php.ini-dist /usr/local/php/etc/php.ini  (这句。。。)


本文由威尼斯在线注册平台发布于威尼斯手机平台,转载请注明出处:可根据需要安装

上一篇:用PHP实现XML备份Mysql数据库 下一篇:没有了
猜你喜欢
热门排行
精彩图文