OpenBSD WEB应用更新 +tomcat jsp

2009-05-13 03:00:38来源:未知 阅读 ()

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


http://61.163.233.217/cgi-bin/test-cgi

http://61.163.233.217/info.php

http://61.163.233.217/phpadmin/

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
anoncvs@anoncvs.ca.openbsd.org
:/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'] = 'http://local/phpadmin/';
i]['auth_type'] = 'config';

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

标签:

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

上一篇:FREEBSD学习经历

下一篇:用OpenBSD构建WEB服务器 apache+mysql+php+zend+phpmyadmin