Tag Archives: LAMP

Serve web pages from your home directory in Ubuntu 10.04

This guide assumes that you have lamp installed already (which is super easy in Ubuntu). Enable the userdir mod $ cd /etc/apache2/mods-enabled $ sudo ln -s ../mods-available/userdir.conf $ sudo ln -s ../mods-available/userdir.load Enable php parsing from a user directory $ sudo nano /etc/apache2/mods-available/php5.conf Comment out this code: <IfModule mod_userdir.c> <Directory /home/*/public_html> php_admin_value engine Off </Directory> [...]

Posted in Musings | Also tagged , | Leave a comment

The better way to install LAMP on Ubuntu Karmic 9.10

All this comes from here: https://help.ubuntu.com/community/ApacheMySQLPHP In the teminal: $ sudo tasksel install lamp-server $ sudo apt-get install phpmyadmin $ sudo gedit /etc/apache2/apache2.conf Add the following to the end of this file:  “Include /etc/phpmyadmin/apache.conf” Edit the /etc/php5/apache2/php.ini file and increase the memory_limit value. I used 64M, but that may be overkill.

Posted in Apache, Linux, Solutions, Ubuntu | Also tagged | Leave a comment

How to configure Apache virtual hosting in Ubuntu Karmic 9.10

Edited 3/8/11 Before you do anything, back up your original config files. I used to just create a copy of the files with the suffix “.bak” (sudo cp example.conf example.conf.bak), which works, but creates a lot of clutter. Now I use a great little utility called etckeeper which automatically places all files in /etc under [...]

Posted in Apache, Solutions, Ubuntu, Virtual Hosts | Also tagged , | 3 Comments

Use your user’s public_html directory to serve webpages

Using a public_html file in your home directory is much more convenient than /var/www for a local website development environment. The following commands create a file called public_html in your home directory and enable the UserDir module in Apache. From the command line, enter: $ mkdir ~/public_html $ cd /etc/apache2/mods-enabled $ sudo ln -s ../mods-available/userdir.conf [...]

Posted in Musings | Also tagged , | 3 Comments

Ubuntu Karmic LAMP stack installation

In the terminal, type: $ sudo apt-get install apache2 $ sudo apt-get install php5 libapache2-mod-php5 php5-mysql $ sudo apt-get install mysql-server $ sudo apt-get install phpmyadmin Just agree when it asks you stuff.

Posted in Solutions, Ubuntu | Also tagged | Leave a comment

My Current Local Developement Environment

Here’s my setup: 13″ Macbook 2-1 with 4GB Ram and 2.16mhz Dual Core processor 24″ Samsung HD flatscreen external monitor Ubuntu Jaunty Jackalope 9.04 Firefox 3.x with Firebug, YSLow, and CodeBurner XAMPP for PHP, MySQL, and Apache VirtualBox with 4 virtual machines: Windows XP with IE 6, 7,  and 8, plus OSX running Safari Gimp [...]

Posted in Developement Platform, Web Design | Also tagged | Leave a comment