Turn Your Linux Machine into an Application Server in 10 Minutes

Machines like Linutop can make a rather neat mini server which you can use to host virtually any application base on the LAMP stack (Linux/Apache/MySQL/PHP). The problem is that turning Linutop (or any machine for that matter) into an application server involves setting up the required servers (e.g., Apache and MySQL), manually modifying configuration files, and tweaking application settings. Fortunately, the BitNami service provides a more straightforward way to install a number of LAMP-based applications on your machine. BitNami offers so-called stacks — a preconfigured bundle containing a specific application, all the required components, and a graphical installer. A list of the available BitNami stacks includes MediaWiki, WordPress, phpBB, Joomla, Drupal, DokuWiki, and other popular Web-based applications. Installing a BitNami stack is as easy as it gets. Fetch the BitNami stack you want and run the downloaded .bin installer in the terminal. For example, if you downloaded the Tracks pack, you can start its installer using the following command:

./bitnami-tracks-x.x-x-linux-installer.bin

The installer then guides you through the setup process. At the end, the installer generates an uninstall script which you can use to easily remove the stack when necessary.

BitNami

Once installed, you can start, stop, and restart the stack using the ctlscript.sh in the tracks-x.x-x directory, for example:

./ctlscript.sh start

./ctlscript.sh stop

./ctlscript.sh restart

You can access the running application by pointing your browser to http://localhost:8080/tracks/. Besides being easy to install and deploy, BitNami offers other advantages. Since each BitNami stack installs as a self-contained application, you can have multiple instances of the same stack installed on a single machine. The installed stack doesn’t affect other services running on the machine, so you can still run separate Apache or MySQL servers without interfering with the BitNami stack, provided they don’t attempt to run on the same ports.

Concise Linux Part 1: 7.5 Questions Asked and Answered

I’ve heard that Linux is for geeks. Is that true?

Not at all. It might have been the case a decade ago, but today you’ll find many beginner-friendly Linux distributions. They use graphical desktop environments like KDE, Gnome, or Xfce that don’t require any particular skills beyond point-and-click. In fact, there is even a book with that title.

Linux distributions, KDE, Gnome, Xfce? I’m confused!

OK, let’s start from the very beginning. Linux is an operating system that manages your hardware and allows you to perform basic operations using the bundled tools. The base system is too technical for most users, so on top of it often sits a so-called graphical desktop environment that shields you from the complexity of the underlying system. The most popular graphical desktop environments include KDE, Gnome, and Xfce. Installing the Linux system on your machine, then adding a desktop environment, and finally installing the applications you need sounds like a laborious and time consuming process. Fortunately, you can get everything you need in one neat package called a Linux distribution. A typical Linux distribution (or distro) comes with one or several graphical desktop environments, a user friendly-installer, and a collection of utilities that can help you to configure your system. Often a Linux distro uses a specific graphical desktop environment as its default. For example, Ubuntu prefers Gnome, while Mandriva favors KDE. Virtually every Linux distribution comes with configuration tools that can help you to set up your computer. Using them, you can tweak your desktop’s appearance, connect to a printer, configure a network connection, etc. Moreover, any distro worth its salt comes with an assortment of applications, so you can use your computer for pretty much any task — from browsing the Web to editing your photos — right out of the box.

Read the rest of this entry »