| | |
# cd /???????/????/??/????????_????_????????????
# tar -zxvf httpd-2.0.46.tar.gz
# cd ./httpd-2.0.46
????? ????? ????????????? ??????:
?????? ??????? ??????? configure:
# ./configure --prefix=/usr/local/ --enable-suexec
??? --enable-suexec - ?????????? ?????????? cgi-????????
?? ????? ????????????, ??????? ???? ?????? ??????, ? ?? ?? ?????
???????????? ???-???????, ?.?. ?????????? Setuid.
?????? ????????? ? ???? ??????. ???? ?? ????????? ?? ????????? ??????
???????? ?? ????? root, ?? ???? ?? ??????????? ???? ????????????? ????,
?? ????????, ??? ??? ?????? ????????? ???? ????? =))
???? ?? ????? ???, ??, ???????? ????-?????? ??? setuid, ?.?. ? ???????
???????, ???????????? ???????? ? ??????? ?????? chown, chgrp ? chmod +s
????????? ?????? ??????? ????? ??????? ????????????.
????? --prefix ?????? ??????? ??? ????????? ???????. ? ????? ???????
??? /usr/local/ ??? ??????, ??? ?????? ????? ?????????? ?
/usr/local/apache2/
??? ????????? ???? ????????? ????? ????? ????????? configure ? ??????
--help:
# ./configure --help
??? ????????? ???, ??? ????????????? ??????, ????? ????? ???? ???
?????????? ? ???????? http_core.c ? mod_so.c ??? ???????????????
?? ?????????, ??????? ????? ????, ??? ?? ????????? configure, ?????
????????????? ??????:
# make
# make install
??????, ????? ?????? ???????????, ???????? ??????? http_core ? mod_so:
# /usr/local/apache2/bin/httpd -l
? ????? ?? ???, ???? ??????? ?? ????? ?????? ???????, ? ????????
?? ??? ?????????????.
????? ??????, ?????? ???? ? ?????? ? http_core.c ? mod_so.c
??????????, ??? ??? ? ???????, ?????????? ? ???.
????? ???? ????????????, ????????????? ???:
# tar -zxvf php-4.3.2.tar.gz
# cd php-4.3.2
?????? ????? ????????? configure. ???? ? ??? ??????????? ???? ?????? MySQL,
??? ????? ????????? ?????? ???:
# ./configure --with-mysql --with-apxs2
????? --with-apxs2 ??????????? ??? ????, ????? ???????????????? ???, ???
???????????? ??????. ???? ?? ??? ?????? ???, ??? ???????? ????, ?? ?
???????????? ? 99% configure ??????? ??? ???-?? ????? "APXS - not found".
????? ????????? ???, ????? ????????? ?????? ???:
# ./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs
???? ?? ?? ??????? ???? ?????? 1.?, ? ?? 2.?, ?? ????? --with-apxs2
?????? ????????? ??? --with-apxs
????? ????, ??? ???????????? ????????, ????? ?????????????.
# make
# make install
???, ??????????. ??????, ????? ??????? ?????????? ?????? ?????.
??????? ??????
AddType application/x-httpd-php .php
?????? ????????????? ???. ??? ???????? ?? ???? ?????? ? ??????????? .php
-------------------------------------------------------------
??????? ?????????. ?????????????, ??? ?????? ???? ?????? 2.0.46
? /usr/local/apache2/, ??? ?????? 4.3.2,? ??? ?????????? MySQL,
????? ????????????? ?????? ? /usr/src/
????, ???????:
# cd /usr/src/
# tar -zxvf httpd-2.0.46
# cd ./httpd-2.0.46
# ./configure --prefix=/usr/local/
# make
# make install
?????? ???:
# cd /usr/src/
# tar -zxvf php-4.3.2.tar.gz
# cd ./php-4.3.2
# ./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs
# make
# make install
????????? ? httpd.conf ??????:
AddType application/x-httpd-php .php
?????? ????:
# /usr/local/apache2/bin/apachectl start
|