Ubuntu 8.04 (Hardy Heron) LAMP Server Setup
The LAMP option means you don't have to install and integrate each of the four separate LAMP components, a process which can take hours and requires someone who is skilled in the installation and configuration of the individual applications. Instead, you get increased security, reduced time-to-install, and reduced risk of misconfiguration, all of which results in a lower cost of ownership.New pre-configured installation options have been added to the Ubuntu Server. Mail Server, File Server, Print Server, and Database Server options join existing LAMP and DNS options for pre-configured installations, easing the deployment of common server configurations.
Ubuntu LAMP server Install the following Versions
Ubuntu Hardy Heron 8.04
First you need to download server version of Ubuntu version from here after that you create a CD and start booting with the CD Once it starts booting you should see the following screen in this you need to select your language and press enter
Now you need to select "Install Ubuntu Server" and press enter
Ubuntu Server CD is loading in Progress
Choose you language and press enter you can see we have selected english in the follwoing screen
Choose your location and press enter you can see we have have selected United Kingdom in the following screen
If you want to try to have your keyboard layout detected by pressing a series of keys you need to select yes option and if you don't want that and you want to choose from a list click no in this example we have selected no and press enter
Select Origin of keyboard and press enter
Select keyboard layout and press enter
Detecting hardware to find CD-ROM Drivers in progress
Scanning CD-ROM in Progress
Loading additional components progress bar
Detecting Network hardware is in progress
Configures the network with DHCP if there is a DHCP server in the network
Enter the Hostname of the system so in this example i enter here as ubuntulamp
Startingup the partitioner in progress
you have to partition your hard disk in this example i have selected use entire disk option if you want to edit manually you can choose manual and press enter
Warning message about data lost on your hard disk
Creating partitions in your hard disk is in progress
Write the changes to disk option here you need to select yes and press enter
Creating ext3 filesystem in progress
Installing base system is in progress
You need enter the Full name of the user you want to create for your server in this example i have created administrator user select continue and press enter
username for your account in this i have entered test select continue and press enter
Entered the password for test user select continue and press enter
Confirm the password for test user select continue and press enter
Configuring the package manager select continue and press enter
Configuring package mirror this will be related to your country option
Now it will start Installing software and here you need to select the server options here i have selected as LAMP and OpenSSH server for our LAMP server installation
At the time of software installation it will prompt for mysql server root password enter root password of your choice and select continue
Confirm mysql server root password and select continue
Software installation is in progress
Installing GRUB Boot loader in progress
Finishing installation in Progress
Installation complete message here you need to remove your CD select continue and press enter it will reboot your server
After rebooting you can see the following screen prompt for username
This will complete the Ubuntu LAMP Server Installation and your server is ready for installing applications which supports apache,mysql and php.
Configuring Static ip address in Ubuntu server
Ubuntu installer has configured our system to get its network settings via DHCP, Now we will change that to a static IP address for this you need to edit Edit /etc/network/interfaces and enter your ip address details (in this example setup I will use the IP address 172.19.0.10):
sudo vi /etc/network/interfaces
and enter the following save the file and exit
# The primary network interface
iface eth0 inet static
Now you need to restart your network services using the following command
sudo /etc/init.d/networking restart
You need to setup manually DNS servers in resolv.conf file when you are not using DHCP.
sudo vi /etc/resolv.conf
You need to add look something like this
GUI Installation for Ubuntu LAMP Server
If you are a new user and not familiar with command prompt you can install GUI for your ubuntu LAMP server for this you need to make sure you have enabled Universe and multiverse repositories in /etc/apt/sources.list file once you have enable you need to use the following command to install GUI
sudo apt-get update
sudo apt-get install ubuntu-desktop
The above command will install GNOME desktop if you want to install KDE desktop use the following command
sudo apt-get install kubuntu-desktop
Installing Webmin in Ubuntu Hardy Heron
Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console or remotely.
You can install webmin for your server web interface to configure apache,mysql servers.Now we will see how to install webmin in Ubuntu 8.04
Preparing your system
First you need to install the following packages
sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
Now download the latest webmin using the following command
Now we have webmin_1.420_all.deb package install this package using the following command
sudo dpkg -i webmin_1.420_all.deb
This will complete the installation.
Ubuntu in particular don't allow logins by the root user by default. However, the user created at system installation time can use sudo to switch to root. Webmin will allow any user who has this sudo capability to login with full root privileges.
Now you need to open your web browser and enter the following
Now you should see similar to the following Screen
After login if you want to configure Apache,Mysql server you need to click on Servers on your lefthand side you should many servers are ready to configure
This is very Easy to configure most of the servers and Enjoy your new Ubuntu Hardy Heron LAMP Server.
Is there a link for more information on installing or setting up a web server for LAMP web development? I like to be able to do web development using Linux server, but don’t know if there are more things to install after installing Ubuntu Hardy Heron.
thanks, works fine for me.
Great tutorial thank you for taking the time to help all of us. I am a newbie, I am thinking of installing the Webmin project to help out on the command line. How do I get to my browser from the command prompt or how do I know that I have a brower I haven’t seen one? Please tell me how to install mozilla firefox from the command prompt on the server.
Thanks again you’re the best.
Thanks, but im doing all of this inside of VirtualBox, is there any problems with doing it this way?
First, thank you so much for the tutorial. I am quite a noob and did quite well with the installation. I am trying to access the ubuntu server via putty or webmin from my main windows environment but can’t seem to. The only way I could see webmin was to type https://localhost:10000/ in the address bar within the VirtualBox / Ubuntu environment. I tried ipconfig in the commandline within VirtualBox and placing the ip address in the main windows environment browser, but couldn’t get it to work. (btw, I tried what was next to “inet addr:xy.x.y.xy” in both etho and lo) Putty would also need an ip address and port. I just can’t seem to access outside of the virtualbox.
I want to have my server running in VirtualBox minimized while I develop in Windows; I would like to learn ssh with putty or similar. Is this possible? If so, can someone explain what I am doing incorrectly? Thank you. 🙂
ubuntu, loaded on VirtualBox (also loaded the Linux GUI desktop)
webmin & putty
Awesome site, have used many times without any hitches. Well except one, perl is not spelt pearl… lol
For some strange reason im not able to type in numbers in the ip config file (/etc/network/interfaces) someone know why?
Thanks in advance,
In reference to post 35 and all other virtualbox people
I had the same problem but i figured out that you can not be connected to another network.
In other words if you are connected to the internet you can’t connect to the virtual machine (unless maybe if you used bridging and no NAT…hummm… I will report on this soon.)
I wanna get both option 1 and option 2 for LAMP server
so…how can I get setting..
bridging didn’t work…
Well I am quite a noob. I installed ubuntu 7.04 fiesty fawn from live cd and did everything right and didn’t face any kind of problem. I upgraded my ubuntu to 7.10 and then to 8.04 online. But after upgrading to 8.04 I wasn’t able to connect to internet, really don’t know why. When I tried to configure it, it showed that ethernet driver not supported.Also my sound card was not detected. When I tried to install my driver using my motherboard cd as we do in xp, it said the installation should be done in root.I didn’t know what to do. Help needed, fast. Please!!!!
and then your password.
now your root.
P.S. be sure to use
when your done to logout of root.
I installed Ubuntu 8.10 Server with LAMP, Open SSH and SAMBA. Used my router to setup a Static IP address for the MAC address on my Ubuntu server, so I didn’t have to mess with editing any config files on the server as it is still setup as DHCP. Logged into my Ubuntu server using putty from my winblows box and followed this guide Option 2 to install webmin. But I connected to
first to see what the latest version of webmin was and then updated the above wget and sudo dpkg lines to reflect the latest version (1.441). Everything went beautifully on the first attempt.
I did have to use https://serverip:10000 instead of my server name. I love it. Not that I’m lazy but I’m glad to have a more obvious GUI to setup my linux box instead of editing all of the config files. Really great.
Now, off to find a guide as good as this one for setting up the web pages for apache. My single goal for this setup is to learn how to setup a membership based website using MySQL and PHP. Hopefully the built in LAMP server will run Zend optimization, else I’ll be trying to figure out how to get Zend Optimizer installed.
oops shouldn’t have tried to get all fancy with the XHTML tags in my message above, maybe the moderator will fix it for me 😉
I got the install done and added a user. I setup outlook on an xp machine to use the user on the Hardy Heron server. When I try to add the user, the test email goes through just fine, but I outlook fails to logon to the incoming server. I can go into webmin and see that the test email got there. What do I have to do to logon from outlook. I have my mail.brocomp.com pointing to my public ip and the router is setup to point to the hardy server for mail. I wouldn’t be seeing the emails in webmin if it wasn’t right, I guess. I am an abolute beginner to linux. Thanks in advance.
Error – Bad Request
This web server is running in SSL mode. Try the URL https://localhost:10000/ instead.
Getting this error.
Great tutorial, I have read many like it, but all fail to go that one step further. How to setup FTP so you can upload and download website files. something like Pureftp that can access the folder where the website files reside so I can connect dreamweaver to it. My server is on my local network and is just for testing and learning but no matter how many times and in how many different ways I re-install from tutorials, I cannot connect to it using ftp. (p.s. this is not a router or firewall thing)
Install Ubuntu in my desk
What a great tutorial, thanks for posting this. Ubuntu server is amazing, it is running on a 533 Mhz PC with 384 MB of RAM, using 48 MB of memory normally. Webmin is a great front end. This is a concise and light install that EVERYONE should be using!!
request application: html
and program developer
how can I skip the configure apt since I am not connected to any internet, this happens in ubuntu hardy 8.04.3-server but not in 8.10 but I want the lts version in my server but now I am stuck in that step which I really don’t need this time.