|
htttpd+mysql+php.txt |
|
|
Apache2
(1)rpm-ehttpdhttpd-manualwebalizersubversionmod_pythonmod_sslmod_perlsystem-config-httpdphpphp-cliphp-ldapphp-commonmysqldovecot--nodeps
(2)./configure--prefix=/usr/local/httpd--enable-so--enable-rewrite--enable-charset-lite--enable-cgi
(3)make&&makeinstall
(4)ln-s/usr/local/httpd/bin//usr/local/bin/
(5)cp/usr/local/httpd/bin/apachectl/etc/init.d/httpd
vi/etc/init.d/httpd
#chkconfig:358515
#description:StartupscriptfortheApacheHTTPServer
(6)chkconfig--addhttpd
chkconfig--listhttpd
AuthName"MYPC"
AuthTypeBasic
AuthUserFile/usr/local/httpd/conf/.pwd
requirevalid-user
vim
-------------------------我是华丽分割线--------------------------------------------
Mysql
(1)rpm-emysql-servermysql
useradd-M-u49-s/sbin/nologinmysql
(2)./configure--prefix=/usr/local/mysql--with-charset=utf8--with-collation=utf8_general_ci--with-extra-charset=gbk,gb2312
makemakeinstall
(3)cpsupport-files/my-medium.cnf/etc/my.cnf
cd/usr/local/mysql/bin/
./mysql_install_db--user=mysql
(4)chown-Rroot:mysql/usr/local/mysql/
chown-Rmysql/usr/local/mysql/var/
ln-s/usr/local/mysql/bin//usr/local/bin/
ln-s/usr/local/mysql/lib/mysql//usr/lib/
ln-s/usr/local/mysql/include/mysql//usr/include/
(5)cpsupport-files/mysql.server/etc/rc.d/init.d/mysqld
chmoda+x/etc/rc.d/init.d/mysqld
chkconfig--addmysqld
-------------------------我是华丽分割线--------------------------------------------IDENTIFIEDBY
php
(1)rpm-ephpphp-cliphp-ldapphp-commonphp-mysql--nodeps
(2)cd/usr/src/libmcrypt-2.5.8/
./configure
make&&makeinstall
ln-s/usr/local/lib/libmcrypt./usr/lib
cd/usr/src/mhash-0.9.9.9/
./configure
make&&makeinstall
ln-s/usr/local/lib/libmhash/usr/lib/
cd/usr/src/mcrypt-2.6.8/
./configure
make&&makeinstall
(3)./configure--prefix=/usr/local/php5--with-apxs2=/usr/local/httpd/bin/apxs--with-mysql=/usr/local/mysql--enable-sockets--enable-mbstring
(4)zend_extension=/usr/local/php5/lib/php/ZendGuardLoader.so
zend_loader.enable=1
LoadModulephp5_modulemodules/libphp5.so
AddTypeapplication/x-httpd-php.php
|
|
|
|
|
|
|
|
|
|
|