Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

Creating an oBAMP Stack: OpenBSD, Apache, MySQL, and PHP

The OpenBSD, Apache, MySQL, and PHP (oBAMP) platform provides a powerful point of departure for the creation of dynamic web content. Learn the procedures for running OpenBSD 4.4 with Apache SSL, MySQL 5, and PHP 5.


advertisement
he OpenBSD operating system claims to ship "secure by default" and aims to be "the world's most secured operating system." OpenBSD also boasts the capability to run on many hardware platforms including amd64, i386, and Sparc machines. What better way to test these claims than to configure and deploy OpenBSD yourself with more familiar web technologies?

This article describes how to add PHP language and MySQL database functionality to OpenBSD. It outlines one method of configuring OpenBSD 4.4 (the latest version at the time of writing) to work with Apache 1.3.29, PHP 5.2.6, and MySQL 5.0.51a, creating an "oBAMP" stack, OpenBSD running the "AMP" portion of the better-known Linux LAMP stack. You can use similar configuration on other architectures as well, although they won't be identical to the procedures outlined here.

What You Need
This article assumes that you are capable of:
1. Installing OpenBSD onto your computer's hard drive
2. Achieving network connectivity
3. Acquiring a root prompt



Getting and Installing the OS
You can acquire OpenBSD by either ordering the OpenBSD CD-ROM from the OpenBSD secured online ordering page or installing it freely as an ftp network install. The CD-ROM package includes three disks, the source code, and two stickers. The OpenBSD team, headed by Theo de Raadt, relies on the sale of CD-ROM packages for its financial survival, but I'll leave it to your conscience to decide which method you'll use.

Instructions for installing OpenBSD via CD-ROM are provided inside the CD case. Installation of OpenBSD is also well documented at the OpenBSD official FAQ, Chapter 4 and at the following links:

Preparing Yourself for a Smooth Configuration
After you have bought, borrowed, or downloaded a copy of OpenBSD OpenBSD 4.4, you are ready to configure OpenBSD as an Apache-powered PHP and MySQL web and database server. The configuration process of OpenBSD 4.4 is easier than for any prior release. However, for maximum control of your OpenBSD system, you will need to become familiar with the OpenBSD manual pages. If you find any conflicts between the information provided here and the information in the OpenBSD-provided manual pages, defer to the official manual pages. Posting questions to any OpenBSD forum can also be helpful, but search the manual pages for an answer before doing so.

Access the OpenBSD manual pages online or by typing the following into your OpenBSD console:

// manual page of the recommended after boot procedures # man afterboot // manual page of the manual pages # man man

Author's Note: Manual Page Browsing Hints: Page Up and Page Down move you through the manual pages. ENTER and the arrow up and down keys scroll one line; TYPE "q" to quit.



Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap