Hello. I’m iki, and today we gonna learn to install LAMP on Google Cloud.
First we have to go to Google Cloud Console.
If it’s the first time you register or use these services, remember that Google gives you 300 free dollars. This is an equivalent to 3 months of server.
We have a section called Compute Engine, where we can deploy our private servers.
I can create a new server and install everything from scratch, but luckily we have the market, which provides us with servers with components already installed.
So first i’m going to create a new server.
Then I go to the marketplace and select the type of component I want. In my case LAMP in the CENTos operating system.
Below we can see the prices.
We press start.
Here we can configure specifications of the machine that we will use as a server.
This will depend on each case, the use you give it, the number of users you are going to have or the amount of data.
What I always recommend is to configure a solid disk to have higher processing speed.
Finally, we click on implement.
Once installed, the first thing to do is configure a static IP address. Let’s go to the instructions to make it faster.
This takes me to the vpc network menu, where I will be able to manage my IP addresses.
What I’m going to do now is reserve the one that has already been assigned to me automatically, and in this way it will become static.
I’m going to click on the right link for helpful installation instructions, and then I open the console.
The first thing to do, is to set a password for the mysql administrator account.
I’ll use some of the commands in the tutorial to do this.
I must first log in with the default password.
and now I have to set my own password.
Consequently, I update the database.
Ok, let’s create a new account.
We are going to establish a user, and a password.
I’m going to grant that user administrative privileges.
We need to update the database again.
If we go back to Compute Engine, we will see that our virtual machine tells us the corresponding IP.
We are going to use it to access PHPmyAdmin.
now we log in with the pertinent data.
There we go. Now we have to install lamp.
I quit mysql so I add a new website in lamp, setting a name, and a directory path
finally, we add our email adress.
And with that we have everything installed.
Google Cloud Console:
Commands (from Official Instructions):