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.

Filter by
Sorted by
Tagged with
132 votes
17 answers
65k views

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 ...
jerhinesmith's user avatar
  • 1,723
53 votes
2 answers
153k views

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 ...
akxer's user avatar
  • 2,036
21 votes
7 answers
20k views

Should I symlink my /var/www directory to my home?

I have just installed Ubuntu Server 10.04 with a LAMP setup. I want to host a website there but I'm not sure which is the best way to get/edit my files on the server. Googling provides many options ...
Craig's user avatar
  • 1,306
38 votes
4 answers
237k views

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's user avatar
  • 71.7k
3 votes
1 answer
1k views

How to get PHP 7.0 running with Apache2

I am totally new to Linux, servers and websites. I recently set up Apache2, Python, PHP, and MySQL for setting up a LAMP server. I am using Xubuntu 16.04 and PHP 7.0.11. I followed a guide and placed ...
Kishore's user avatar
  • 33
39 votes
9 answers
39k views

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's user avatar
  • 27.1k
14 votes
4 answers
36k views

Cannot start XAMPP on Ubuntu 11.10

When I try to start XAMPP with sudo /opt/lampp/lampp start command it gives me a message like this. Starting XAMPP for Linux 1.7.7... XAMPP: Another web server daemon with SSL is already running. ...
Asanka400's user avatar
  • 258
77 votes
12 answers
182k views

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?
Debiprasad's user avatar
4 votes
1 answer
1k views

How do I set up local Joomla sites for web developing?

I plan to develop multiple websites using Joomla. I'm using Ubuntu Desktop, and only need to access the sites and configuration files locally, while logged in to my user account. Previously I tried ...
Tom Brossman's user avatar
  • 13.1k
94 votes
5 answers
517k views

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: ...
Farukh's user avatar
  • 1,063
48 votes
8 answers
320k views

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 ...
Moovendra Dhinesh babu's user avatar
39 votes
2 answers
167k views

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's user avatar
9 votes
2 answers
38k views

How to install XAMPP?

Hi all im a noob on Ubuntu/Linux World, So i need some that give a full tutorial to How to install Xampp from apachefriends.org correctly on Ubuntu 11.10 + all beyond Ubuntu for 32 bit and also 64 ...
Ran Shemer's user avatar
35 votes
4 answers
241k views

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?
tHe_VaGaBonD's user avatar
11 votes
4 answers
98k views

How to add custom directory e.g. phpmyadmin?

As my knowledge about apache is minimal. I'd like to let it grow so I'd have more experience with LAMP. My hot question for today is: How to add custom directory to webserver? (e.g. phpmyadmin)? My ...
Darj's user avatar
  • 277
6 votes
2 answers
61k views

How to downgrade PHP from 5.5.9 to 5.4 in Ubuntu 14.04 (Installed with LAMP)

I need to downgrade my PHP version from 5.5.9 to 5.4 (using Ubuntu 14.04), because I have a code that's using mySQL (which is deprecated in 5.5.9), and I cannot change that code. Is there a way to do ...
Hagaymosko's user avatar
2 votes
2 answers
7k views

phpmyadmin 404 error on fresh ubuntu 12.04 install

I regularly set up Virtualbox ubuntu setups to run as local webservers. I have set these up several times and never had an issue. However, something has changed: 1)VB guest additions no longer allow ...
SwiftD's user avatar
  • 245
16 votes
6 answers
56k views

Error Installing mySql on Ubuntu 16.04

I have been following the instructions on this page to install mysql on on Ubuntu 16.04. I am half way down that page at the section titled "MySQL Install and Configure" and I run the command sudo ...
Darren Haynes's user avatar
15 votes
4 answers
163k views

how to access phpmyadmin in lamp

I have installed LAMP on Ubuntu 12.10, and I want to access PhpMyAdmin, but I don't know it's URL. I tried to access this URL : http://localhost/phpmyadmin But I got this problem : Not Found The ...
Croviajo's user avatar
  • 1,154
5 votes
1 answer
5k views

How do I install joomla 1.7 on a lamp server?

I have a joomla 1.7 business live site and would like to know how to install wamp server and joomla 1.7 on ubuntu 11.1. I use it to work on site locally, then back it up and upload it to the live site ...
daniel's user avatar
  • 51
