原创,实践出来的。希望加精!!!
安装MYSQL
引用:# groupadd mysql
# useradd -g mysql -d /usr/local/mysql/data -M mysql
# tar -zxvf mysql-5.0.17.tar.gz
# cd mysql-5.0.17
./configure --prefix=/usr/local/mysql \ 指定安装目录
> --sysconfdir=/etc \ 配置文件的路径
> --localstatedir=/usr/local/mysql/data \ 数据库存放的路径
> --enable-assembler \ 使用一些字符函数的汇编版本
> --with-mysqld-ldflags=-all-static \ 以纯静态方式编译服务端
> --with-charset=utf8 \ 添加utf8字符支持
> --with-extra-charsets=all 添加所有字符支持
# make
# make install
# /usr/local/mysql/bin/mysql_install_db
# chown -R mysql:mysql /usr/local/mysql/data
# cp /usr/local/mysql/share/mysql/mysql.server /etc/rc.d/init.d/mysqld
# chkconfig --add mysqld
# cp /usr/local/mysql/share/mysql/my-medium.cnf /etc/my.cnf
安装Apache
tar -zvxf httpd-2.2.tar.gz
cd httpd-2.2
./configure --prefix=/usr/local/apache --enable-so
make
make install
先安装支持包(注意安装顺序)
先列出配置gd2需要的网址
gd-2.0.33.tar.gz
www.boutell.com/gd
jpegsrc.v6b.tar.gz
ftp.uu.net/graphics/jpeg
www.ijg.org
libpng-1.2.7.tar.tar
www.libpng.org/pub/png/libpng.html
libpng.sourceforge.net
sourceforge.net/projects/libpng
zlib-1.2.2.tar.gz
www.zlib.net
sourceforge.net/projects/zlib
freetype-2.1.9.tar.gz
www.freetype.org
freetype.sourceforge.net/index2.html
sourceforge.net/projects/freetype
建立初始目录:
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
安装libxml
# tar -zxf libxml2-2.6.16.tar.gz
# cd libxml2-2.6.16
# ./configure (xml默认安装就可以,不要指定路径了,因为安装时php可能找不到它,PHP5只支持libxml2-2.5.10以上版本)
# make
# make install
安装zlib
tar xzvf zlib-1.2.2.tar.gz
cd zlib-1.2.2
#不要用--prefix自定义安装目录,影响gd的安装
./configure
make
make install
安装freetype
tar xzvf freetype-2.1.5.tar.gz
cd freetype-2.1.5
./configure --prefix=/usr/local/modules/freetype
make
make install
安装libpng
tar xzvf libpng-1.2.5.tar.gz
#不要用--prefix自定义安装目录,影响gd的安装
cd libpng-1.2.5
cp scripts/makefile.std makefile
make
make install
安装jpeg
tar xzvf jpegsrc.v6b.tar.gz
./configure --prefix=/usr/local/modules/jpeg6 --enable-shared --enable-static
make
make install
安装GD
tar xzvf gd-2.0.33.tar.gz
./configure --prefix=/usr/local/modules/gd --with-jpeg=/usr/local/modules/jpeg6 --with-png --with-zlib --with-freetype=/usr/local/modules/freetype
make
make install
安装imap:
tar zxvf imap-2001a.tar.Z
cd imap-2001a
make slx
cp ipopd/ipop*.* /usr/sbin
cp imapd/imapd /usr/sbin
cp c-client/c-client.a /usr/local/lib
请确定你有 /usr/local/include 这个目录
cp c-client/rfc822.h /usr/local/include
cp c-client/mail.h /usr/local/include
cp c-client/linkage.h /usr/local/include
mkdir /usr/local/php5
tar -zxvf php-5.1.1.tar.gz
cd php-5.1.1
./configure --prefix=/usr/local/php5 \
--with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-libxml-dir=/usr/local/lib \
--with-gd=/usr/local/modules/gd \
--with-jpeg-dir=/usr/local/modules/jpeg6 \
--with-zlib \
--with-png \
--with-freetype-dir=/usr/local/modules/freetype \
--with-imap=/usr/local/lib \
--with-xmlrpc \
--with-config-file-path=/usr/local/php5/etc
make
make install
cp ./php.ini-dist /usr/local/php5/etc/php.ini
修改httpd.conf
#vi /usr/local/apache/conf/httpd.conf
加载php模块,去掉注释“#”,如没有此行,请加上。
LoadModule php5_module modules/libphp5.so
加上此两行
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
到这里全部的安装过程已完成。
65.110.43.* 于 2007-02-14 07:40:36发表:
Great work!
bingo games | free online casino | free poker sites | poker downloads | free bingo games | poker star | slot game | on line gambling | video slot machine | new no deposit casino
65.110.43.* 于 2007-02-14 07:40:05发表:
Good design!
video slot games | free online games | free poker games online | blackjack game | gambling machines | casino game download | slots download | planet poker | keno online | poker on line
65.110.43.* 于 2007-02-14 07:39:45发表:
Well done!
free video slots | texas holdem free | download free poker game | free monopoly slots | slot machine free | empire poker | free slots for fun | play blackjack online | play roulette for free | free poker games
65.110.43.* 于 2007-02-14 07:39:27发表:
Thank you!
world poker | free slot machine downloads | free bingo | free casino slots | download poker | free multi line slots | free sim slots | free slot machines online | black jack download | texas holdem online
72.232.63.* 于 2007-02-13 08:54:27发表:
Great work!
casino games online | caribbean poker | free money casinos | online poker game | free online slot machine | new no deposit online casinos | free on line slots | blackjack download | free no deposit casinos | play slot machines for free
72.232.63.* 于 2007-02-13 08:53:46发表:
Great work!
casino on line | online strip blackjack | free games on line | online black jack | free poker sites | blackjack free | free strip black jack | free texas holdem online | free blackjack | download poker games
66.235.160.* 于 2007-02-13 08:53:20发表:
Nice site!
free video slots | poker machines | online casinos | poker downloads | play roulette free | free slots on line | free slot play | online slot games | casino free | free slots
66.235.160.* 于 2007-02-13 08:52:59发表:
Great work!
free slot games | poker games | poker texas holdem | download poker game | on line poker | free online video slots | slot machines games | world series poker | free gambling | free monopoly online
72.232.63.* 于 2007-02-13 08:52:41发表:
Thank you!
casino game download | video poker free | russian roulette | poker online free | play slot machines | free multi line slots | bingo games | no deposit bonuses | full tilt poker | online texas hold em
65.110.43.* 于 2007-02-12 06:28:32发表:
Nice site!
internet casinos | casino download | black jack free | no deposit casinos | play roulette | online bingo | free on line poker | online black jack | free slot machine game | download casino
65.110.43.* 于 2007-02-12 06:28:03发表:
Good design!
paradise poker | free online games | free slot machines online | free slot game | free no download slots | free slots downloads | strip blackjack game | casino on line | free casino money | free online texas holdem
65.110.43.* 于 2007-02-12 06:27:27发表:
Good design!
online strip blackjack | blackjack online free | on line poker | slot machine games | free slots games | play free online slots | download free poker | planet poker | aussie slots | video slots
72.232.63.* 于 2007-02-12 06:27:16发表:
Nice site!
free gambling games | poker | blackjack games | online casino games | free slot games | play slot machines | download poker games | online poker game | three card poker | omaha poker
65.110.43.* 于 2007-02-12 06:26:32发表:
Nice site!
free video slot games | casino free games | online poker games | play texas holdem free | free monopoly slots | play poker for free | gambling online | free online poker game | games online | online poker sites
72.232.63.* 于 2007-02-11 07:15:17发表:
Good design!
black jack online | new free money online casinos | free on line poker | free blackjack | free slot machines | on line gambling | free video slots | poker games free | poker sites | free slots download
65.110.43.* 于 2007-02-11 07:14:32发表:
Well done!
free online casino slots | no deposit bingo | poker download | free casino downloads | free casino online | casino no deposit | omaha poker | free slots machines | free slots no downloads | free online slots no download
65.110.43.* 于 2007-02-11 07:14:04发表:
Nice site!
poker online | free slot downloads | texas poker | black jack free | free online slot machine | play roulette for free | free slot machine games online | video slot games | online games | poker stars download
66.235.163.* 于 2007-02-11 07:13:52发表:
Great work!
poker game download | poker games | play bingo online | slot machine game | casino games online | free online games | free slot machine | internet bingo | online casino bonus | poker texas holdem
72.232.63.* 于 2007-02-11 07:13:31发表:
Nice site!
free slot games no download | strip blackjack | poker machines | free online texas holdem | free casino games | slots free | online blackjack | blackjack online | new casinos | strip blackjack game
65.110.43.* 于 2007-02-10 08:57:06发表:
Nice site!
online casino | free slots game | flash casinos | pokerstars download | play texas holdem | black jack free | party poker | blackjack online | free texas holdem | strip blackjack
72.232.63.* 于 2007-02-10 08:56:07发表:
Thank you!
strip blackjack game | online strip blackjack | free slots games | free texas hold em | on line gambling | download casino | online poker sites | texas poker | free poker on line | download casino games
65.110.43.* 于 2007-02-10 08:55:04发表:
Thank you!
gambling machines | new free money online casinos | free slim slots | free online games | casino slots | no deposit casino | 3 card poker | online poker free | free blackjack game | gambling sites
72.232.63.* 于 2007-02-10 08:53:31发表:
Great work!
play slots | slot machines | roulette games | online slot machines | free slots for fun | free casino slot games | free video poker | poker sites | free blackjack | free slots
65.110.43.* 于 2007-02-10 08:52:28发表:
Well done!
play poker online | poker for free | poker games | free monopoly slots | bingo online | online roulette free | no limit texas hold em | texas hold em poker | free online bingo games | free money casino
65.110.43.* 于 2007-02-09 07:55:03发表:
Great work!
on line poker | monopoly slot machine | absolute poker | texas hold em poker | sim slots | texas hold em free | play poker | online slots free | free strip black jack | free sim slots
72.232.63.* 于 2007-02-09 07:53:55发表:
Well done!
free texas holdem online | free online games | poker stars download | poker downloads | free no download slots | free slots games | play roulette online | free texas hold em online | free online bingo | free money casino
65.110.43.* 于 2007-02-09 07:52:26发表:
Thank you!
free slot play | slot machine | play texas holdem | free poker on line | roulette download | poker online free | poker game | internet bingo | free money casinos | joker poker
65.110.43.* 于 2007-02-09 07:51:09发表:
Good design!
online poker game | video poker download | no deposit online casinos | online casino | slot machines | internet gambling | free online slots games | no deposit casino bonus | online poker sites | strip blackjack game
65.110.43.* 于 2007-02-09 07:50:41发表:
Great work!
monopoly online | free online casino | caribbean stud poker | free slot machine games | free poker software | play slot machines | russian roulette game | gambling online | games on line | free online strip blackjack
65.110.43.* 于 2007-02-08 07:55:19发表:
Nice site!
world series of poker download | empire poker | free roulette | live poker | texas hold em online | free slots no download | poker bonus | free slot play | black jack online | free video slots
72.232.63.* 于 2007-02-08 07:55:00发表:
Nice site!
world series of poker download | empire poker | free roulette | live poker | texas hold em online | free slots no download | poker bonus | free slot play | black jack online | free video slots
65.110.43.* 于 2007-02-08 07:53:29发表:
Great work!
internet bingo | play slots | slots of fun | poker for fun | free online blackjack | fun slots | gambling machines | play casino games | game slot | new free money online casinos
72.232.250.* 于 2007-02-08 07:52:43发表:
Well done!
free online slot machines | play texas holdem free | casino bonuses | no deposit bonus | free sims slots | free poker download | black jack free | black jack | paradise poker | games on line
72.232.63.* 于 2007-02-08 07:52:18发表:
Good design!
computer poker | free casino money | best online casinos | absolute poker | casino poker | free slot machine play | free blackjack | video poker machines | free texas hold em | slot machine
65.110.43.* 于 2007-02-08 07:51:39发表:
Thank you!
play blackjack | slots download | free online slots games | free online poker games | free roulette online | free sim slots | video slot games | free poker on line | free bingo | strip blackjack
72.232.63.* 于 2007-02-07 07:04:32发表:
Good design!
free video poker | free poker websites | play blackjack | world series of poker download | free bingo | play poker for free | online casinos | download party poker | video poker download | free online games
72.232.63.* 于 2007-02-07 07:03:50发表:
Nice site!
slot machine games | free online texas holdem | star poker | free black jack games | party poker download | online texas hold em | free no download slots | free online slots no downloads | roulette | play slot machines
72.232.250.* 于 2007-02-07 07:03:08发表:
Great work!
internet blackjack | free online texas hold em | black jack game | no deposit bonuses | free slot machine | free three card poker | play roulette for free | online poker free | play free slots online | free casino bonus
72.232.250.* 于 2007-02-07 07:02:41发表:
Well done!
free casino games | free casino downloads | free slots game | free slim slots | online slot games | free sims slots | casino on line | online poker sites | slot machines | gambling sites
72.232.63.* 于 2007-02-07 07:02:22发表:
Good design!
best online casinos | casino poker | bingo games | no download slots | free video slots | download poker | new online casinos | free slot machine games online | online strip blackjack | holdem poker