|
发表于 2005-11-16 12:11:18
|
显示全部楼层
像以下不会有问题吧
- # pkg_add -r cvsup-without-gui
- # login
- # cp /usr/share/examples/cvsup/ports-supfile /root/
- # cp /usr/share/examples/cvsup/standard-supfile /root/
- # cd /usr
- # ee ports-supfile
- *default host=cvsup3.freebsdchina.org
- # ee stable-supfile
- *default host=cvsup3.freebsdchina.org
- # cd /sys/i386/conf
- # mkdir /root/kernel
- # cp GENERIC /root/kernel/MYKERNEL
- # cd /root/kernel
- # ee MYKERNEL
- machine i386
- cpu I686_CPU
- ident MYKERNEL
- ......
- # ln -s MYKERNEL /sys/i386/conf/MYKERNEL
- # cd /usr/src
- # make buildkernel KERCONF=MYKERNEL
- # make installkernel KERCONF=MYKERNEL
- # reboot
- # uname -a
- # cd /usr/ports/databases
- # cd mysql41-server
- # make install clean BUILD_OPTIMIZED=yes BUILD_STATIC=yes
- # cd /etc
- # ee rc.conf
- mysql_enable="YES"
- # /usr/local/etc/rc.d/mysql-server.sh start
- # cd /usr/local/etc
- # mysql
- mysql>show databases;
- mysql>exit
- # mysqladmin password test
- # mysql -p
- Enter password:test
- mysql>exit
- # cd /usr/ports/www/apache2
- # make show-options | less
- # make install clean
- # ee /etc/rc.conf
- apache2_enable="YES"
- # /usr/local/etc/rc.d/apache2.sh start
- # cd /usr/ports/lang/php4
- # make install clean /*不要选择DEBUG
- # ee /usr/local/etc/apache2/httpd.conf
- DirectoryIndex index.php index.html index.html.var
- ......
- AddType application/x-httpd-php .php
- AddType application/x-httpd-php-source .phps
- ......
- # /usr/local/etc/rc.d/apache2.sh restart
- # cd /usr/ports/lang/php4-extensions
- # make install clean
- # cd /usr/port/swww/phpSysInfo
- # make install clean
- # cd /usr/local/www/data
- # mkdir sysadmin
- # mv phpSysInfo /usr/local/www/sysadmin
- # cd /usr/local/www/sysadmin/phpSysInfo
- # cp config.php.new config.php
- # ee config.php
- $defaulft_lng='cn';
- $defaulft_template='aq';
- # cd /usr/local/etc/apache2
- # ee httpd.conf
- #sysadmin Directory
- Alias /sysadmin /usr/local/www/sysadmin/
- <Drectory "/usr/lcoal/www/sysadmin">
- AuthName "Please input username and password;"
- AuthType basic
- AuthUserFile /etc/.htpasswd
- Require valid-user
- Order allow.deny
- Allow from all
- </Directory>
- #
- # Control access to UserDir directories. The following is an example
- # cd /etc
- # htpaaswd -c .htpasswd admin
复制代码 |
|