Moving away from LAMP stack and into cloud?

Started by beingchinmay, Jun 28, 2022, 01:59 AM

Previous topic - Next topic

beingchinmayTopic starter

Hello all

hopefully this is the right section to post my question.

We have been running the traditional LAMP stack for our website (php+mysql, similar to wordpress), for the past 10+ years. But as we are about to tackle some upgrade projects, a question came up - should we go to cloud? and if we do, what should we do there?

The obvious answer is just to get a VM in the cloud and put LAMP on it again... ie Amazon Lightsail type of thing.

But - can we do more? should we even be doing that anymore? Does it make more sense to do it as a collection of cloud services - ie host our files in storage, use the distributed MySQL database in the cloud? I realize in this scenario we lose a lot of flexibility and control, but is this design the way of the future? Also, keeping costs low and steady is very important to us.

Thanks, perhaps someone can share their experience on moving away from LAMP.


I would say you first need Cloud training. Secondly, can you please clarify which CMS you are using?
If you want to get into cloud hosting, then you should choose managed cloud hosting platform. It will make your life easy. You will be able to install the LAMP stack in a few clicks with more scalability and security. Please share your thoughts about it.
I will be able to guide you then accordingly.


The cloud definitely doesn't always guarantee seamless fail-over that's for sure.
Outages can occur with cloud providers as well as non-cloud based providers. A very well known cloud provider experienced some downtime recently that disrupted their services across multiple regions when only one region had issues.


The LAMP stack is a group of programs that can be used to serve dynamic pages and applications written in PHP. Each letter is responsible for a separate program:L-Linux,E-Engine-X,M-MySQL,P-PHP.

Check the operation of your LAMP stack in order to verify that Nginx can correctly transfer .php files to your PHP processor.
Let's do this by opening a new file called info.php in any text editor:
nano /var/www/vash_domen/info.php
We enter the following lines into the new file. This is a valid PHP code that will return information about your server:

After that, we will save and close the file. If you have used nano, you can do this by typing CTRL+X, and then ENTER to confirm.
Now, we will get access by connecting through a browser using a domain or IP address.
We will see a page containing detailed information about our server:

After checking the relevant information about your PHP server on this page, it is best to delete the file you created, since it contains confidential information. Let's do this with the following command:
sudo rm /var/www/vash_domen/info.php
You can always restore this file if you need it later.