What is LAMP Server?
LAMP server is a stack of technologies layered on top of eachother to serve not only as a development platform, but as well as a robust and stable web application hosting platform.
LAMP server it self stands for:
- Linux (operating system)
- Apache (webserver)
- MySQL (database application)
- PHP (programming language)
When setting it up on your own computer, in most cases you will be setting it up to work on, or develop websites/web apps offline for testing. This often helps developers speed up the process to going live with a site. It also gives them the opportunity to make crucial changes to a website offline, without potentially interfereing with you online version of the site, and possibly causing service outages.
Through the Ubuntu forms and community, there is well-documented instructions on how and what packages you would and could install to get up and running with your very own LAMP server. However I tend to find that the documentation is often a bit outdated, with each seperate package you install, you could easily throw off install of the entire system.
First thing we will do is open a new terminal window and type:
sudo apt-get install lamp-server^
Don't forget to put the little ^ at the end. For some strange reason you will need to do this for it to install properly.
It should be mentioned that you could have added phpmyadmin after the lamp-server^ statement, but it was forgotten in this demo.
to install phpmyadmin simply type:
sudo apt-get install phpmyadmin
and follow the setup instrctions.
Now that we have fully installed LAMP Server on Ubuntu 10.10 with PhpMyAdmin, we can now go ahead and start configuring PhpMyAdmin to work with Apache webserver so you can access your MySQL databases. :) For this, we will need to edit our Apache configuration file. To edit this file, we will type in:
sudo gedit /etc/apache2/apache2.conf
Once you see the text editor open up, we will need to add the following line to the bottom of this configuration file:
Include /etc/phpmyadmin/apache.conf
save the file and exit. In order for the webserver to see these new changes we will have to restart it. Relax. This isn't Windows, so we won't have to reboot. Simply type in:
sudo /etc/init.d/apache2 reload
the webserver will researt and you will need ot open your browser. first checka nd see if your webserver is working.
type in "localhost"
"it works" - it works
localhost/phpmyadmin
log in, and begin your work!
https://help.ubuntu.com/community/phpMyAdmin
Best music ever lol so cool
Pyware50 8 months ago 2
@Pyware50 lol thanks. :)
cdntechonline 8 months ago
Everything seemed to install fine for me but I was unable to edit apache2.conf. It says its read only when I open it from the gui but from the terminal it doesn't even see it. File not found blah blah.
Im brand new to linux so any help would be much appreciated.
Thanks
hempheadfor20 11 months ago
@hempheadfor20 no problem... when at first it doesnt work - make sure you check your spelling, a simple file name or a cap where it doesn't belong, creates a whole new problem. you have to make sure you open it from the terminal with the SUDO command... that makes it open the file as the sysadmin. then you will be able to edit and save it with no problem whatsoever.
cdntechonline 11 months ago
i think you did a mistake. why you put
Include /etc/phpmyadmin/apache.conf
in the config file while it should've been apache2??
It didnt work for me as u said
bhavyakamboj 1 year ago
@bhavyakamboj well you can try that. but according to the ubuntu community phpmyadmin docs, it looks like this is the proper way.
cdntechonline 1 year ago