2 votes
2 answers
4k views

Help with LAMP sever

Firstly I followed the instructions on the following site to install the LAMP server: http://www.multimediaboom.com/how-to-install-lamp-server-in-ubuntu-11-0410-1010-04/#comment-48391 step 3: go to ...
cohen's user avatar
  • 181
0 votes
2 answers
218 views

16.04: Problem installing LAMP and wordpress

ok I have followed the following guide: http://computerbeginnersguides.com/blog/2016/05/12/install-and-configure-wordpress-on-ubuntu-16-04-xenial-xerus/ But, every time I go to the localhost it says "...
Hedwig's user avatar
  • 31
31 votes
3 answers
67k views

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 ...
tal shulgin's user avatar
24 votes
3 answers
92k views

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 ...
sam's user avatar
  • 313
22 votes
5 answers
206k views

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 ...
Zohaib Khan's user avatar
18 votes
1 answer
60k views

xampplib: line 22: netstat: command not found

When I try to start my xampp I get these errors: sudo /opt/lampp/lampp start Starting XAMPP for Linux 5.6.30-0... XAMPP: Starting Apache.../opt/lampp/share/xampp/xampplib: line 22: netstat: command ...
Ahmed Shaltout's user avatar
15 votes
5 answers
6k views

Do we need Swap partition on a LAMP server?

Do we need actually swap partition on the ubuntu-server with LAMP? I think I don't need it, but better to know for sure if it will not cause some unpredicted behaviour. Actually my thoughts were: ...
Arman's user avatar
  • 364
9 votes
3 answers
40k views

Sending mails with PHP, LAMPP and PostFix

I've been trying for 2 whole days now, and I just can't get the most simple thing to work. The problem: Sending eMails from PHP to my eMail address does not work I've been working with Windows and ...
Quasdunk's user avatar
  • 441
7 votes
2 answers
54k views

How to Install LAMP server on Ubuntu [duplicate]

I just installed Ubuntu on my computer as a beginner and found out there is no LAMP server available in the software center. I'm somehow stuck on how am going to install LAMP server on my Ubuntu since ...
Adetona77's user avatar
7 votes
1 answer
51k views

#1045 Cannot log in to the MySQL server

I am trying to setup LAMP on my OS, so I have installed apache, php, mysql using the following commands: sudo apt-get install apache2 sudo apt-get install php5 sudo apt-get install libapache2-mod-php5 ...
dariush's user avatar
  • 619
6 votes
1 answer
5k views

How to install ubuntu server for lxc on a smartphone (ARM or x86, bare metal)?

As of May 2019 what are the options (if any) to install Ubuntu server on a smartphone device? I don't need much of the smartphone functionality, I don't need desktop and touchscreen blows and ...
Dmitry Somov's user avatar
6 votes
3 answers
27k views

MySQL Access denied for user 'root' while using LAMP

I'm just want to install lamp server + phpmyadmin normally in case of when setting up mysql i get this error: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) I don'...
amr atef's user avatar
5 votes
1 answer
7k views

Tens of thousands of failed/denied SSH login attempts [closed]

Recently a few friends and I came up with an idea for an app. To facilitate the creation of it, we set up LAMP on an Ubuntu Server 12.04. This box is running from my home. We've set up 3 user accounts....
Raichu's user avatar
  • 88
4 votes
1 answer
28k views

Apache gives 403 Forbidden

Server: Ubuntu 12.04 w/ LAMP I can access the default index.html, but I created a symbolic link to a folder in my Dropbox. Whenever I try to access 192.168.2.6/Joomla (Joomla is the symbolic link), I ...
SomeKittens's user avatar
2 votes
1 answer
11k views

LAMP server couldn't be installed using tasksel

I tried to install LAMP server using tasksel. But it shows the following error message. I tried changing permissions using chmod but in vain debconf: DbDriver "passwords" warning: could not open /var/...
Sarath's user avatar
  • 355
2 votes
2 answers
16k views

Starting and stopping server with a desktop shortcut

I use sudo /opt/lampp/lampp start and sudo /opt/lampp/lampp stop every time in order to start and stop the lampp server installed in my computer. Is there some way by which I can create an icon ...
Akhil Lawrence's user avatar
1 vote
2 answers
8k views

