b.libpng包(支持PNG) # cd /root/Software/ # tar -zvxf libpng-(version).tar.gz # cd libpng-(version) # ./configure --prefix=/usr/local/libpng # make #> make install
c.安装 freetype # cd /root/Software/ # tar -zvxf freetype-(version).tar.gz # cd freetype-(version) # mkdir -p /usr/local/freetype # ./configure --prefix=/usr/local/freetype # make # make install
d.安装zlib # cd /root/Software/ # tar -zxvf zlib-1.2.3.tar.gz # cd zlib.1.2.3 # mkdir /usr/local/zlib # ./configure --prefix=/usr/local/zlib # make # make install
e.安装GD库 # cd /root/Software/ # tar -zvxf gd-(version).tar.gz # mkdir -p /usr/local/gd2 # cd gd-(version) #
./configure --prefix=/usr/local/gd2 --with-jpeg=/usr/local/jpeg6
--with-zlib-dir=/usr/local/zlib --with-png=/usr/local/libpng
--with-freetype=/usr/local/freetype # make # make install
e.安装Curl库 # cd /root/Software/ # tar -zxf curl-(version).tar.gz # mkdir -p /usr/local/curl # ./configure --prefix=/usr/local/curl # make # make install
四:安装apache2 # cd /roo/Software/ # tar -zvxf httpd-2.2.6.tar.gz # cd httpd-2.2.6 # mkdir -p /usr/local/apache2 # ./configure --prefix=/usr/local/apache --enable-modules=so --enable-rewrite # make # make install # /usr/local/apache2/bin/apachectl -k start //启动apahce 用浏览器查看,得到it works,说明apache已经配置成功了. # /usr/local/apache2/bin/apachectl -k stop //停止apache
五:安装php5,php5必须有libxml2支持! a. 安装libxml2 # cd /root/Software/ # tar -zvxf libxml2-(version).tar.gz # cd libxml2-(version) # mkdir -p /usr/local/libxml2 # ./configure --prefix=/usr/local/libxml2 # make # make install
b.安装 libxslt (可选安装,你可以不安装) # cd /root/Software/ # tar -zvxf libxslt-(version).tar.gz # mkdir -p /usr/local/libxslt # cd libxslt-(version) # ./configure --prefix=/usr/local/libxslt --with-libxml-prefix=/usr/local/libxml2 # make # make install
2.编辑/etc/selinux/config,找到这段: # This file controls the state of SELinux . the system. # SELINUX= can take .e of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - SELinux is fully disabled. SELINUX=enforcing
编辑/etc/sysconfig/selinux,找到: # This file controls the state of SELinux . the system. # SELINUX= can take .e of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - SELinux is fully disabled. SELINUX=enforcing