Installing LAMP on Ubuntu 11.04 aka The Natty Narwhal

As new user with Linux using Ubuntu 11.04 I was in the "now what?" moment.
Then I recalled Khalid's presentation on LAMP.
Exploring with the Google I found the following tutorials.

http://tuxtweaks.com/2010/04/installing-lamp-on-ubuntu-10-04-lucid-lynx/
http://tuxtweaks.com/2010/01/how-to-uninstall-lamp-in-ubuntu-9-10-karmic-koala/
http://tuxtweaks.com/2009/07/how-to-configure-apache-linux/

There were tuts going back a few revs but I thought 10.04 tut was close enough to 11.04.
And! Success! I now have a Linux webserver running LAMP.

20130217 updated: some of the info in the txtweaks tuts is dated but still useful
see: https://help.ubuntu.com/community/ApacheMySQLPHP
and https://help.ubuntu.com/12.10/serverguide/httpd.html

20140414 updated: having to do an apache / apache2 rebuild / reinstall seems to be an annual exercise;
on this go around, I found that the default conf files map to /var/www/html;
and that I had to drop in an index.html file into that directory to get
FF /localhost to bring up anything other than an empty "Index of /" page.

20140520 updated: encountered a couple of other gotchas in recent spins of apache2;
previously, conf files did not need a suffix; now these files must end in .conf;
httpd.conf is deprecated; use apache2.conf or custom .conf files instead;

20140525 the tuts above show how to modify apache2 to set up 'sites' under /var/www or elsewhere; configure apache2 as req'd to allow users to these sites; the tuts also describe how to modify the system file /etc/hosts to map 127.0.0.1 to these 'sites' with lines like:
127.0.0.1 mysite1
on the same PC, MyLinuxPC, a users on a browser could simply type in the name of the site 'mysite1' in the address bar to access the 'site';
this did not work across the LAN; on the Windows PC I had to modify the windows equivalent of the hosts file" c:\windows\system32\drivers\hosts with the addition of a lines similar to the following:
192.168.0.101 MyLinuxPC
192.168.0.101 mysite1

continuing in fits and starts;

Ubuntu 12.04 LTS Apache 2.4.9 (build: 2014-04-01)

20141019 updated: I do not have much to add here. I am still fiddling w/LAMP under Ubuntu 12.04 on MyLinuxPC. So far all is well w/LAMP on MyLinuxPC;
I am, however, working on web development, working w/XAMPP under Win 8.1 on a production PC and XAMPP on a home WInXP PC.
And I would like to note that the knowledge gained through the work on LAMP on MyLinuxPC is transferrable to XAMPP under Win**.

JohnJ

Syndicate content Syndicate content