Karmic makes this easy with a single command:
sudo apt-get install lamp-server^
Note that the the last character is not an accident.
Now stick around since you'll have to enter a MySQL root password. Once all that's done, you'll probably also want to install PHP GD (the image library) so run:
sudo apt-get install php5-gd
Restart apache:
sudo /etc/init.d/apache2 restart
Now you should be all set up to start developing in /var/www.
Super cool bonus tip: Instead of phpMyAdmin, try Adminer along with this CSS mod (created by Brade, a Merge cohort of mine). Just put adminer.php and adminer.css in the same directory and you're golden. I like to put them in a /var/www/sql directory and rename adminer.php to index.php so pulling up http://localhost/sql in the browser fires it up.
Comments (Feed)