In one of my earlier articles I've described how to easily manage LAMP name based virtual hosts using bash script that simplifies virtual hosts management on a Debian based Linux operating systems. While I was coding the script in question, I have assumed that most people develop from default document root /var/www and using Apache's mod_php5. In this article I'll show you how to setup your LAMP environment to develop in your home directory using another Apache module suPHP.
Continue readingTag Archives: Apache
Fix "Could not reliably determine the server's fully qualified domain name" when starting Apache server on Ubuntu
Using Apache 2 development environment on your Ubuntu machine most likely involves looking at "Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName" message each time your machine boots. Here's how to make this irritating message disappear when starting Apache 2 server by specifying ServerName inside Apache 2 configuration files.
Continue readingDebug Apache mod_rewrite by enabling logging feature
Mod_rewrite is Apache web server module that enables you to do behind scenes URL rewrite on your Apache powered web site. Using mod_rewrite you can make your site URL's user friendly and hide your site inner workings to increase security. Writing mod_rewrite rules requires some effort to master regular expressions and somewhat hairy mod_rewrite syntax. The whole process is much easier when you have insight to rewrite engine. In this article I'll show you how to debug Apache mod_rewrite by enabling logging feature while creating your rewrite rules.
Continue readingConfigure MySQL and Apache not to start at boot on Ubuntu Linux
I often do my web development on the move using my laptop. Because of that I must run Apache with PHP and MySQL servers on both my desktop and my laptop PC. You can probably guess that this doesn't help to conserve my laptop battery so I've configured my laptop not to start MySQL and Apache automatically at boot. Instead I start those services manually when I plan to do some coding. In this article I'll show you how to configure your Ubuntu based PC to do the same.
Continue readingEnable userdir Apache module on Ubuntu Linux and other Debian based distributions
LAMP development in your home directory with suPHP module
In this article I will show you how to do the same thing in another way by enabling Apache module called userdir on Debian based distributions like Ubuntu. The official definition of userdir is that "this module allows user-specific directories to be accessed using the http://example.com/~user/ syntax". So lets get started...
Continue reading