DISQUS

Zaphu Forum: Ubuntu LAMP Server - Setup Guide with Desktop GUI

  • John · 2 years ago
    Well done, I'm impressed.
  • Magnus · 2 years ago
    Thank you !!

    I'm new to Linux and Ubuntu and this is the only guide I've found that actually works.

    Cheers :-)
  • גרעין · 1 year ago
    This really is a good guide. One can see it helped alot of people.
    Take on with the good job!
  • Sam · 2 years ago
    @Magnus - Thanks for the vote of confidence. As always, let me know if something is missing that might improve the post.
  • Peter · 2 years ago
    Thank you Sam!

    Just what I've been looking for. :)
    Keep up the good work!

    Sincerely,
    Peter
  • Karl · 2 years ago
    I am new to Ubuntu and this guide made it really easy to get started.

    Thank you very much!
  • Sam · 2 years ago
    @Peter, @Karl - I am glad I could help. You might be interested in this other post that gives you some pointers on setting up your server to wake-on-LAN. This feature is a really convenient addition to my LAMP server.
  • Steven · 2 years ago
    Really great guide, concise and clear, did exactly what I needed done.

    One suggestion I would just leave out the IP stuff at the beginning, a true linux noob like myself will just be scratching their head like a dumb monkey when vi editor pops up. Once we have the GUI up and running changing the IP to static is a snap from the desktop.

    Thanks much again.

    Steven
  • Sam · 2 years ago
    @Steven - Thanks, there is also a way to configure a static IP address during installation instead of accepting the default install options that use DHCP to configure your internet connection. When the install shell boots from the CD press f9 (Other Options) to specify additional install options. Add the following to the end of the option string: netcfg/disable_dhcp=true Now the install script will prompt you for your IP address etc. during installation.
  • Gary · 2 years ago
    Thank-you kindly, nicely done, straight forward and bitesized for the newly initiated.

    Cheers,

    Gary
  • raymond · 2 years ago
    sorry but i'm really a newbie here at LINUX UBUNTU how can i install the GUI of UBUNTU because i have tried the codes above but the error is it could'nt find ubuntu-desktop package, and how can i connect in internet using dial-up?
    Tnx for advance...
  • Sam · 2 years ago
    @raymond - If you are using dial-up, I would recommend installing the desktop version of Ubuntu first (instead of the server version used here) and using the GUI to configure your dial-up preferences (see here). After this is complete, you can use the aptitude package management software to install the LAMP server components (see here).
  • Graeme · 2 years ago
    Concise, easy to follow, really good stuff, and much appreciated. Cheers
  • MKS4FUN · 2 years ago
    MANY thanks! This is FANTASTIC!!!!!


    HOWEVER: There is ONE issue that stopped me cold. It kept asking to put CD in and even though it WAS in, would keep requesting. Infinite loop!

    I had to go in and comment the CDROM line out: Problem solved!

    I downloaded all the files through the NET and was sure glad I have a fast connection!

    I've wanted to do this for a LONG time! Again, THANKS!
  • MKS4FUN · 2 years ago
    Opps! Here is the 'fix' I forgot to post:

    You have to comment out the cdrom reference in /etc/apt/sources.list

    Top of the file, just under the one that is already commented out. Add the # symbol like above.

    Good Luck!
  • Tom · 2 years ago
    Everybody told me I was too old to learn something as complex as Unix. OK, I'm 84 but I'm a stubborn oldtimer .. and the more they told me I couldn't do it the more determined I became.
    I could not have done it without your excellent guide - it made everything clear and I had no trouble getting a final 'thumbs up'! Thanks for making me feel young again!
  • Supertunisian · 2 years ago
    THANKS A LOT

    any other way to install ubuntu-sesktop for an ubuntu server using the dpkg

    THANKS AGAIN
  • Sam · 2 years ago
    @Supertunisian - The aptitude package management software that is integrated with Ubuntu is actually an implementation of the Debian package management system (dpkg).
  • Macin · 2 years ago
    I cann't change the password for the root.

    marcin@webserv:~$ sudo passwd root
    marcin is not in the sudoers file. This incident will be reported.
    marcin@webserv:~$ sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
  • Sam · 2 years ago
    @Macin - You need to be sure your account has administrator privileges. If marcin is a limited user the sudo command will not work. The account created during installation is by default granted administrative privileges.
  • St0iK · 2 years ago
    Thanx for this guide ,i was looking for something like that and i am also a newbie and excuse me if my question seem to you stupid :P

    if i dont set a static ip and i have created a site that i want to show to my friends...how can they access it??? by giving them my IP address at that time???


    thank u for ur time
  • Sam · 2 years ago
    @Stoik - Even if you have a dynamic IP address, you should be able to view your site if you enter the currently assigned address in your browser. Of course, if you are hosting on a local area network, only machines that are also on that network will be able to view your site. Machines on the wide area network will not be able to view your site unless you tunnel through your router. This can be quite difficult to do.
  • Ian Warner-O'Connor · 1 year ago
    Hi -

    My mom just got me a Dell computer with Ubuntu at the start of the school year. It worked fine until I upgraded to Ubantu 7.10 Gusty Gibbon. The GNOME didn't work - the Dell help desk was ok. Then the sound wouldn't work. Agin the dell help desk talked me through the steps to get the sound working.
    Now I can't record sounds, and the USB port won't recognize any external hard drives. It still recognizes printers, but not external thumb drives or or hard drives.
    Dell reccommends re-installing 7.4 Fiesty Fawn, but says I will lose all my work.

    How can I do a nondestructive re-install of 7.4? Or how can I fix the recording drivers and the USB port?

    Thanks -

    Ian Warner-O'Connor
  • Sam · 1 year ago
    @Ian Warner-O'Conner - You seem to be having a lot of problems. I would recommend trying to fix the flaws with 7.10 before reverting to 7.04. Try this page for some help with 7.10 on Dells. Also take a look at this page, which is Dell's Ubuntu 7.10 upgrade blog. I don't think I can be of much additional help on this problem. Good luck.
  • Tim Scale · 1 year ago
    Thanks for the guide!! This has set me on the path to be able to learn how to use this system - else I would be stuck on the command prompt still ....
  • Sam · 1 year ago
    @Tim Scale - Thanks for the support
  • Zach · 1 year ago
    Great post - a huge help. Can't wait to read your "website setup" post!
  • MarcoVincenzo · 1 year ago
    Thanks for the guide. It took a few tries, but everything appears to be working OK now.

    FWIW, when I ran through the process the first several times I was using an X2 4400+ on a DFI Expert board and an Nvidia 7800 GT. Everything worked perfectly right up until I went to launch the desktop--I'd get no video, scrambled video, or some other garbage. I swapped out the X2 and used an E6400 on an Asus P5B-D with the Nvidia 7800 GT and got basically the same result. I then swapped out the 7800 GT with an ATI 1950XT and when I launched the GUI it worked.

    I have no idea why it didn't like the previous hardware, and for all I know it would have worked fine with the X2 4400+ and the ATI video card (I do have another 1950XT so I'm going to set it up with the X2 4400+ in another machine; but not today!). I did put the 7800 into a Windows machine and it worked fine, so....
  • Vijay · 1 year ago
    Sam,

    Your clear and precise instructions to get both the worlds on Ubuntu (Desktop & Server), helped me a lot, when I am scratching my head.

    Keep-up good work!

    Thanks Again - Vijay
  • Mike · 1 year ago
    Sam,

    Great guide!!! I tried a few others (which didnt work) before I stumbled on to yours, which worked great!

    I'm a bit of a noob when it comes to linux! So if you dont mind I've got one question... I cant seem to get the static IP set up. What address do I put in the nameserver line?

    Thanks!
  • Sam · 1 year ago
    @Mike,Vijay - Thanks for the support.
    @Mike - The nameserver IP address is the address of your DNS (domain name system) server. If your ISP uses DHCP then you should be able to view this address on your router's configuration page. If not, then check with your ISP for this address. Subscribe to our RSS feed and visit again soon.
  • Micheal · 1 year ago
    I just want to say thank you for a well defined guide. I have passed this to many a friends. Seriously thanks.
  • B-man · 1 year ago
    WOW! just WOW!

    this has been a huge help!

    I have only had one problem: when I go to run the GUI i get a BASH error talking about how DMX dosent exist (and its true its not in the folder it should be) what can i do to reinstall the aptitude package corectly???

    Thanks again

    Ben
  • shri · 1 year ago
    thank u... It would be more helpful if there comes up another such guide for fedora LAMP... plz post that too
  • Sam · 1 year ago
    @B-man - I am not familiar with DMX. Google indicates that it is a package to control lighting devices. Do you have some PCI card that is used for such a function?
  • Blair · 1 year ago
    This is brilliantly done!
    Thank you so much for your help.
  • MjrNut · 1 year ago
    Hello,

    I'd like to first say that this tutorial is very helpful. To begin with I followed the tutorial for Ubuntu 7.1 Desktop version to be installed on Virtual PC. However, I wanted to swap to the Server version for the pure reason that the LAMP install would be simpler relative to the Desktop. Thus, also placing this onto Virtual PC 2007 (host is XP pro), I bypassed Step 1 and 2 for the moment and got to Step 3. Everything went fine (as far as I understand) until launching the GUI. Upon startup of the GUI, the resolution is scrambled, similar to what happened with the Desktop version. With the Desktop version, this issue is resolved by hitting F4 to select the lowest resolution. I attempted the same action with the Server to no avail. Does anyone have some suggestions? And please keep in my mind that I used these great tutorials as my only knowledge base. :)

    Thanks in advance!
  • MjrNut · 1 year ago
    Update

    So far I have resolved the GUI resolution problem with the following:

    edited the xorg.conf file
    DefaultDepth from "24" to "16"

    This did the trick and made boot up to the Desktop Gui in the Server edition successful.
  • Sam · 1 year ago
    @MjrNut - Thanks for posting the information on the GUI resolution fix.
    @Blair - Thanks for the support.
  • JessMagz · 1 year ago
    Hi everyone!

    I already installed Ubuntu 7.10 Desktop Edition and now I want to install LAMP. How? Is there a straightforward way to install LAMP so that I will no longer install Apache, MySQL and PHP one by one? Please help.... Thank you very much.

    Regards,
    Jess
  • Sam · 1 year ago
    @JessMagz - If you did not install Apache, MySQL, and PHP during the Ubuntu installation then the easiest thing to do is to install these packages piecewise following a tutorial like this one. Good luck.
  • Dave · 1 year ago
    Top quality !

    I'm new to LINE-UX and really needed the GUI to get me into it. I've set it up so I can test my php apps. This guide was a blessing.
  • Sheshu · 1 year ago
    Hi,

    i have commented that cd from sources, it works. Thanks for posting that :-)

    Regards,
    Sheshu.
  • geoff · 1 year ago
    I'm puzzled by the IP numbers.
    In your you example:

    address 192.168.1.10
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255
    gateway 192.168.1.1

    The details I have are described as

    IP Address range
    DHCP Address range
    Subnet Mask
    Gateway/Router IP Address
    DNS Server addresses (2)

    Wondering what I use for broadcast and network ?

    regards,

    geoff
  • Sam · 1 year ago
    @geoff - If you are configuring a static IP address on your machine, just delete everything in the /etc/network/interfaces file and replace it as per what is in this post.
  • geoff · 1 year ago
    Sam, Thanks for that. I'm now able to create a 'hello world' html program from the server and view on a connected machine, However I'm trying to run php and have followed the procedure in your follow up post and have set up a cgi-bin directory. Im getting errors, in the apache log file it says exec format error : exec of '/home/geoff/public_html/cgi-bin/index.php' failed.
    I've set up:
    AddHandler cgi-script cgi pl php
    which I guess i need? Is this the way to get php scripts to run?
    I also tried putting my hello world html file in the cgi-bin directory and I get an error when trying to read it from another machine. I've tried to chmod the files in case thats the problem. Checked everything in your post several times. Still no php. I think my php script is OK.

    regards,

    geoff
  • Dave · 1 year ago
    Way to go Tom, keep it up and remember.... Have Fun. :-)
  • geoff · 1 year ago
    I've now loaded 8.04 Desktop. I then installed php and apache2, following your guidelines.
    All now works!
    Next step, how do I get the world on the other side of my router to run my php pages?

    geoff
  • Sam · 1 year ago
    @geoff - I will check my post instructions and see if I can get a PHP script on Hardy Heron (8.04) to run. I will get back to you.
  • zedd · 1 year ago
    hi! thanks for the step by step tutorial, im new to linux and your site help me a lot!

    keep up the good work
  • Rodd · 1 year ago
    What a wonderful website! Your instructions were very easy to follow and I am falling more and more in love with Linux (Ubuntu) by the hour. I can't wait to see what else I can do!
  • Sam · 1 year ago
    @zedd, Rod - Thanks for the support. I just posted some new Ubuntu guides. Use the search box and keyword "Ubuntu Guide" to find them or go to our Ubuntu category. Subscribe to our RSS feed too.
  • Alan Barber · 1 year ago
    Huge thanks Sam - this was perfect and worked without any errors at all. My only problem being a newbie to Linux was understanding HOW to use VI. Thankfully Google didn't let me down! Great post.

    Regards,

    Alan
  • Sean · 1 year ago
    I too am a linux newbie and found this useful. However, it may be useful to describe how long each installation step may take. Installing the gui on my side took quit a while.
  • Eli · 1 year ago
    I have installed Ubuntu 8.04 server and am attempting to install the ubuntu-desktop gui. First, when I try to do an update: sudo aptitude update, I get an error message:
    Could not resolve 'us.archive.ubuntu.com'. When I type this url in a browser, it resolves ok.

    When I try to sudo aptitude install ubuntu-desktop, I get the error msg: cannot find ubuntu-desktop. Any suggestions?
  • Sam · 1 year ago
    @Eli - The problem could be several things. One possibility is that the ubuntu repository was simply not responsive when you made the request for files. If this is the case it should work eventually. Another possibility is that you don't have your sources.list file set up correctly. Open /etc/apt/sources.list and make sure that the ubuntu repositories (Main and Universe) are present and uncommented. Do a Google search to learn more about Ubuntu repositories and the sources.list file. I hope this helps.
  • Eric · 1 year ago
    Your instructions were exactly what I needed to get in the "front door" and start learning the system. It's amazing how many faqs, forums, people and pages -- many of which seemed very promising at first -- I had to sift through before finding this one. Seriously - there's a secret order of conspiring techies on the web, and while they pretend to offer simple "getting started" advice to potential new users, they're actual ulterior motive is to obfuscate the solution while frustrating, antagonizing and discouraging "outsiders". Fortuntately that's only a joke, but unfortunately it is also the truth. Thanks for not being one of them.
    Eric
  • Sam · 1 year ago
    @Eric - Thanks for the vote of confidence.
  • Stuart · 1 year ago
    Thanks for an amazing simple to use guide.

    I am however having issues with DHCP auto-configuring. It doesn't detect anything on either of my ethernet ports on two different Cat5 Cables (I'm going to try some Cat6 ones on Monday). When I input a static IP in, I can't ping anything. Any suggestions?
    Regards,

    Stuart
  • Stuart · 1 year ago
    *******************FOLLOW UP***********************

    After a bit of tinkering managed to get it to ping any IP address - only problem is it still won't update as it can't resolve the hostname. It's a DNS issue but I'm not sure how to deal with it. Suggestions??
  • han · 1 year ago
    Thank you !!
  • muba4000 · 1 year ago
    Thanks it worked.
    But whats the difference between ubuntu desktop and server after doing all this
    thanks
  • John Isah · 1 year ago
    thanks your writeup was quite useful.
  • Zigian · 1 year ago
    Great guide. Got everything up and running just fine and I'm a total Linux noob. This was my first install of Ubuntu in any form. Your guide was very easy to follow. The only problem I had was with the Vi editor, grr that thing is confusing if you don't know how to use it. Other than that, no problems. Thanks!
  • carlos · 1 year ago
    excellent tutorial...thanks a bunch. this is exactlly what i was looking for
  • Erik · 1 year ago
    I am new to Ubuntu and still wet behind the ears when it comes to the Ubuntu server and your post is clear, explanatory and precise. Thank you for what you do.
  • dstevens · 1 year ago
    Great guide.
    I have attempted to install Linux with little success more times than I can remember.

    After using your tutorial, I can 'see' it from other machines on my home network, view web pages on the Apache2 web server and use phpmyadmin. Cgi-bin is installed & working too.

    I am running 7.04 Feisty Fawn on a rig cobbled together from an old Intel AL440LX board with a PoweLeap upgrade processor and 384M RAM. It is a little slow, but not too bad.
  • rActive · 1 year ago
    Thanks for the clear concise guide
  • Teymoor · 9 months ago
    Please help me.
    I have installed buntu server 8.10 on my pc and reboot it. But the screen not readeable and it contain green line and it'a text not clear.
  • adam · 9 months ago
    Sam,
    Thanks so much for your writing. Its clear and concise and doesn't leave me guessing about what i just read or feeling dumb for not following someone else' meanderings.
  • Badruddin Pitter · 8 months ago
    This Article was very helpful for a newbee like me to install UBUNTU server along with Desktop GUI capability. I had to research little bit on SUDO commands like for saving a file (:wq) which i didn't knew.

    I vote 5 Stars to this article. I am surely going to go through you next artcile to setup a website.

    Thank You So Much.
  • newbie · 7 months ago
    thank you so much for putting this together :)
  • Kevin · 6 months ago
    "Change dhcp to static and add the lines shown below. Of course you need to use your IP address, netmask, and gateway instead of mine."

    How do I find those values, and what do they all mean?
  • Chip Wilder · 4 months ago
    Followed this great guide to install the 9.04 64 desktop GUI on the 9.04 64 Server edition. I am a Linux novice and having trouble getting the nvidia driver to install on the server edition. I did a fresh install of the desktop version without the server and was able to install the nvidia driver without any difficulty. I suspect the problem is with the server "multiple" monitor/terminal ports but can not get it to work properly. Any suggestions would be helpful.