原创,实践出来的。希望加精!!!
安装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
到这里全部的安装过程已完成。
72.232.63.* 于 2007-05-04 15:41:58发表:
Nice site!
simpsons ringtone | downloadable ringtones | star wars ringtones | alltel free ringtones | download free ringtone | free us cellular ring tones | sprint ringtones | ringtones for us cellular | free ringtones lg | download free mp3 ringtones
72.232.63.* 于 2007-05-04 15:41:40发表:
Good design!
free monophonic ringtones | cellular south ringtones | ctu ringtone verizon | mp3 ringtone converter | verizon ctu ringtone | motorola ringtones free | free tracfone ringtones | ringtones mp3 | samsung free ringtones | free ringtone
72.232.63.* 于 2007-05-04 15:41:27发表:
Great work!
ringtones for alltel | free polyphonic ringtone download | free phone ringtones | ringtone midi | boost ringtones | funny ringtones | ringtones for suncom | free cingular ringtones | wav ringtones | sprint phones
72.232.63.* 于 2007-05-04 15:41:12发表:
Well done!
free anime ringtones | free ringtones us cellular | free tmobile ringtones | us cellular free ringtones | free nextel ringtones | ctu ringtone mp3 | free ringtones for lg | us cellular ring tones | free mp3 ringtone | funny ringtones free
72.232.63.* 于 2007-05-03 15:21:56发表:
Nice site!
sports betting strategy | college sports | las vegas sportsbook | sport bets | betting nba | pinnacle bet | exchange betting | online bookie | baseball scores | nascar betting
72.232.63.* 于 2007-05-03 15:21:06发表:
Well done!
baseball standings | football odd | betting on baseball | sports betting tips | nfl sportsbook | online betting soccer | free nba betting information | win bet | baseball playoffs | baseball odds
72.232.63.* 于 2007-05-03 15:20:48发表:
Good design!
sports bet | golf props | baseball betting | mlb betting | bet gamble | online sports betting site | sportsbook betting | nba lines | baseball pin | fantasy baseball leagues
72.232.63.* 于 2007-05-03 15:20:36发表:
Well done!
bet top 10 | how to sports bet | uefa cup betting | online betting football | sports books | baseball draft | soccer betting | nba allstar weekend | baseball live | sports betting odds
72.232.63.* 于 2007-05-03 15:20:21发表:
Well done!
football betting lines | ncaa picks | nfl pick | college football picks | online hockey betting | baseball fantasy | baseball program | bet odds | sports bet line | best baseball player
72.232.63.* 于 2007-05-02 19:43:11发表:
Nice site!
funny ringtone | ringtones 24 | mobile phone ringtones | motorola mp3 ringtones | online ringtone converter | free mp3 ringtones | free ringtones for suncom | 50 cent ringtones | free ringtones for motorola | motorola ringtone
72.232.63.* 于 2007-05-02 19:42:14发表:
Well done!
free ringtones samsung | mtv ringtones | cricket free ringtones | country ringtones | free lg ringtones | free ringtones sprint | ringtones samsung | free tmobile ringtones | gospel ringtones | free boost mobile ringtones
72.232.63.* 于 2007-05-02 19:41:52发表:
Great work!
24 ringtone free | free ringtones for lg | tracfone free ringtones | mp3 ringtone | download free ringtone | ringtone 24 | funny ringtones free | cellular south ringtones | us cellular ring tones | free motorola ringtone downloads
72.232.63.* 于 2007-05-02 19:41:39发表:
Nice site!
free real ringtones | cingular wireless ringtones | ringtones for nokia | free nokia downloads | free hi fi ringtones | free ringtone | download free polyphonic ringtones | 24 ctu ringtone | free ringtone | free funny ringtones
72.232.63.* 于 2007-05-02 19:41:25发表:
Good design!
mp3 to ringtone | ringtones wav | nextel ringtone | star wars ringtones | mobile ringtones | ringtones for nextel | alltel ringtones | real music ringtones | free polyphonic ringtone download | free midi ringtones
72.232.63.* 于 2007-05-01 15:03:28发表:
Thank you!
free composer ringtones | cellular one ringtones | cellular south ringtones | free cell phone ringtones | free polyphonic ringtone download | 24 ring tones | ringtone download | free ringtones for nokia | ringtones for sprint phones | motorola free ringtones
72.232.63.* 于 2007-05-01 15:02:54发表:
Thank you!
free ringtone creator | free ringtones alltel | free us cellular ring tones | mp3 ringtones download | nextel ringtone program | ringtone converter | free ringtones | free verizon ringtones | free ringtone | tmobile ringtones
72.232.63.* 于 2007-05-01 15:02:36发表:
Good design!
boost mobile ringtones | ringtones midi | mtv ringtones | free star wars ringtones | harry potter ringtone | voice ringtones | ringtones motorola | crazy frog ringtones | free mobile downloads | tracfone ringtones
72.232.63.* 于 2007-05-01 15:02:24发表:
Nice site!
midi ringtone | suncom ringtones | free ringtones for motorola | nextel downloads | christian music ringtones | free wwe ringtones | free ringtones for cingular | free wav ringtones | mp3 to ringtone | harry potter ringtones
72.232.63.* 于 2007-05-01 15:02:10发表:
Thank you!
free nokia ringtones | free ringtones download | centennial ringtones | ringtones for tracfones | free alltel ringtones | free music ringtones | free country ringtones | sprint ringtones | simpsons ringtone | free cellular one ringtones
72.232.63.* 于 2007-04-30 13:27:13发表:
Well done!
arabic ringtones | motorola ringtone | motorola razr v3 ringtones | free cellular ringtones | sprint pcs ringtones | ringtones lg | free midi ringtones | sony ericsson ringtones | us cellular ring tones | nokia download
72.232.63.* 于 2007-04-30 13:26:33发表:
Good design!
ringtones cingular | mp3 ringtones | free tracfone ringtones | free us cellular ringtones | download free polyphonic ringtones | ctu ringtone | free mp3 tones | free nokia downloads | download free mp3 ringtones | free anime ringtones
72.232.63.* 于 2007-04-30 13:26:13发表:
Well done!
midi ringtone | 24 ringtone free | 24 ringtones | sprint free ringtones | free tmobile ringtones | free gospel ringtones | star wars ringtones | boost ringtones | kyocera ringtones | mp3 to ringtone converter
72.232.63.* 于 2007-04-30 13:26:01发表:
Good design!
free downloadable ringtones | free nextel ringtones | polyphonic ringtone | free samsung ringtones | free motorola ringtones | free ringtones for u s cellular | ringtone mp3 | verizon ctu ringtone | free real ringtones | jamster ringtones
72.232.63.* 于 2007-04-30 13:25:46发表:
Thank you!
free ringtones for sprint | suncom ringtones | sms ringtones | ringtone jukebox | mp3 ringtones download | free verizon ringtones | cricket ringtones | sanyo ringtones | country ringtones | ringtones for verizon
72.232.63.* 于 2007-04-29 16:59:21发表:
Thank you!
poker stars download | casino poker | free gambling | internet casinos | joker poker | free texas holdem poker | slots of fun | play free blackjack online | games on line | download blackjack
72.232.63.* 于 2007-04-29 16:58:29发表:
Well done!
no deposit casino bonuses | free no download slots | play free blackjack | online slot machines | new no deposit online casinos | russian roulette game | free online casino | free poker games online | free slot machines | online blackjack free
72.232.63.* 于 2007-04-29 16:58:05发表:
Thank you!
play online poker | sims slots | monopoly slot machine | free texas hold em online | free online slot games | video poker download | free sim slots | bonus poker | free casino slot | no deposit casinos
72.232.63.* 于 2007-04-29 16:57:52发表:
Great work!
free internet poker | free online texas holdem | slots on line | poker sites | free online video slots | no deposit casino bonus | download free poker game | free monopoly online | free gambling games | free casino slot games
72.232.63.* 于 2007-04-29 16:57:38发表:
Well done!
internet bingo | casino open usa | pokerstars download | blackjack game | free slot play | casino free online | texas holdem online | free cleopatra slots | black jack game | blackjack free games
72.232.63.* 于 2007-04-28 17:35:55发表:
Well done!
casino bonus | free slots games | play texas hold em | no deposit casinos | pai gow poker | best online casinos | free poker game download | black jack games | free poker on line | best online casino games
72.232.63.* 于 2007-04-28 17:35:30发表:
Good design!
black jack | black jack download | monopoly slot machine | play texas holdem free | free no download slots | texas hold em | free bingo | free casino slots | free slots no downloads | online poker sites
72.232.63.* 于 2007-04-28 17:35:15发表:
Good design!
games on line | online casino games | slot machine games | online casinos | play casino games | world poker | internet casino | play poker for free | free money no deposit casinos | keno online
72.232.63.* 于 2007-04-28 17:35:02发表:
Well done!
3 card poker | play free roulette | slot machine software | roulette download | holdem poker | new no deposit online casinos | play free blackjack online | gambling games | free poker money | download free poker game
72.232.63.* 于 2007-04-28 17:34:50发表:
Nice site!
live poker | roulette free | black jack free | casinos online | online games | slot machine | free black jack game | casino games | free roulette online | online poker free
72.36.192.* 于 2007-04-27 14:50:57发表:
Nice site!
poker usa | play texas holdem | on line poker | games download | slot games | play roulette free | free online slots | free slots game
72.36.192.* 于 2007-04-27 14:50:11发表:
Good design!
online black jack game | free slot machine downloads | free online strip blackjack | free slots download | poker online free | casino free online | play poker online | free online games | new no deposit casino | casino free
72.36.192.* 于 2007-04-27 14:49:22发表:
Good design!
free texas holdem poker | play free blackjack | download free poker games | play free slots | internet poker | play free slots online | free gambling | online free poker | free slot games | free poker game download
72.36.192.* 于 2007-04-27 14:48:41发表:
Nice site!
on line casinos | online baccarat | flash casino | free online casino | new casinos | free bingo online | black jack games | blackjack game | casino online | free slots
72.36.192.* 于 2007-04-27 14:48:23发表:
Thank you!
online bingo | poker games download | free bonus slots | black jack strip | texas holdem free online | free on line poker | play money poker | russian roulette | video slots | online blackjack free
72.36.192.* 于 2007-04-26 18:43:41发表:
Great work!
pokerstars download | online strip blackjack | slot machines | on line poker | free online casinos | fun slots | roulette games | casino games | free sim slots | internet casino games