|
不囉唆...
依照標準程序安裝完freebsd
先設定PPPOE
於/etc/rc.conf 加入
ppp_enable="yes"
ppp_mode="ddial"
ppp_profile="seednet"
ppp_user="root"
將/etc/ppp/ppp.conf 改為
default:
set log Phase tun command
ident user-ppp VERSION(built COMPILANTIONDATE)
set timeout 0
enable dns
seednet:
set device PPPoE:fxp0
set authname ************
set authkey ***********
set dial
set login
add default HISADDR
============network config finish============
Before we start using PORTS, we should change our MASTER_SITE
goto /etc/ ,and edit "make.conf",if it does not exist,CREATE it!
and add this infomation .
THEN,we should UPDATE our ports-tree.
first,goto /usr/ports/net/cvsup-without-gui/
#make install clean
it will takes a loooooooong time..
When it finish,reboot our machine.
goto /usr/ports/
#make update
CVSUP will update port-tree automatically!
Now,we can INSTALL leastest soreware by ports!
==========start install mysql5.0============
install mysql 5.0
#cd /usr/ports/databases/mysql50-server/
#make install clean
wait for a long time........................
go to /etc/rc.conf
add this line "mysql_enable="YES"
then reboot!
now,we need update our root's password
#mysql -u root mysql
mysql>update user set password=password('mypassword') where user='root';
then,update the privilege of MYSQL Server
mysql>flush privilege
========mysql server finish!==========
========Apache Server Installation========
goto /usr/ports/www/apache22/
#make install clean
after a looooong time....
edit this file "/etc/rc.conf"
add this line "apache22_enable="YES" "
reboot !
========finish=======================
===========let apache support php5======
goto /usr/ports/lang
#make install clean
after a short time
goto /usr/local/etc/apache22/
maybe you need add this line or it's exists
"LoadModule php5_module libexec/apache22/libphp5.so"
and add this line after <IfModule mime_module>
"AddType application/x-httpd-php .php"
IMPORTANT!! install php5-extension
goto /usr/ports/lang/phph-extensions/
#make install clean
maybe need chose a lot of lib...
and ...need several half hour..
finally,everything is ok!
test it by use "<? phpinfo(); ?>"
===========php5 finish==============
======CGI-Perl Support===============
now,let our Apache Support CGI/Perl
edit "/usr/local/etc/apache22/httpd.conf"
find "Options Indexes FollowSymLinks..."
in the same line,add "ExecCGI MultiViews"
then,find <Directory "/usr/local/www/apache22/cgi-bin/">
in this section, change"Options NONE" to "Options ExecCGI"
and,fine the "#AddHandler cgi-script .cgi"
remove the "#" and add " .pl"
finally,save it.And estart Apache!
Before we test the xxx.cgi,we need use "chmod +x CGI_FILES",or you can get problem!
==============finish CGI-Perl support===========
待續.......... |
|