Acronym for a development stack originally made up of Linux, Apache, MySQL and Perl/PHP/Python

learn more… | top users | synonyms (1)

58
votes
5answers
7k views

Tips for Securing a LAMP Server

This is a Canonical Question about Securing a LAMP stack What are the absolute guidelines for securing a LAMP server?
21
votes
5answers
19k views

Can a pool of memcache daemons be used to share sessions more efficiently?

We are moving from a 1 webserver setup to a two webserver setup and I need to start sharing PHP sessions between the two load balanced machines. We already have memcached installed (and started) and ...
14
votes
7answers
16k views

How much VPS ram would I need to run Wordpress, Apache, SVN & MySQL?

Does anyone have a ballpark figure of how much VPS ram (without burstable) I would need to have apache with wordpress and subversion as well as the MySQL instance? Apache would host a couple of sites ...
13
votes
5answers
2k views

Considerations when chosing AMD processors over Intel

I work for a company with a lot of legacy LAMP web-applications, where we are trying to refresh our hardware from ~250 physical servers to ~40 new servers w/virtualization. We have received two ...
12
votes
2answers
753 views

improve our deployment strategy

We have an ecommerce app that we develop at our company. Its a reasonably standard LAMP application that we have been developing on and off for about 3 years. We develop the application on a testing ...
10
votes
3answers
2k views

LAMP Server Performance Tips

What performance tips can be offered to someone running a LAMP server? In the instance that something is Distribution specific, I'm targeting Debian.
9
votes
4answers
14k views

How do I set up per-site php.ini files on a LAMP server using NameVirtualHosts?

I have a LAMP server serving a number of different websites using NameVirtualHosts. Until recently having a global php.ini file has been just fine, but recently one of our developers has requested ...
9
votes
3answers
3k views

Secure LAMP server for production use

