#################################
FreeBSD apache+php+mysql install
#################################
一
ssh FreeBSD commands:
ssh
vangeldoro# cvsup -h cvsup.freebsd.org /usr/share/example/cvsup/ports-supfile
#####Synchronous ports#####
二
Mysql install
vangeldoro# cd /usr/ports/databases/mysql50-server
vangeldoro# make install clean
####Configuration mysql####
vangeldoro# cp /usr/local/share/mysql/my-small.cnf /etc/my.cnf
#####start mysql#####
vangeldoro# mysql_install_db -u mysql ; mysqld_safe -u mysql &
三
Apache install
vangeldoro# cd /usr/ports/www/apache22/
vangeldoro# make install clean
四
php5 install
vangeldoro# cd /usr/ports/lang/php5
#####use make config ,select PHP modules#####
vangeldoro# make install clean
五
start apachectl
vangeldoro# apachectl start
六
Add rc.conf
vangeldoro# echo " mysql_enable = "YES" " >> /etc/rc.conf
vangeldoro# echo " apache22_enable="YES" " >> /etc/rc.conf
OK you`ll find some errors ,now following me:
vangeldoro# ee /usr/local/etc/apache22/httpd.conf
1> To find the line like
"LoadModule unique_id_module libexec/apache22/mod_unique_id.so",
and then commented out
Just like "#LoadModule unique_id_module libexec/apache22/mod_unique_id.so"
2> Then Revise the ServerName ipaddr and listen port
Just like this
ServerName 192.168.200.133:80 or
ServerName xbx.vangeldoro.dwz:80
七 Now let`s begin
lynx
It works
Have fun!!!
注:(转载时请标明出处(by vangeldoro))
阅读(1215) | 评论(0) | 转发(0) |