这篇文章主要介绍了OpenBSD WEB应用案例,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。 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 /var/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 &a免费主机域名mp; 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 /var/www/htodcs/phpadmin #vi /var/www/htdocs/phpadmin/config.inc.php edit $cfg[‘PmaAbsoluteUri’] = ‘http://local/phpadmin/’; $cfg[‘Servers’][$i][‘auth_type’] = ‘config’;感谢你能够认真阅读完这篇文章,希望小编分享的“OpenBSD WEB应用案例”这篇文章对大家有帮助,同时也希望大家多多支持云技术,关注云技术行业资讯频道,更多相关知识等着你来学习!
相关推荐: 分析PostgreSQL DBA中新增的WAL选项
这篇文章主要讲解了“分析PostgreSQL DBA中新增的WAL选项”,文中的讲解内容简单清晰,易于学习与理解,下面请大免费主机域名家跟着小编的思路慢慢深入,一起来研究和学习“分析PostgreSQL DBA中新增的WAL选项”吧!在PG 13中,expla…