How-to: OpenBSD 3.8+Apache+PHP+MySQL

2009-05-13 03:59:44来源:未知 阅读 ()

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

How-to: OpenBSD 3.8+Apache+PHP+MySQL

Updated April 4, 2006


  • What this document is


  • What this document isn't


  • Installation


  • Installing PHP and MySQL


  • Setting up MySQL


  • Configuring Apache


  • Testing MySQL and PHP


  • Disabling and configuring Services


  • Starting Apache and MySQL at boot


  • References

top

What this document is
This document aims to be a tutorial for easily getting an OpenBSD 3.8 installation up and running with Apache+PHP+MySQL. It is a collection of various information I've found on the Internet (see
References
) and my own personal experiences. I will be covering installation and initial setup of the MySQL and PHP packages along with several PHP extensions. I also briefly touch on a few security topics and then how to get OpenBSD to start Apache and MySQL at boot.
top

What this document isn't
This document is not intended to be a tutorial on how to install OpenBSD. This has already been
covered
more than sufficiently by the OpenBSD team and any attempt I make at duplicating it here would be redundant. This document is also not a complete reference for using
Apache
,
PHP
, or
MySQL
. Each of these projects has its own independent documentation which I could not begin to cover here. This document is in no way a total solution to securing a system. OpenBSD comes fairly secure and has an excellent track record of security, but security is a not a destination. It is a journey. It is up to you, the person at the keyboard, to keep the system patched, up to date, and to use good judgement when making system changes.
top

Installing OpenBSD 3.8
The OpenBSD Team has made excellent documentation on how to do this. I don't see much point in duplicating it here. Come back here when you are done installing OpenBSD and I'll help get you set up installing the rest of the system.
OpenBSD installation instructions
top

Installing PHP and MySQL
The pkg_add command is the preferred method of installing software on OpenBSD systems as it will automatically find and resolve any package dependencies (and there will be some here). Packages can be removed with pkg_delete. You'll need to be root to do all of this. First, we need to setup the environment for pkg_add. The following command tells pkg_add where to look for the packages we are going to tell it to get: # export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/3.8/packages/i386/

标签:

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

上一篇:apache和mysql安装后无法自动启动

下一篇:FreeBSD 6.1下图形界面KDE和输入法SCIM安装