my OpenBSD3.4 STABLE
dmesg:
OpenBSD 3.4-stable (slzq) #0: Thu Dec 25 21:49:00 GMT 2003
root@slzq:/sys/arch/i386/compile/slzq
1、升级系统
#cd /usr/src
#cvs -d :/cvs -q up -rOPENBSD_3_4 -Pd
#cd /usr/src/sys/arch/i386/conf
#config GENERIC
#cd ../compile/GENERIC
#make depend && make
#cp /bsd /bsd.old && cp bsd /bsd
2、打开chroot的Apache和匿名ftp
#vi /etc/rc.conf
httpd_flags="-u"
ftpd_flags="-D"
#echo "/usr/bin/false" >> /etc/shells
#adduser ftp "sh on false"
4、安装Tomcat支持Jsp
#chmod 755 j2sdk-1_3_1_09-linux-i586.bin
#./j2sdk-1_3_1_09-linux-i586.bin
#sysctl -w kern.emul.linux=1
#cd /usr/ports/www/jakarta-tomcat/v4
#make && make install
#vi /etc/tomcat/server.xml
edit
del
#/usr/local/jakarta-tomcat-4.1.29/bin/startup.sh
5、安装mysql
#tar zxvf mysql-3.23.58.tar.gz
#cd mysql-3.23.58
#./configure --prefix=/usr/local/mysql --with-charset=gb2312
#make && make install
#./scripts/mysql_install_db
#adduser mysql
#chown -R root /usr/local/mysql
#chown -R mysql /usr/local/mysql/var
#chgrp -R mysql /usr/local/mysql
#vi /etc/rc.conf
add
usr/local/mysql/bin/safe_mysqld --user=mysql &
6、安装php4
#tar php-4.3.4.tar.gz
#cd php-4.3.4
#./configure --with-mysql --with-apxs=/usr/sbin/apxs
#make && make install
#cp php.ini-dist /usr/local/lib/php.ini
#vi /var/www/conf/httpd.conf
add
DirectoryIndex index.html index.jsp index.php index.php3
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
7、安装phpmyadmin
#tar zxvf phpMyAdmin-2.5.4-php.tar.gz
#cp -r phpMyAdmin-2.5.4 /home/www/htodcs/phpadmin
#vi /home/htdocs/phpadmin/config.inc.php
edit $cfg['PmaAbsoluteUri'] = '';
i]['auth_type'] = 'config';
阅读(1243) | 评论(0) | 转发(0) |