What is the procedure for securing a Linux, Apache, MySQL, PHP Server (or even Perl) for production use? Other than setting the MySQL password and the root password for Linux what other (maybe not so ...
9
votes
4answers
1k views

Advantages of Using Nginx or HA Proxy as Load Balancer

In our environment we us both Nginx and HA Proxy on different clusters. Are there advantages of using one over the other? Or, what is the best way to go about load balancing a basic LAMP server ...
8
votes
3answers
3k views

Linode Distro (How to Choose?) 64bit? [closed]

I have made the leap to Linode (360MB) and wanted to get some feedback on which distribution to choose. I'm going to be running LAMP (with P being PHP). I am mainly curious about security, ...
8
votes
4answers
1k views

VPS Administration for the Absolute Beginner

I have a new site that I want to build, something that I as a programmer wish existed. While there is no way this site would ever reach StackOverflow levels of success, I do hope that it will have a ...
7
votes
2answers
4k views

best way to debug nginx config file?

I have a bunch of rewrite rules that I have to port from apache to nginx. It's a rather painful process because I'm not able to see if my rewrite rules and "if" conditions are working as I want them ...
7
votes
1answer
8k views

Where is php.ini-development on Ubuntu LAMP?

On my development machine I run Ubuntu 10.04.1 LTS. Following the official documentation, I used the following command to install Apache, MySQL and PHP in one go: sudo tasksel install lamp-server ...
7
votes
5answers
319 views

good LAMP/Rails admin reference for VPS?

I just switched to a VPS after years of shared hosting, so I need to brush up on my administrative skills. Years ago I was a UNIX admin, but I'm rusty, and in particular don't know the details of ...
7
votes
3answers
826 views

The best way to share a file uploads directory across horizontally scaling web servers

I'm currently trying to spec up a horizontally scalable cluster for a drupal based web app, that looks something like the colorful diagram below: The load balancer implements sticky sessions, so a ...
6
votes
4answers
26k views

PhpMyAdmin (on ubuntu lamp): Login without a password is forbidden by configuration (see AllowNoPassword)

My mysql password = '' i try to login to PhpMyAdmin (on Ubuntu 10.04 lamp) and get error: Login without a password is forbidden by configuration (see AllowNoPassword) What should i do for enter to ...
6
votes
1answer
9k views

What user should own /var/www on Ubuntu 9.04 Server?

I've got LAMP on Ubuntu 9.04 Server and the default installation has root:root owning the /var/www folder. I discovered this when another service, Hudson, could not write to that directory. I want ...
6
votes
2answers
84 views

Will there a difference in performance when a server (httpd or mysql) by building it from sources vs installing it using yum/apt repositories?

I have a web app on the LAMP architecture. Right now all the servers are installed from the binaries available in the platform repositories (apt / yum). However, I think it would be best to install ...
5
votes
11answers
12k views

How to watch logs in real time via Terminal?

This is a basic question - in the movie "The Social Network" there are several scenes when the young Facebook staff is watching the PHP/Apache server logs on in their TERMINAL in real time. I'm ...
5
votes
13answers
2k views

What are the Benefits of Server Hardware? [closed]

What are the benefits of using Server Hardware versus just placing server software on top of Desktop Hardware? I've been running a small time webserver for a couple of websites, a blog and a ...
5
votes
6answers
502 views

What are some essential concepts I need to know as an inexperienced server administrator?

I (as this title implies) am very new to this server configuration stuff. I have recently been pushed to learn how to configure developing/production environments. My history with actual ...
5
votes
2answers
526 views

Is it feasible/common for people to use only AWS to host PHP/MySQL websites?

What are the drawbacks/limitations when compared to a more traditional managed shared/virtual/dedicated host?
5
votes
5answers
820 views

What inconsistencies should I expect between WAMP and LAMP stacks?

I am used to a LAMP (Linux, Apache, MySQL, PHP) stack, but occasionally I must use a WAMP (Windows ...) stack to meet certain client requirements. I haven't run into any significant differences, but ...
5
votes
3answers
3k views

How to make a directory in site root a subdomain?

I have a Ubuntu LAMP site hosted at vps.net. I have a directory called john that is accessible via mysite.com/john I would like it instead to be accessed via john.mysite.com My site root is /var/www ...
5
votes
6answers
771 views

smallest possible linux installation with apache

I want to setup a linux vm with apache and php and mysql support, which version of linux should I pick up. I dont have a good bandwidth, preferably a smaller ISO of the installer is also appreciated.
5
votes
3answers
492 views

How do you know if your Apache Install is Secure?

I'm a hobbyist IT guy and I am running my own Ubuntu server to serve up my website. I was wondering if there are any good ways to find out how secure my setup is, as I'd really prefer not to have my ...
5
votes
1answer
1k views

Can the HAL daemon be safely disabled for servers?

I'm running a LAMP server with openSUSE 11.3 for a hobby, and wonder whether the HAL daemon have any function on such machine. So far it also seems to consume memory, and DBUS/udev can already handle ...
5
votes
3answers
1k views

Web-based (intranet / non-hosted) timesheet / project tracking tools

I realize some similar questions have been asked along these lines before, but from reading-through them today, it appears they don't match my use case. I am looking for a web-based, non-hosted time ...
4
votes
4answers
5k views

Profiling Apache+Mysql+Php server - which is the bottleneck?

How do I profile an Linux + Apache + Mysql + Php server for speed? I have a server with a heavily modified MediaWiki instance running on Ubuntu 8.04. It's a bit sluggish - I haven't done anything to ...
4
votes
4answers
1k views

Linux Web Server Permissions - Best Practices

On a privately owned server with one website, is there any reason the files/directories within /var/www can't be group owned by www-data? My understanding is that security risks with www-data having ...
4
votes
2answers
2k views

Apache “httpd” process, utilizing all my servers memory

My small ec2 instance with 1.7 GB memory, running the Amazon AMI based off of CentOS, has an issue with Apache utilizing way too much memory than it should. If you take a look at the screenshot, the ...
4
votes
4answers
661 views

How hard is it to host from home? [closed]

I have always payed a company to host on dedicated servers which is really expensive, 1 of my sites has 2 servers right now, a web/http server and a seperate mysql server. What would it take for me ...
4
votes
2answers
3k views

What to do after hitting the dreaded 256 max connections Apache Limit

After scratching my head trying to figure out why my site was responding so slowly even though the server resources are fine, I finally checked the Apache status and found: 78 requests/sec - 0.7 ...
4
votes
1answer
604 views

How to maintain PCI compliance on a LAMP server when repositories don't keep up with versions

We run Ubuntu Lucid 10.0.4 as the foundation of our LAMP environment. We are trying to become PCI compliant so that we can pass CC info through our server. We have run some third-party scans on our ...
4
votes
1answer
1k views

1 EC2 instance per website - manage multiple websites on Amazon cloud using EC2

I'm managing multiple websites, most based on WordPress and all are based on LAMP stack. I'm moving all my websites to Amazon cloud. I'm new to AWS and my plan is moving 1 website by one, starting ...
4
votes
5answers
3k views

PHP broken after upgrading to php 5.4

on an ubuntu 12.04 i have upgraded to PHP 5.4 according to this tutorial http://www.upubuntu.com/2012/03/how-to-upgrade-install-php-540-under.html But when i call php5 -v i get PHP Warning: PHP ...
4
votes
1answer
6k views

ServerName wildcards in Apache name-based virtual hosts?

On our LAN I've set up several 'fake' TLDs in the DNS server, with the intention of using them for Apache name-based virtual hosting. I'd like to combine this with mass-virtual-hosting (i.e. ...
4
votes
2answers
246 views

Keep LAMP server up to date and secure

As a webdeveloper I have, like many, my own VPS. However, I am a webdeveloper, not a system manager. For me it's quite challenging to install a VPS and to keep it up to date and secure. It takes me ...
4
votes
2answers
5k views

phpmyadmin connecting to a remote server

I have two servers (ubuntu 10.04 amd 64). one i plan on the webserver, the other i plan on being the database server. The webserver is the only server with access to the outside world. I installed a ...
4
votes
5answers
3k views

Adding PNG & JPG support to ImageMagick in PHP on CentOS

I have installed the ImageMagick extension for PHP on CentOS, but it does not have support for PNG or JPG, how do I add support for these file types to ImageMagick?
4
votes
1answer
300 views

What is the typical maintenance required on a LAMP server?

I am in the process of setting up an Ubuntu LAMP server (cloud hosted) to run a few small websites. I am in the process of configuring the security settings, etc. Once I have it ready for production ...
4
votes
2answers
1k views

Best Practices for setting up multi-server LAMP environment

I'm looking for resources that will help me design an optimum multi-user multi-server LAMP environment. We currently have 7 servers (2 load-balanced webservers, 2 redundant clustered web-content ...
4
votes
1answer
455 views

Cost and Trade-offs of EC2 vs Hosted VPS for a LAMP site with 1M uniques

Does anyone have first hand experience with EC2 vs Hosted VPS cost analysis and trade-offs? It's for a LAMP site with 1M monthly uniques. It would be great to hear some opinions and any analysis ...
4
votes
7answers
601 views

open-source LAMP package for simple accouting and receiving? [closed]

I am involved with a computer-based charity where we take donation of old equipment, often recycle it, mostly rehabilitate it and make it available through grants and 'adoptions', and sell some items. ...
4
votes
3answers
887 views

EC2: Regular performance issues without obvious resource contention

We are running LAMP+memcached on an Ubuntu 9.10 x64 xlarge Amazon EC2 instance. This server handles a few hundred requests per second, of which about 60% are static and the remainder all interact with ...
3
votes
3answers
804 views

Copy MySQL to RAM as a poor man's memcached replacement?

What about this idea: I've got a 4GB MySQL database, with few UPDATEs. On system startup I copy it to RAM and run it from there. Every couple of hours or even on UPDATES, I dump it to disk. ...as ...
3
votes
6answers
2k views

How can I block access to my website from certain countries using the LAMP stack?

I have a website that I do not want to be viewed by entire countries. The website is running on a LAMP server. How can I achieve this?
3
votes
3answers
108 views

Local and remote servers with different Linux distros?

I'm running a remote web server on Red Hat Enterprise Linux and want to host a local server with a copy of my LAMP web applications for in-house development. Is there any reason that I would need to ...
3
votes
3answers
937 views

How can I get LAMP up and running with Debian?

I need to install Debian for a webserver on a dual-Xeon machine, and it must be as "secure" as possible, with whatever programs and features are available (Firewall, Antivirus, etc). I need basic ...
3
votes
8answers
2k views

Scaling a LAMP stack

Once you move beyond 100k hits/month, what would people in this community say is the biggest hurdle? My situ: Tons of static media (audio/video/images) being served off of S3/CDN, but being stored ...