ChrisCodes.com

Install Ubuntu, Apache 2, PHP 5.1, and MySQL 5.0 on iMac G3

This Server!As posted earlier I've setup a new server (at least temporarily) for this site. It's currently running on a 400Mhz iMac G3 with 384MB RAM.
I opted for a base install of the latest Kubuntu (yes PPC).
Here's a quick rundown of what I did to get it running.

I already had an older copy of Kubuntu Dapper (flight 5) so I just used that to install.
Just download, burn, and insert into the slot on the iMac. Reboot the machine, and hold the C key to boot from CD.

Once at the boot: prompt, press the tab key to see all install options. I just wanted a quick webserver, so I typed:

server

The kernel booted up (after a red, then white flash) and I was at the install.
There's really nothing to it, I set the language, Network was detected and configured automatically, setup a user, etc.
I wiped the entire drive since this is the only OS on it. I tested 'Guided Partitioning' and it created the necessary Apple Boot, System, and Swap partitions. It even configured YaBoot

Once rebooted into the new system, I edited my sources list to get at the universe packages.
Then, since I used an older development stage install CD, I ran:

sudo apt-get update && sudo apt-get dist-upgrade

That brought down the latest Dapper Drake packages. I'm running it on some other machines so I know it's pretty stable. Now lets get down to business, I'm going to install Apache 2, PHP 5.1, and MySQL 5.0

sudo apt-get install mysql-server-5.0 php5 php5-curl php5-mysql

That should grab

apache2-mpm-prefork
and
libapache2-mod-php5

Now just tighten up the MySQL users and security, and edit your Apache config to your liking.

Debian, and therefore Ubuntu, install apache config files in /etc/apache, while apache2 files are in /etc/apache2
Virtaul host config files can be created and placed in

/etc/apache2/sites-available

To enable it run

sudo a2ensite site

Where site is the name of the file you created in /etc/apache2/sites-available

Similarly Apache modules can be enabled by running

sudo a2enmod module

Where module is the name of the module in /etc/apache2/mods-available

Chris keyed this in on: 2006-04-30
Filed in: Apache, Apple, Database, Kubuntu, Linux, MySQL, PHP, PPC Linux, Webserver

Feed Icon

Copyright © 2008 Chris Martin