Step By Step Ubuntu 11.04 (Natty) LAMP Server Setup
Sponsored Link
Ubuntu LAMP server Install the following Versions
Ubuntu 11.04 (Natty)
Apache 2.2.17
Mysql 5.1.54
PHP 5.3.5
First you need to download server version of Ubuntu version from here after that 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
Select your language and press enter
Select your location and press enter
If you want to try to have your keyboard layout detected by pressing a series of keys you need to select yes option.If you want to choose from a list click no
Select Origin of keyboard and press enter
Select keyboard layout and press enter
Detecting hardware to find CD-ROM Drivers in progress
Loading additional components in progress
Configures the network with DHCP if there is a DHCP server in your network
Enter your server Hostname
Starting up 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 do manually you can choose manual option and press enter.Make sure you have swap partition in place
Warning message about data lost on your hard disk
Write the changes to disk here you need to select yes and press enter
Creating ext4 file system in progress
Installing base system in progress
You need enter the Full name of the user you want to create for your server in this example i have created ubuntugeek user select continue and press enter
Enter your user account name here
Entered the password for ubuntugeek user select continue and press enter
Confirm password for ubuntugeek user
If you want to configure encrypted private directory select yes and press enter
Configuring the package manager select continue and press enter
Configuring package mirror this will be related to your country option
Select how do you want to configure automatic update press enter
Now it will start Installing software and here you need to select the server options here i have selected as openssh server and LAMP server installation.If you want to select each package separately select "Manual package selection" option
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 your server it will prompt for username and password once you logged in you should see similar to the following screen
This will complete the Ubuntu 11.04 (Natty) LAMP Server Installation and your server is ready for installing applications which supports apache,mysql and php.
One more new feature i really like was after logging in it shows you system stats like CPU,Memory,Disk,Swap,No.of processes,No.of users logged in and no.of security updates available
Configuring Static ip address in Ubuntu server
If you want to install vim editor use the following command
sudo apt-get install vim-full
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 (In vi, ESC, then ZZ to save and exit)
# The primary network interface
auto eth0
iface eth0 inet static
address 172.19.0.10
netmask 255.255.255.0
network 172.19.0.0
broadcast 172.19.0.255
gateway 172.19.0.1
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
search domain.com
nameserver xxx.xxx.xxx.xxx
nice 100% walk-through. i prefer debian for my text only servers. you did right by enabling ssh and installing the lamp stack. After those 2 installs you can put that server back in it’s closet and stop standing!
If you have already installed Ubuntu server without LAMP and want to install it easily, do the following:
sudo apt-get install tasksel;
sudo tasksel
It’ll show the same “software selection” options.
I’ve been a devoted Ubuntu User for the past 5 years. I am looking to setup my own personal home server.But I’d like something that works right out of the box. I decided to try Ubuntu 11.04 Server edition. I AM DISAPPOINTED! I expected something far more than what I get…. A blank screen!?! I was looking for soemthing with a graphic interface; or something more in the line of a control panel. Am I missing something here? I’m not real skilled at this; but I’ve not found adequate documentation to walk me through setting it up properly. It’s definitely not for a beginner! I’m going to check out other personal home server packages. Any suggestions?
You CAN use a GUI in Ubuntu 11.04 Server.
Please read the following How To…
http://www.ubuntugeek.com/how-to-install-gui-on-ubuntu-11-04-natty-server.html
Grtz,
dprod
Great page! just wondering about the last section ‘Configuring Static ip address in Ubuntu server’, is this necessary? I am trying to setup a home web server and It appears that my connection is static, I have restarted my computer and it appears to have the same ip address (I am new to setting up my own server fyi). Also, after I install the base system, I install the regular gnome GUI, then install webmin. My issue is that I cannot log into Webmin after I install it. I attempted this without ‘Configuring Static ip address in Ubuntu serve’. Not sure if that is the issue, but I like the idea of having a GUI, but when I don’t need to use the GUI, how do I turn it off?
Sorry for all the questions,
Alex
This Is A Great Tutorial Thanks For All The amazing info. people this is Ubuntu you’re talking about its Amazing if you don’t know how to use it learn cause it’s only getting better!!!
@Alex
> static IP – necessary for server (imo).
> Webmin – https://server {ip address}:10000 If you don’t know your IP: from the server console: ifconfig eth0, login Webmin with root and password. It looks tempting to set up network in Webmin – DON’T, just edit files as in this article.
>Turn Webmin off – Just log out and forget it until next time. The beauty of Webmin is that it does not ‘corrupt’ your system like a control panel would.
I am trying to change the resolution from Command line interface of my newly installed no rolled Ubuntu Server 11.04. How can I do ?
I have no Ubuntu Desktop installed yet.
I like this interface somehow.
Also tell me the process of configuring this server as DNS,HTTP,DHCP,FIle Server respectively.
I am a beginner in this Ubuntu as well as Linux world.
Help me to find out some Linux Fundamental study ebook.
Regards
Arindom S
Hi,
I am new to Linux. I need to ask if GUI is also available with ubuntu 11.04. And if yes, then how to use/configure it.
Thanks
Anuj
Hi,
I ran following command the install ubuntu-desktop;
sudo apt-get install ubuntu-desktop
but received following error;
Unable to locate package ubuntu-desktop.
I have installed ubuntu 11.04.
Please help me to resolve this issue.
Thanks
Anuj
i need graphic mode in server ubuntu 10.04
Hello,
The network configuration for a static IP it won’t probably work if you set it like that because that is deprecated.
You have to download in a different machine the ethtool package to manage the static IP configuration.
https://help.ubuntu.com/11.10/serverguide/C/network-configuration.html
I don’t know why Ubuntu has changed this, but my configuration it will only work using the Network Manager GUI, or either configuring through the ethtool on console..
I have found so little information about this on the internet.
Good luck
Hi,
I have setup ubuntu server 11.10 & have installed LAMP successfully.
I could see the it works page.
I have connected to the net using wifi & i get the ip address as 192.168.1.5
How do i set it to static ip so that i can access my website through internet?
Thanks,
Raghu.
I too am having trouble with this final step. Any help would be much appreciated!
I have setup SSH, FTP, and LAMP.
I can view my website from 192.168.1.105 but I do not know the ip address for the public to be able to view my website.
You get the external IP from your router. You also need to configure your router to allow traffic from the web to see the server, so you need to google both those issues, I am sure you will find handy tutorials based on your specific hardware router.
Hi , I am new to Ubuntu while googling i found out about wubi installer so i can install or uninstall ubuntu as application in window.but when i am trying to installing Ubuntu 10.04 LST it gives me error “INVALID ARGUMENT” for more information,see log file.I am using window XP Pro sp3 32 -bit.
Thanks
Vinesh
Thank you so much. this saved my day.
I’m with Joe!
This saved me a shit-tonne of time, as I didn’t have to re-install the server after having already set a static IP address and done loads of configuration!
Thanks again!
I any update pls send to me also… Cool..