Ubuntu 9.04 LAMP, Apache PHP MySQL phpMyAdmin, Windows Fonts, PlayOnLinux

update seeings I’m getting so many hits for Ubuntu 9.04 LAMP, I’ll pull out the LAMP-specific bits. Hopefully I don’t miss anything out. If you’re after windows fonts etc, you probably want the original version of this post – so scroll down a bit.

# Install Apache2
sudo apt-get install apache2
sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 stop
# Install PHP5 and the PHP5-CLI
sudo apt-get install php5 libapache2-mod-php5 php5-cli
sudo /etc/init.d/apache2 restart
# Install MySQL
sudo apt-get install mysql-server
# ... and the php/apache mysql gubbins. Also phpMyAdmin.
sudo apt-get install php5-xdebug
sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
sudo /etc/init.d/apache2 restart
# Install rewrite module
sudo a2enmod rewrite
sudo /etc/init.d/apache2 restart

# now configure apache2 - I use a domains directory
mkdir ~/domains

# shove your vhosts in a config file. I'll just edit default;
sudo gedit /etc/apache2/sites-available/default

# Here's a typical vhost;

ServerAdmin webmaster@localhost
ServerName myproject.local

DocumentRoot /home/craig/domains/myproject/public
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all

# Restart apache - shouldn't get any errors
sudo /etc/init.d/apache2 restart

# Finally install subversion
sudo apt-get install subversion
# And the 'open terminal' right-click option
sudo aptitude install nautilus-open-terminal

Okay so that’s a LAMP setup for you. Now back to the original purpose of this post – what I do when I’m setting up a new linux box, including windows fonts, etc;

Right I’m getting fed up of having to do this and getting half way through doing something then realising I forgot something or made a silly little mistake..!

This is what I do to get a nice setup;


#First do sys update (system->admin->update manager), reboot, select required drivers, then install compizconfig from add/remove

sudo apt-get install apache2
sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 stop
sudo apt-get install php5 libapache2-mod-php5 php5-cli
sudo /etc/init.d/apache2 restart
sudo apt-get install mysql-server
sudo apt-get install php5-xdebug
sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
sudo /etc/init.d/apache2 restart
sudo a2enmod rewrite
sudo /etc/init.d/apache2 restart

sudo apt-get install msttcorefonts
cd /media/disk/windows/Fonts
sudo cp *.ttr *.TTF /usr/share/fonts/truetype/msttcorefonts/

sudo wget http://deb.playonlinux.com/playonlinux_jaunty.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

mkdir ~/domains

sudo gedit /etc/apache2/sites-available/default

a typical vhost;

ServerAdmin webmaster@localhost
ServerName myproject.local

DocumentRoot /home/craig/domains/myproject/public
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all

sudo apt-get install subversion

sudo aptitude install nautilus-open-terminal

sudo apt-get install openjdk-6-jre

Trackback URL

One Comment on "Ubuntu 9.04 LAMP, Apache PHP MySQL phpMyAdmin, Windows Fonts, PlayOnLinux"

Trackbacks

  1. [...] get yourself an Ubuntu machine set up. You don’t need much in the way of disk space etc. My ...

Hi Stranger, leave a comment:

ALLOWED XHTML TAGS:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Subscribe to Comments