Questions tagged [lamp]

Acronym for a solution stack of free, open source software, originally coined from the first letters of Linux (operating system), Apache HTTP Server, MySQL (database software) and Perl/PHP/Python, principal components to build a viable general purpose web server.

LAMP is an acronym for a stack of four pieces of free and open-source software that are commonly used to build a general purpose web server:

  • Linux
  • Apache HTTP server
  • MySQL
  • PHP

Please have a look at the official Ubuntu Server Guide for the release you are using (which can usually be found at https://help.ubuntu.com/x/serverguide/index.html where x is replaced by the version number of Ubuntu, e.g., x=15.04 for Vivid). You can find the guide for the latest released LTS version here. Detailed explanations may be found in the Web Servers chapter and examples in the LAMP Applications chapter.

The simplest way of installing a basic LAMP stack is usually by running the following two commands from the terminal (Ctrl+Alt+T should open a new terminal):

sudo apt-get install tasksel
sudo tasksel install lamp-server

Notable questions

789 questions
133
votes
17 answers

What's the easiest way to set up a LAMP stack?

I set up a new VPS instance of Ubuntu and am wondering what the easiest way is to get up and running with a basic LAMP stack (i.e. which packages are required, which configuration options need to be tweaked, if any, etc.).
jerhinesmith
  • 1,733
94
votes
5 answers

How to solve the phpmyadmin not found issue after upgrading php and apache?

Recently I have install the PHP, Apache, MySQL, phpMyAdmin, python in my Ubuntu Desktop 12.04.3 LTS to use it as a LAMP server. The commands I used to install these are given below: 1: sudo passwd 2: su 3: apt-get install php5 4: apt-get install…
Farukh
  • 1,063
  • 1
  • 8
  • 13
77
votes
12 answers

How to have two versions of PHP installed and switch easily between them?

I want to have both PHP 5.2.17 and PHP 5.3.5 installed on my Ubuntu machine and switch as per my necessity. How can I achieve this?
56
votes
1 answer

Where is apache web root directory on Ubuntu?

On Ubuntu Trusty, which is the apache root directory for web pages?
George Udosen
  • 37,534
54
votes
2 answers

Where to place my local website starting with the 2.4.7 version of apache2?

I recently installed Ubuntu 14.04, then I installed lamp-server and placed my webpages in /var/www directory, but when I opened localhost in the browser there was nothing. I think that happened because Zend updated Apache. Whatever the reason may…
akxer
  • 2,056
51
votes
2 answers

netstat: command not found

I installed xampp to run a server as part of a guide, but it wasn't working. After trying to run it from command line, I got the following output: $ sudo ./xampp start panel Starting XAMPP for Linux 8.1.6-0... XAMPP: Starting…
Dr-Bracket
  • 2,267
48
votes
8 answers

Change Apache document root folder to secondary hard drive

I installed the ubuntu 12.04 server edition for my server pc . i had installed lamp server. i need to change the var/www location to my secondary hard disk location. i was configured so many time to at gedit /etc/apache2/sites-available/default here…
39
votes
9 answers

What Can Be Done To Secure Ubuntu Server?

I have a project to secure Ubuntu Server as much as I can. The server is a web hosting server. The server will be running LAMP , Mail , and DNS.
One Zero
  • 27,761
39
votes
2 answers

ERROR 1698 (28000): Access denied for user 'root'@'localhost' at Ubuntu 18.04

I have followed this tutorial to install MySQL but after successfully installed MySQL, I could not access database. ERROR 1698 (28000): Access denied for user 'root'@'localhost'
Ashrafuzzaman Sujan
  • 717
  • 2
  • 8
  • 13
38
votes
4 answers

How do I remove the LAMP stack so I can start over?

I'd like to start over with my webserver and I'd like to reinstall all the LAMP packages, how do I do that?
Jorge Castro
  • 73,717
35
votes
4 answers

Resetting forgotten phpmyadmin password

I recently installed LAMP on Ubuntu 13.04(32-bit) but forgot my phpMyAdmin password. How can I reset its password without re-installing it?
31
votes
3 answers

Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}

hi every body after clean install of ubuntu 16.04 and tasksel lamp apache2 got this error : [Mon Jul 18 22:42:00.114578 2016] [core:warn] [pid 4654] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined [Mon Jul 18 22:42:00.114623 2016]…
24
votes
3 answers

Update server php version to 5.4.10 via the command line

Im setting up a vps for the first time from scratch, the host has a one click LAMP installer which took out allot of the leg work, but running phpinfo(); i found im running 5.3.10. So id like to update it to 5.4.10 - Ive run sudo apt-get install…
sam
  • 313
22
votes
5 answers

uninstall xampp on ubuntu using terminal command

I want to uninstall XAMPP on Ubuntu on VM. Please advise command to archive this. I have downloaded package using wget command and run sudo ./xampp-linux-1.8.3-2-installer.run. How to delete folder using terminal located at /opt/lampp?
22
votes
6 answers

What would be the most practical way for a web developer to develop on Ubuntu but test on IE

I work as web developer and have Firefox and Chrome installed on my Ubuntu system. However, most of the nightmares for web developers are getting things to work on Internet Explorer, mostly IE7 and IE8. My entire team of developers have switched…
Nigel
  • 487
1
2 3
52 53