Unable to install LAMP server

I can't seem to install LAMP server on my Ubuntu 14.10, I have tried the methods listed below: sudo apt-get install apache2 sudo apt-get install lamp-server^ sudo apt-get install tasksel All methods ...
Orobo Lucky Ozoka's user avatar
0 votes
1 answer
2k views

Give access to php to /home folder

I am need for apache to have access on all (well... most anyway) user folders on the same machine, so that I can access some data, do some magic and then display them on a webpage for remote viewing. ...
Ant's user avatar
  • 101
0 votes
1 answer
260 views

How to make apache open files that have only owner execute permission for all users?

I have installed LAMP on my Ubuntu Server while being user (say "test"). Then i switched to another user (say "user") and I have configured a virtual host. The virtual host directory at www/ has 744 ...
enu's user avatar
  • 177
15 votes
6 answers
27k views

Is there a simple mail server I can install?

I have a desktop install of ubuntu, not server. But I am running a localhost LAMP stack for development. Is there a simple mail server I can install so that PHP's sendmail works? Ideally it will ...
EmmyS's user avatar
  • 15.9k
14 votes
4 answers
86k views

Manually Start LAMP Server

I setup a LAMP server on my desktop Ubuntu install for testing web applications. How do I set it to only run when I tell it to rather than at startup? It is not used as a production web server but ...
AJ00200's user avatar
  • 410
12 votes
4 answers
32k views

How to update to PHP 5.3.10 in 10.04?

I'm new to Linux and have only the basic experience with Ubuntu and installing LAMP Server. I've successfully installed all using the "apt-get install" method. My problem is I want to update PHP 5.3.2 ...
jrsalunga's user avatar
  • 221
9 votes
3 answers
8k views

'/'var/www/' vs '/home/$USER/public_html'

I recently started using Ubuntu as a LAMP server. I've come across plenty of tutorials that say to place the files at '/var/www/' and I've also seen others that put them in '/home/$USER/public_html/'. ...
OrganizedFellow's user avatar
8 votes
3 answers
89k views

XAMPP opt/lmapp/lampp start script is doing nothing

I installed Xampp for Ubuntu 12.04. I was able to reach the Xampp splash page/index page. Then, when I clicked on myphpadmin, it wasn't working and I would get an error page. So instead I tried ...
Dr. Dan's user avatar
  • 183
7 votes
1 answer
11k views

What steps do I follow to run a stock Hello World CGI script?

Assume I have finished installing a modern release of stock Ubuntu, and have the following script. #!/bin/sh echo "Content-type: text/html\n" echo "<html><body>Hello world</body><...
Jjed's user avatar
  • 13.9k
7 votes
2 answers
32k views

testphp.php 404 Not Found

I installed LAMP Server. I can access http://localhost. I can also run successfully phpmyadmin. But when I go to http://localhost/testphp.php, I get a 404 not found. The file is in /var/www/testphp....
Guest123ABC's user avatar
6 votes
1 answer
5k views

Is it possible to do an unattended/silent lamp installation?

Is there a way to set up and pre-configure a lamp environment within a bash script without user prompting by dpkg and present data like mysql or root user password and such kinds of things?
Josh's user avatar
  • 1,440
5 votes
1 answer
3k views

I have just installed LAMP server through tasksel. Can I use it in any graphical way?

I have just installed LAMP server, as this answer suggested. Tasksel shows it is installed, but I see no option to use it, except for the terminal. As a user new to Linux, I would prefer something GUI-...
Pavel V.'s user avatar
  • 256
5 votes
1 answer
40k views

unable to locate package mysqld-server

I just set up a fresh install of Ubuntu 12.04 on my VPS, and I cant for the life of me install or even locate MySQL server.. apt-cache search mysql gives no results on mysql-server/mysqld-server ...
insomnia's user avatar
  • 415
5 votes
2 answers
6k views

Migrating Ubuntu 20.04 LAMP from MySQL to MariaDB

Status I currently run a LAMP server on Ubuntu 20.04, that has a MySQL server containing several Drupal and Wordpress databases, along with a PHPMYADMIN db. Request Is there some super smart MySQL ...
nightwatch's user avatar