Required software: Tp ^ XN.7 (hRf4SMapache: 1.3.27q, 90l! YAs # I # php: 4.3.2: O # Au '$ c9 | $ ^ Jhmysql: 4.0.136e % | [00 @. Jtm; first install mysql ^ RP6 [1Q? G4Rb ,! HO9tarzvxfmysql-4.0.13.tar.gzLT '-_ F0iytcVcdmysql-4.0.13p27h ??, ^ Va. configure -- prefixus Apache
Required software: T p ^ XN.7
(HRf4SM
Apache: 1.3.27 q, 9 & 0l!
YAs # I #
Php: 4.3.2: O # Au '$ c \
9 | $ ^ success"
Mysql: 4.0.13 6e % | [00 @.
J/tm;
First install mysql ^ RP6 [1Q
? G4Rb ,! HO9
Tar zvxf mysql-4.0.13.tar.gz <'-_ F
0 iytcV
Cd mysql-4.0.13 P2/h?
> ?, ^ & Va
./Configure -- prefix =/usr/local/mysql -- sysconfdir =/etc -- localstatedir =/var/lib/mysql cU;, ^ a * w1
Su | r_<.
Make JFme! B
Udgochlorophyll
Make install RgE "* Q
P_QD.Q) E:
Installation is complete. T: S];}
\ Kea | %
Then initialize the Database 2 w !} @ Tq ^
HgI \ A: 9
/Usr/local/mysql/bin/mysql_install_db -- user = mysql PaPE] Rykoe
7 ^ * & I &
Set permissions: ^ q @ PUVR;] z
CMyPb4 ^
Chown-R root/usr/local/mysql Jo1Oa (d +>
,. Mj0) ke
Chown-R mysql/usr/local/mysql/var 8hE; $> J \
S 8 w = 4
Chgrp-R mysql/usr/local/mysql Se '> z # U
LVMz! _
Copy the configuration file; Hc] q {'Q * w
[NCP6h>
Cp/usr/local/mysql/share/mysql/my-medium.cnf/etc/my. cnf? % '/Z3t
D. Jm & e 'v
Start mysql: fu
7y! Zg IC
/Use/local/mysql/bin/mysqld_safe -- user = mysql & S-P 'X ~ &
_ 45G
Change Password: the initial root password is null. 0) HABB; B
} Xnp
/Usr/local/mysql/bin/mysqladmin-u root-p password 123456/= X0P, {<
/K (33%?
Enter password: 52*"$1 @ kUp
7 "l/1 | 4l \
Change the password to 123456. because the initial password is empty, enter password and press enter to change the password to 0X38jnkr =
K74 |, 'cmq
Test the new password: Ey & = (N
Mysql-u root-p mysql IdW4ymjD
F' | M % okv $
Enter password: 123456 6 tWgyl (\
G3d # +, Z *
If it succeeds, you can access mysql. GQ ({_ LO
B8Ls = U! @ 7
First, the static compilation of apache1.3.29 + php4.3.4 + mysql4.0.13
} DLftJF |
Do not install apache during the first compilation because apache has compiled at least once '# LC8f | dq
SJC ^ 8 [O
Tar zvxf apache_1.3.27.tar.gz PRs7V (] {.
C "A <^ $ eEA $
Cd apache_1.3.27 ye] S7 [
'0inq-
./Configure -- prefix =/usr/local/apache 4Su) L
=>) Fx. S1
Compile php <84> ,~ 6
: S! 5
Tar zvxf php4.3.4.tar.gz + hGX '9'
? ()! FU ^
Cd php4.3.4 yB B & gq-
./Configure -- prefix =/usr/local/php -- with-mysql =/usr/local/mysql \ #)-cq4Q:
<7QUs + "5
-- With-apache = ../apache_1.3.27 l1J +-zw
SRG & 5 # U)
Make FX 'U (d $ _ snapshot
-R = d) F6
Make install D [> P + @
[Hl2 'F .[
The second compilation and installation of apache: P "WsM. e
QlBmB5i:
Cd ../apache_1.3.29 $ Ev {!! 'S
./Configure -- prefix =/usr/local/apache \ '4 & fMPi
-- Activate-module = src/modules/php4/libphp4.a m % ^ Bu3RdH
Make l: 8 K
Make install $ + E + Hoe
Cp ../php4.3.4/php. ini. dist/usr/local/php/lib/php. ini * Il9st ~ I
Igenl @
Modify/usr/local/apache/conf/httpd. conf Xq [Y \ Zk ,@
C ~ @ "Qa
Search? Rw4 @ (7> E
S () F | A <
Add (Tl * f7, pg
Dyk,> $ ApS?
AddType application/x-httpd-php. php} usr? %
) M + % U | I)
AddType application/x-httpd-php-source. phps "j -/#
$ B $ f nLL
Note: the source code packages of apache and php are in the same directory. -- with-apache = ../apache_1.3.27 indicates the directory w # OU #2 S to decompress the source code.
Z # = wanpq4
C ~) JU
OK! Static Compilation is complete. you only need to start the server.
& Zh | c &?
/Usr/local/apache/bin/apachectl start | uuB? I
FU6} $ DF
Then, enter the php test page info. php: the content is as follows :? & Bqy> _: '^
BYJG * q2Lc
UJ = E/Y | 7
Phpinfo (); {yWaD
?> J @ Z1as: 7
'P @ c/qaa? T
Y4WZS |} 1
Normally, you should be able to see the php information, so the static compilation is successful! ? VS;) 5%
Z % zwIwSv ^
The following describes how to dynamically compile DSO: zRt {].
: WnM $ %) 1
First, compile and install apache Y ulTb0, f
6! H % B = O
Tar zvxf apache_1.3.29; d8 {'!
'Eqzbzmv
Cd apache_1.3.29 c> % H_Kp, 0
F7Y * Mp2R
./Configure -- prefix =/usr/local/apache -- enable-module = so \ DLiJV [
$ @ I @ G [
-- Enable-module = rewrite' Hk7IDf
VKJ ^ @ e8
Make V + \ e @) c}
V2LTL %. 8/
Make install a6] [; TT
, MjYlxzb
The so module is used to provide the apachehe core module supported by DSO. the rewrite module is the address rewriting module. you can skip the compilation if you do not need it ~ Gtls6cI
M _ # ^
Enable-shared = max indicates that all standard modules except so are compiled into DSO modules. 'Fe {I
YvEdo. ^ Tp
Then compile php _} iULaF
% T0m'oo I
Tar zvxf php4.3.4.tar.gz! I, A0 (C
P _ "e )!
Cd php4.3.2 \! | HEf <$
"^ $} Gq1I
./Configure -- prefix =/usr/local/php -- with-mysql =/usr/local/mysql \ _ 7Xo {f] 0 m
HHW (pH6
-- With-apxs =/usr/local/apache/bin/apxs bk | h ~>
* Crf | AIN
Make YuOR ")
@ % I4 [R8
Make install |>: 0c-
B ^ P (V & $ {
Then modify httpd. conf in the same way as the static compilation method xA6 HD + l:
N = B, j %
OK. the dynamic compilation is complete. What are the differences between them!