Tag Archives: Ubuntu

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

Browser testing with cloned virtual machines

I’ve tried browser testing seven ways to Sunday and it has always proven to be the biggest pain in the ass. Until recently, I had a separate computer running Windows XP (bought and paid for), which in turn ran two or three “Microsoft Windows Compatibility Images” (Windows virtual machines that Microsoft distributes free for web [...]

Posted in Musings | Also tagged | 1 Comment

Great new Gedit plugin find: Gedit File Search

Its the only way This saves me a ton of time when trying to find one teeny-tiny piece of code in a mountain of files. There are several similar plugins but this one struck me as the simplest and best. It searches all the files under a certain directory for a string you enter. You [...]

Posted in Gedit | Also tagged | Leave a comment

Ubuntu Anecdote

So the other day my boss brought over a computer for me to fix. Turns out he never partitioned this new hard drive he had installed. I fixed it but we didn’t have a copy of Windows around, so I went ahead and installed Ubuntu 9.10 on it. After years of subtle lobbying I’m switching [...]

Posted in Ubuntu | Tagged | Leave a comment

Ubuntu Lucid Lynx is coming!

You can get the beta right now; I’ve played with it and it’s completely sweet. There’s some really bold design choices they’ve made with this version (window controls on the left!?) that I’m excited to explore. Ubuntu is Important You know, along with Ubuntu, I use Windows XP, Windows Vista, and Mac OSX every day. [...]

Posted in Ubuntu | 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

Use ‘service’ to start, stop and restart Apache in Ubuntu Karmic

The service service_name command command can be used to start, stop, or restart anything in your /etc/init.d directory. From the command line, use it like this: $ sudo service apache2 start $ sudo service apache2 stop $ sudo service apache2 restart

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