lamp的安装配置

上一篇 / 下一篇  2006-12-08 15:45:49

&x nS"NvW0--------------------------PHPChina 开源社区门户GI0W&wOH9gv:IA1XQ
mysql安装PHPChina 开源社区门户 B g;etU[*Y(My y6o
--------------------------PHPChina 开源社区门户|3M3uy g J2Y]
安装包:mysql-5.0.22.tar.gz 路径:/home/admin
:p s)n"U.W.AP.L0# useradd mysqlPHPChina 开源社区门户]9]O4{0k4T ~3r
# groupadd mysqlPHPChina 开源社区门户0Gk"b*Z\n
# cd /home/adminPHPChina 开源社区门户L? TK)zI+L(oa
# tar -zxvf mysql-5.0.22.tar.gz 得到mysql-5.0.22PHPChina 开源社区门户4z3ro$i7c A
# mv mysql-5.0.22 /usr/local/src/PHPChina 开源社区门户a"Gq-\IMp*e
# cd /usr/local/src/mysql-5.0.22PHPChina 开源社区门户K&j o%m$M0t
# ./configure --prefix=/usr/local/mysqlPHPChina 开源社区门户Q5s-u"Q;JK7Z)V
# make
LKlZK*N2q0# make install
~;lsp8[$Gc0t[9XQ0# cp ./support-files/my-medium.cnf /etc/my.cnfPHPChina 开源社区门户b.Pm0Ps*e;G
# cd /usr/local/mysqlPHPChina 开源社区门户m5u&]X.}$Z-~
# ./bin/mysql_mysql_install_db --user=mysql
h1eoUP%f&mI0Z#U0# chown -R root .
YH5Y|le G;Sg0# chown -R mysql varPHPChina 开源社区门户P7QyxG7W9K
# chown -R mysql .
*Ul(Y3vH3BI g@H0# ./bin/mysqld_safe --user=mysql &PHPChina 开源社区门户f U)nA/J3MS_ O?,`

U:O(iG ^:J]0--------------------------PHPChina 开源社区门户a{.M` C;Y5U-fa
webmin 的安装和设定PHPChina 开源社区门户s)^O!T"bMi
--------------------------
T%L _e,r}#Ok0安装包:webmin-1.270-1.noarch.rpm   路径:/home/admin
~`{^c{F@0# cd /home/admin
?W*Z _*YO0# rpm -ivh webmin-1.270-1.noarch.rpmPHPChina 开源社区门户1Pm(l&_FJJ
注释:在您的浏览器输入:http://192.168.1.31:10000/
q!QgU ?&`R"X0设定数据库的bin路径和打开方式:/usr/local/mysql/bin/mysqld_safe --user=mysql &

WmF3L:yrbk0PHPChina 开源社区门户;|,{(~7T|


UYJ-_]T7u_3h0--------------------------PHPChina 开源社区门户u2y\#]R(et
apache的安装和设定
O9J?B q)x1]br E0--------------------------PHPChina 开源社区门户?RK8CY#H
安装包:httpd-2.0.58.tar.gz    路径:/home/adminPHPChina 开源社区门户0n+~xFX,Z"XL]
# tar -zxvf httpd-2.0.58.tar.gz
)s1UG"X8?n0# mv httpd-2.0.58 /usr/local/src/httpd-2.0.58PHPChina 开源社区门户"r olE/e1[Kq5O
# cd /usr/local/src/httpd-2.0.58
2INgme'sc\~0# ./configure --prefix=/etc/httpd --enable-so --enable-module=shared --enable-mods-shared=allPHPChina 开源社区门户&|#H*e&w8O
# make && make installPHPChina 开源社区门户/T^%{wi+x
# cp /etc/httpd/bin/apachectl /usr/sbin/httpdPHPChina 开源社区门户!U4qd)R4PA!U j.p
# cp /etc/httpd/bin/apachectl /etc/rc.d/init.d/httpd
{!wpY;tv2a+a-\0# vi ./conf/httpd.confPHPChina 开源社区门户}] zP"e2Cf8m/k
修改ServerName 192.168.1.31:80
j{U*Bv.R0# /etc/rc.d/init.d/httpd -k start

] SAv`?u1o0PHPChina 开源社区门户:Omcu3V vD~

PHPChina 开源社区门户 jX~Na`8m5C^s
--------------------------PHPChina 开源社区门户+F[.Z'P;Q*?2P$R
jpeg包的安装和设定
+U1DnF'L8VF0--------------------------PHPChina 开源社区门户1H7iln)s
安装包:jpegsrc.v6b.tar.gz 路径:/home/adminPHPChina 开源社区门户X k-?0QN&llO5Y"l"L
# tar -zxvf jpegsrc.v6b.tar.gz
;|V\3GB8^0# mv jpeg-6b /usr/local/src/PHPChina 开源社区门户8lwUdA~y&R+]#P
# cd /usr/local/src/jpeg-6b
"GS/v Zv#`n:I0# ./configurePHPChina 开源社区门户tj"l$w_h
# make
q} g}(V R-s!b a0# mkdir -p /usr/local/man/man1
LB"d^:Cv0# make install
"l"\-W*D'@6T.S0# make install-lib

)aLw-xki6^0

S\T|8M L;pU)V1p)d0
9Xn[0e*W-CP)@0--------------------------
uTW-|tE7i0ttf包的安装和设定PHPChina 开源社区门户+i-HJ5w$^?'nk
--------------------------PHPChina 开源社区门户8^4wfM iEa?4ia
安装包:freetype-2.2.1.tar.gz 路径:/home/admin
4q6I|@ A5j b0# tar -zxvf freetype-2.2.1.tar.gzPHPChina 开源社区门户#X2HzeA sly
# mv freetype-2.2.1 /usr/local/src/
5~`Q%jL4ObS.e0# cd /usr/local/src/freetype-2.2.1PHPChina 开源社区门户*h}f2xXn7^Gl'C\
# ./configurePHPChina 开源社区门户IFCXg`;C _v
# make && make installPHPChina 开源社区门户6xn J4z8E l

PHPChina 开源社区门户Qq)[[;p9rC'T;ap-h

--------------------------
;o&M/q3t&~Lq0zlib包的安装和设定PHPChina 开源社区门户$R]_Y9I+y7K;I
--------------------------
O K7Onk%PyBX0安装包:zlib-1.2.3.tar.gz
$}Cx-l:fGLwlDIo0# tar -zxvf zlib-1.2.3.tar.gz
{f2k)]_0# mv zlib-1.2.3 /usr/local/src/zlib-1.2.3
yL#Df m"o0# ./configure
4[e+[`;s8i-k^0# make && make install

Q J+S9H(y k/W)C,G8^0

(L-r!duU#T{2[0--------------------------
H6Oy6teI*ZR0libpng包的安装和设定PHPChina 开源社区门户Q$H:nz$Mg
--------------------------
6E8XN T[T0安装包:libpng-1.2.10.tar.gzPHPChina 开源社区门户%~!M9V yV?
# tar -zxvf libpng-1.2.10.tar.gzPHPChina 开源社区门户:\+d1D'I"a LeU
# mv libpng-1.2.10 /usr/local/src/libpng-1.2.10
UM} z(v8L N0# cd /usr/local/src/libpng-1.2.10PHPChina 开源社区门户w0?E(G_I3}9p{
# cp ./scrīpts/makefile.gcmmx makefile
\3YI/L3u+BzS0# make && make install

eB(ora$? ^6TS0

'h g s.w!G/^;V/E#h|0
*|:M1a5Ia*IAj,?*C0--------------------------
^ Hc H6HI F ]H0gd包的安装和设定
0D6wl `#@(?[0--------------------------PHPChina 开源社区门户@ z0T!J7H4u
安装包:gd-2.0.33.tar.gzPHPChina 开源社区门户"KV;_XB'^^
# tar -zxvf gd-2.0.33.tar.gzPHPChina 开源社区门户 r {&Q K-Sk
# mv gd-2.0.33 /usr/local/src/
UG:u%k'QE'^8C0# cd /usr/local/src/gd-2.0.33
,[fJt0T.V0# ./configure && make && make install
1J-R2[mJ3D4I0# cp gd.h /usr/local/lib/

6P7Ze\b0PHPChina 开源社区门户g5Z,nOCDkOG

--------------------------PHPChina 开源社区门户*K6v-q!T/CEPPI
xml包的安装和设定
2Wj4zz,T`e~+[0--------------------------PHPChina 开源社区门户6{ zT5k!I`
安装包:libxml2-2.6.11.tar.gzPHPChina 开源社区门户7|'@tt7dx*Mi)} Zm}
# tar -zxvf libxml2-2.6.11.tar.gz
gVTK Ov8x0# mv libxml2-2.6.11 /usr/local/src/PHPChina 开源社区门户W~7Gk jR
# cd /usr/local/src/libxml2-2.6.11PHPChina 开源社区门户3Vm@;fS_os
# ./configurePHPChina 开源社区门户`}|,SJ,@s;f;W
# make && make install

f4k+QW Z$KN0PHPChina 开源社区门户|a L,GR2i8hh.R-]t

--------------------------
D R0Ev@$s^0php5的安装和设定
-V,F7fWB,~,]b\0--------------------------
?Y3S.DT.T0安装包:php-5.0.1.tar.gz
'y4~XSU`1z0# tar -zxvf php-5.0.1.tar.gz
J`!R8q._ o8L9O0# mv php-5.0.1 /usr/local/src/
XL8S${6P]?0# cd /usr/local/src/php-5.0.1
/}0W%\^7WD5`{d |0# ./configure --prefix=/usr/local/php --with-apxs2=/etc/httpd/bin/apxs --with-gd --with-jpeg-dir --with-ttf --with-zlib-dir --with-png-dir --with-mysql --enable-track-vars (--enable-mbstring //this is for phpmyadmin)PHPChina 开源社区门户p8Wk!A EP\
# make
iF lFIe0# make testPHPChina 开源社区门户X.GgV5zB"_
# make installPHPChina 开源社区门户5LO}]2_{] }
# libtool --finish /usr/local/src/php-5.0.1/
0U M,d6c*Yu0# chmod 755 /etc/httpd/modules/libphp5.so
M@q o!U&mI0# cpphp.ini-dist /usr/local/php/lib/php.iniPHPChina 开源社区门户B4a,q e4`0^,T K'r;@j

PHPChina 开源社区门户 [\;U%L)k3|J

--------------------------PHPChina 开源社区门户.ssDj5s:~VE]x
zend的安装和设定
:uQ |9[ EmL(Y#v]za0--------------------------PHPChina 开源社区门户O8Gj?D
安装包:ZendOptimizer-2.6.2-linux-glibc21-i386.tar.gzPHPChina 开源社区门户`W)O$~%Mw"GRq
# tar -zxvf ZendOptimizer-2.6.2-linux-glibc21-i386.tar.gzPHPChina 开源社区门户V%r&fjn)v@9m2Pu
# cp ZendOptimizer-2.6.2 /usr/local/src/PHPChina 开源社区门户$SU Bz3@
# cd /usr/local/src/ZendOptimizer-2.6.2PHPChina 开源社区门户 U)IdH7]/o
# install.sh

"y|7c#km"?5A0

g I_x5[Ohu Lr0
a]6u0p i0--------------------------PHPChina 开源社区门户+k}0i QPi e[
apache配置文件的配置httpd.conf
J R5ST h S8cc8Y0--------------------------
%fW0yM)D O0# vi /etc/httpd/conf/httpd.conf
&SN-}3UNW%m0AddType application/x-httpd-php .php   //添加
d l^fJ0AddType application/x-httpd-php-source .phps //添加
O{5^rC9H o0Load Module php5-module modules/libphp5.so
x!v] G1j9uo0DirectoryIndex index.html index.html.var index.php  //添加index.php

o^(k,v^i#G#eU0

u eYzY@Hh0# /etc/rc.d/init.d/httpd restartPHPChina 开源社区门户l F$`/["],Y-@Y

PHPChina 开源社区门户\s#x%K/Sg&FEeWAS


}4uUf0e7E0--------------------------PHPChina 开源社区门户aGk@ aT
phpmyadmin的安装和设定
}:Bg s0iZ(j0--------------------------
%~%Ix+s&\V CG0安装包:phpMyAdmin-2.8.1.tar.gz
2d7i'kS ty?^/mpH0# tar -zxvf phpMyAdmin-2.8.1PHPChina 开源社区门户{K:_n9wLR6[
# mv phpMyAdmin-2.8.1 /etc/httpd/htdocs/phpmyadminPHPChina 开源社区门户/rW/{W/K~
# cd /etc/httpd/htdocs/phpmyadminPHPChina 开源社区门户U,oya-c
# cp ./libraries/config.default.php ../config.inc.php
9Kc y1g3d$_/N0# vi config.inc.php   //修改成如下:
n8d,E)O&[0C1J0$cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname or IP addressPHPChina 开源社区门户F/HJ*Sw
$cfg['Servers'][$i]['port']          = '3306';          // MySQL port - leave blank for default port
'f{ ^)O]5Kk0$cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socketPHPChina 开源社区门户 J-w2Y$Ae5Ps,K8r#_4T
$cfg['Servers'][$i]['connect_type']  = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')PHPChina 开源社区门户%b#{l)_Ld h
$cfg['Servers'][$i]['extension']     = 'mysql';     // The php MySQL extension to use ('mysql' or 'mysqli')
ybb.u2u&f!s0$cfg['Servers'][$i]['compress']      = FALSE;       // Use compressed protocol for the MySQL connectionPHPChina 开源社区门户+To3}A~&V\,N#l7}
                                                    // (requires PHP >= 4.3.0)
hs(q(T.dS3C.D0$cfg['Servers'][$i]['controluser']   = 'root';          // MySQL control user settingsPHPChina 开源社区门户 m*_)FB$N9p ud
                                                    // (this user must have read-only
/l/d&IP6v(d0~0$cfg['Servers'][$i]['controlpass']   = 'linuxx';          // access to the "mysql/user"PHPChina 开源社区门户Bf#gx;qH3S
                                                    // and "mysql/db" tables).PHPChina 开源社区门户 ZR(@,B3`Ye
                                                    // The controluser is alsoPHPChina 开源社区门户&s;abv/p*B
                                                    // used for all relationalPHPChina 开源社区门户 |7v'UTL OG*P8q
                                                    // features (pmadb)PHPChina 开源社区门户 a3WPo P/r
$cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)?
HcN7B!mJ~SB `0$cfg['Servers'][$i]['user']          = 'root';      // MySQL user
F-zc6p-n?j8^.J0$cfg['Servers'][$i]['password']      = 'linuxx';          // MySQL password (only needed
a5XgR]7B C#xGv0                                                    // with 'config' auth_type)PHPChina 开源社区门户Os,s5B)x2\] |
$cfg['Servers'][$i]['only_db']       = '';          // If set to a db-name, only
't8MwJ^,F0                                                    // this db is displayed in lPHPChina 开源社区门户Zb F|;Ij%_/Md

PHPChina 开源社区门户"~*~5S:We9s c9R

 

,]rD*_tQF-U*j0PHPChina 开源社区门户:c8gK[K0\-A

 PHPChina 开源社区门户4\Q [4^v

W.R$Sn{&K%mo)}0PHPChina 开源社区门户m/h m1_V&]r
 

B+N;j&D4] Kl0

TAG:

引用 删除 伙伴虚岁   /   2007-08-01 18:56:31
谢谢你!
这正是我需要的
 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

数据统计

  • 访问量: 27862
  • 日志数: 99
  • 图片数: 1
  • 建立时间: 2006-10-25
  • 更新时间: 2007-02-06

RSS订阅

Open Toolbar