將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-rewrit " /> 久久久久国产视频,欧美成人高清,91中文字幕在线观看

中文字幕日韩一区二区_国产一区二区av_国产毛片av_久久久久国产一区_色婷婷电影_国产一区二区精品

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

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



chown -R root /usr/local/mysql

chgrp -R mysql /usr/local/mysql

上面兩句可用(chown -R root:mysql /usr/local/mysql)

chown -R mysql /usr/local/mysql/data

/usr/local/mysql/scripts/mysql_install_db --user=mysql&

/usr/local/mysql/bin/safe_mysqld --user=mysql&





安裝php

./configure --prefix=/usr/local/php5.2.8 --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-libxml-dir=/usr/share/doc/libxml2-2.6.16 --with-gd=/usr/local/phpsyslib/gd-2.0.35 --enable-gd-native-ttf --with-jpeg-dir=/usr/local/jpeg-6b --with-png-dir --with-freetype-dir=/usr/local/phpsyslib/freetype-2.3.5 --with-iconv-dir --with-zlib=/usr/local/phpsyslib/zlib-1.2.3 --enable-mbstring --disable-ipv6 --with-openssl-dir=/usr/local/ssl --with-curl=/usr/local/phpsyslib/curl-7.17.1 --with-mime-magic=/usr/share/file/magic.mime



Mysql日常用法

mysqldump 主站蜘蛛池模板: 网站黄色在线 | 国产日韩一区二区三区 | 羞羞网站免费观看 | 亚洲一二三区av | 国产精品久久久久一区二区 | www免费视频 | 国产免费一区 | 日韩中文字幕 | 日韩在线电影 | 国产98色在线 | 日韩 | 久久精品国产一区二区 | 欧美bondage紧缚视频 | 狠狠久久久 | 欧美一级在线观看 | 天天综合久久 | 亚洲在线中文字幕 | 精品国产一区二区三区久久狼黑人 | 亚洲精品99 | 亚洲视频精品在线 | www.日日夜夜 | 毛片网站免费观看 | 日韩精品在线播放 | 精品区| 密色视频| 福利片在线| 成人网视频 | 91精品国产99 | 精品国产91| 国产98色在线 | 日韩 | v亚洲| 国产欧美一区二区三区久久手机版 | 少妇一级淫片免费播放 | 精品一区二区三区四区 | 99精品久久久久久中文字幕 | 天天草天天干 | 在线播放国产一区二区三区 | 黄色免费av | 91久久精品一区二区二区 | 资源首页二三区 | 欧美一级黄 | 中文久久 |