FreeBSD apache+php+sql install (by vangeldoro…

2009-05-13 10:42:55来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

#################################
FreeBSD apache+php+mysql install
#################################

ssh FreeBSD commands:
ssh
vangeldoro@192.168.200.133

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
[/url]

lynx
[url=http://127.0.0.1]http://127.0.0.1
It works
Have fun!!!

注:(转载时请标明出处(by vangeldoro))


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/29761/showart_424849.html

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:GIGA FTP 情報站

下一篇:LDAP无法查询