Questions tagged [lamp]

LAMP refers to a stack of web technologies based on Linux, Apache, MySQL, and PHP/Perl/Python.

LAMP, (Linux, Apache, MySQL and PHP/Perl/Python), is an acronym for a solution stack of free, open source software, referring to the first letters of: Linux (operating system), Apache HTTP Server, MySQL (database software) and PHP (or sometimes Perl or Python), principal components to build a viable general purpose web server.

2088 questions
512
votes
81 answers

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I installed LAMP on Ubuntu 12.04 LTS (Precise Pangolin) and then set root password on phpMyAdmin. I forgot the password and now I am unable to login. When I try to change password through terminal I get: ERROR 2002 (HY000): Can't connect to local…
sushmit sarmah
  • 6,289
  • 5
  • 17
  • 22
326
votes
39 answers

PDOException “could not find driver”

I have just installed Debian Lenny with Apache, MySQL, and PHP and I am receiving a PDOException could not find driver. This is the specific line of code it is referring to: $dbh = new PDO('mysql:host=' . DB_HOST . ';dbname=' . DB_NAME, DB_USER,…
Mike Moore
  • 6,398
  • 8
  • 38
  • 63
256
votes
15 answers

How do I change the root directory of an Apache server?

How can I change the document root of the Apache server? I basically want localhost to come from /users/spencer/projects directory instead of /var/www. I ended up figuring it out. Some suggested I change the httpd.conf file, but I ended up finding…
Spencer Cooley
  • 7,281
  • 13
  • 42
  • 61
216
votes
9 answers

How can I enable cURL for an installed Ubuntu LAMP stack?

I have installed the Ubuntu LAMP stack. But cURL is not enabled, and neither can I can find the extension listed in the INI file. I added it manually, but it didn't work either. How should I enable cURL then?
Arshdeep
  • 4,081
  • 7
  • 29
  • 43
215
votes
9 answers

Why use deflate instead of gzip for text files served by Apache?

What advantages do either method offer for html, css and javascript files served by a LAMP server. Are there better alternatives? The server provides information to a map application using Json, so a high volume of small files. See also Is there any…
Ken
  • 71,088
  • 29
  • 81
  • 100
208
votes
10 answers

How do I convert a PDF document to a preview image in PHP?

What libraries, extensions etc. would be required to render a portion of a PDF document to an image file? Most PHP PDF libraries that I have found center around creating PDF documents, but is there a simple way to render a document to an image…
Mathew Byrne
  • 3,493
  • 4
  • 23
  • 23
113
votes
13 answers

How to convert Linux cron jobs to "the Amazon way"?

For better or worse, we have migrated our whole LAMP web application from dedicated machines to the cloud (Amazon EC2 machines). It's going great so far but the way we do crons is sub-optimal. I have a Amazon-specific question about how to best…
Tom
  • 13,085
  • 12
  • 61
  • 77
91
votes
11 answers

What is a LAMP stack?

What does the term LAMP Stack mean? I have seen this reference in job postings, but I don't fully understand the meaning of it. I feel like in my development I use LAMP fairly commonly, but when I hear "stack" I feel like I am not using a LAMP…
Eli
  • 4,150
  • 5
  • 41
  • 74
81
votes
9 answers

How can one run multiple versions of PHP 5.x on a development LAMP server?

I need to test my PHP applications with multiple versions of PHP 5.x, such as PHP 5.0.0 and PHP 5.2.8. Is there a way that I can configure a development LAMP server so I can quickly test applications with multiple versions of PHP5?
James Mishra
  • 2,980
  • 4
  • 23
  • 28
71
votes
2 answers

How can I develop a LAMP web application using Docker, Puppet and Vagrant?

In the dark ages, my usual setup for development of LAMP web applications was to test locally on my machine. PHP (in my case), the database and the web server were all installed natively. The server was set up with standard installs of Apache and…
Robert
  • 5,449
  • 3
  • 36
  • 45
63
votes
8 answers

Amazon EC2 as web server?

I have thought a lot recently about the different hosting types that are available out there. We can get pretty decent latency (average) from an EC2 instance in Europe (we're situated in Sweden) and the cost is pretty good. Obviously, the…
Industrial
  • 36,181
  • 63
  • 182
  • 286
60
votes
12 answers

PHP errors NOT being displayed in the browser [Ubuntu 10.10]

I'm new to PHP and the whole LAMP stack but I've managed to get it up and running on my Ubuntu 10.10 system. Everything seems to be working with the exception of error reposting in the browser which I just can't seem to get working (and which I…
JLove
  • 1,491
  • 1
  • 16
  • 37
52
votes
2 answers

Docker : How To Dockerize And Deploy multiple instances of a LAMP Application

I need to deploy many instances of the same LAMP (or LEMP) application : each instance will be accessible from a subdomain, with front loadbalancer/ proxy each instance must have its own db data and files data. each instance might be…
Koryonik
  • 2,608
  • 3
  • 19
  • 27
45
votes
7 answers

LAMP: How to create .Zip of large files for the user on the fly, without disk/CPU thrashing

Often a web service needs to zip up several large files for download by the client. The most obvious way to do this is to create a temporary zip file, then either echo it to the user or save it to disk and redirect (deleting it some time in the…
Benji XVI
  • 2,058
  • 1
  • 23
  • 22
37
votes
5 answers

How to enable SOAP on CentOS

We have VPS with CentOS. I have installed SOAp using the following command: $ yum install php-soap Then I went to the php.ini file to uncomment the SOAP extension. It was not there, so I added the following line: extension=soap.so Then I restarted…
user3241013
  • 389
  • 1
  • 3
  • 6
1
2 3
99 100