Creating a LAMP server with Ubuntu

Creating a LAMP server with Ubuntu

First off, I hate using the sudo command, so let’s become root

#sudo passwd root
enter your passwd
enter root passwd
enter root passwd

#su – root

Edit the apt-get resources file and remove the comments from
deb http://us.archive.ubuntu.com/ubuntu breezy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu breezy main restricted
deb http://us.archive.ubuntu.com/ubuntu breezy universe
deb-src http://us.archive.ubuntu.com/ubuntu breezy universe

root@ubuntu:~# cd /etc/apt
root@ubuntu:/etc/apt# vi sources.list

Now update apt-get

root@ubuntu:/etc/apt# apt-get update

now let’s rock
root@ubuntu:/etc/apt# apt-get install apache2
root@ubuntu:/etc/apt# apt-get install php4
root@ubuntu:/etc/apt# apt-get install libapache2-mod-php4
root@ubuntu:/etc/apt# apt-get install mysql-server-4.1
root@ubuntu:/etc/apt# apt-get install php4-mysql
root@ubuntu:~# mysqladmin create
root@ubuntu:~# /etc/init.d/apache2 restart

—john

Leave a Reply

Your email address will not be published. Required fields are marked *