Chinaunix首页 | 论坛 | 博客
  • 博客访问: 150859
  • 博文数量: 37
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 395
  • 用 户 组: 普通用户
  • 注册时间: 2007-01-07 20:06
文章分类
文章存档

2011年(1)

2009年(1)

2008年(1)

2007年(34)

我的朋友

分类: BSD

2007-11-17 22:20:54

#################################
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) |
0

上一篇:IBM X31笔记本

下一篇:赎罪的天使

给主人留下些什么吧!~~