国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > Apache > 正文

apache2.2.4+mysql5.0.77+php5.2.8安裝精簡

2024-08-27 18:23:14
字體:
來源:轉載
供稿:網友
linux下apache php環境的配置方法。 1.安裝Apache

將httpd-2.2.4.tar.gz拷貝至/usr/local/src目錄中

tar -zxvf httpd-2.2.4.tar.gz

cd httpd-2.2.4

./configure --prefix=/usr/local/apache2 --enable-so --enable-vhost-alias --enable-rewrite --enable-deflate --enable-mods-shared=all --with-mpm=worker

make && make install



2.安裝php



安裝freetype-2.3.5.tar.gz

tar zxvf freetype-2.3.5.tar.gz

cd freetype-2.3.5

./configure --prefix=/usr/local/phpsyslib/freetype-2.3.5

make && make install

mkdir /usr/local/phpsyslib/freetype-2.3.5/include/freetype2/freetype/internal(如果報錯需要)



安裝jpeg

tar zxvf jpegsrc.v6b.tar.gz

cd jpeg-6b

./configure --prefix=/usr/local/phpsyslib/jpeg-6b --enable-shared 必須加后面這個參數,不然不能生成那個共享庫

根據報錯信息自己創建相應目錄

cp libjpeg.a /usr/local/lib(如果安裝gd不成功的話)



安裝zlib

tar zxvf zlib-1.2.3.tar.gz

cd zlib-1.2.3

./configure --prefix=/usr/local/phpsyslib/zlib-1.2.3



安裝openssl-0.9.8e

tar zxvf openssl-0.9.8e.tar.gz

cd openssl-0.9.8e

./config shared zlib

make

make test

make install

mv /usr/bin/openssl /usr/bin/openssl.OFF

mv /usr/include/openssl /usr/include/openssl.OFF

ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl

ln -s /usr/local/ssl/include/openssl /usr/include/openssl

配置庫文件搜索路徑

#echo "/usr/local/ssl/lib" >> /etc/ld.so.conf

#ldconfig -v



安裝libpng

tar zxvf libpng-1.2.23.tar.gz

cd libpng-1.2.23

cp scripts/makefile.linux makefile



安裝GD庫(如果失敗先安裝libtool和gettext)



tar zxvf gd-2.0.35.tar.gz

cd gd-2.0.35

./configure --prefix=/usr/local/phpsyslib/gd-2.0.35 --with-jpeg=/usr/local/phpsyslib/jpeg-6b --with-png=/usr/local/ --with-zlib=/usr/local/phpsyslib/zlib-1.2.3 --with-freetype=/usr/local/phpsyslib/freetype-2.3.5/

make && make install



安裝gettext(如果失敗先安裝 libtool)

tar zxvf gettext-0.17.tar.gz

cd gettext-0.17

./configure --prefix=/usrmake && make install 安裝libtool

tar zxvf libtool-2.2.tar.gz

cd libtool-2.2

./configure --prefix=/usrmake && make installcp /usr/lib/libattr.la /lib/

安裝curl

tar zxvf curl-7.17.1.tar.gz

cd curl-7.17.1

./configure --prefix=/usr/local/phpsyslib/curl-7.17.1

make && make install



3.安裝mysql



# tar zxvf mysql-5.0.77-linux-i686-icc-glibc23.tar.gz

cp mysql-5.0.77-linux-i686-icc-glibc23 /usr/local/mysql

cp /usr/local/mysql/support-files/mysql.server /etc/rc.d/init.d/mysql ---mysql自啟動

cp /usr/local/mysql/support-files/my-medium.cnf /etc/my.cnf

groupadd mysql

useradd -g mysql mysql
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 昌宁县| 莱州市| 盖州市| 马边| 吴堡县| 广元市| 巨鹿县| 玉林市| 南靖县| 华坪县| 丹凤县| 临泉县| 登封市| 邵东县| 灵宝市| 莱西市| 青州市| 南溪县| 封丘县| 缙云县| 隆尧县| 宜章县| 彩票| 南阳市| 博客| 潮州市| 凤城市| 彭阳县| 大名县| 呼伦贝尔市| 涿州市| 神池县| 昆山市| 古田县| 佛山市| 应城市| 永登县| 珲春市| 青神县| 焦作市| 滨州市|