answer this quora question liek answring from my own experince and make it informative in 1000 wrds -What is difference between MEAN stack and LAMP stack?
The most popular, free of charge, open source, web development stack (LAMP) is now facing a new trending technology stack, the MEAN stack.

As we all know, LAMP is stand for Linux, Apache, MySQL and PHP. While MEAN is stand for MongoDB, ExpressJS, AngularJS, and Node.js.

In the MEAN stack, the Linux operating system is replaced with any operating system that Node.js can run on. This includes MS Windows, Mac OS, and Linux. The Apache web server is replaced with the Node.js. The MySQL is replaced with MongoDB, which is a No-SQL database. The PHP server side programming language is replaced with the ExpressJS, which basically provides a thin layer of features over Node.js. Here is a key point; the ExpressJS and Node.js in combination are tools to run JavaScript on the server side.

In the last decade, the JavaScript was, and still is, a mainstream scripting language that runs on the client side (browser) and makes web pages dynamic and responsive. The MEAN stack keep using the JavaScript on the client side by introducing the AngularJS.

As you might notice, there is no programming language to be used with the MEAN stack other than the JavaScript.

As the LAMP stack can be changed to a WAMP stack by replacing Linux with Windows, the PHP can be replaced with Python. The MongoDB can be used with the LAMP stack instead of MySQL. What I'm trying to say here is that we can mix different technologies and come up with a brand new stack.

So, what is the point of creating a new stack? Do we really need to decide which stack to use? Can’t we just use both of them?

Let me first try to answer the first question, why do we have the MEAN stack? Well, using one programming language makes development much easier. So, if you have a team who can use JavaScript, then that’s it; no need to learn PHP or Python. With MongoDB, we can store our documents in a JSON-­like format, write JSON queries on ExpressJS and NodeJS based server, and pass JSON documents to AngularJS on the client side. Debugging becomes much easier when the objects stored in the database are identical to the objects the client-side JavaScript deal with. These features are some points why we have the MEAN stack.

On the other hand, critics of the MEAN stack sometimes point out that MongoDB may work well for small to mid-sized apps, but less so for large-scale applications (e.g 100′s of millions of users).




LAMP:

Has been popular for a long time, which means there are tons of tutorials and stack overflow posts that you can reference if you get stuck
Has time-tested tools like PHP Admin and powerful CMS tools like Wordpress and Drupal
Has armies of PHP developers in China and India whom you can inexpensively contract out

MEAN:

Uses a single language - JavaScript - on the client and the server. This makes it easier for all your developers (front end and back end) to collaborate
Uses a NoSQL database (MongoDB) that frees you from having to micromanage migrations and schemas
Has a powerful client-side JavaScript framework (AngularJS) built in, so that you can build modern Single Page Apps
Encourages better separation of concerns, which promotes code reuse and improves maintainability