ServerPilot and WordPress on Google Compute VPS

Here you will learn how to connect Server Pilot with Google Compute VPS instance and run WordPress on it.

364
serverpilot on google

While today we have so many cloud hosting providers, many of them are not free long enough to let us play with their hosting infrastructure and stay after the free period expires.

We all know that Amazon free Tier is awesome, probably the best one up until recently.
Google has been busy and now it offers 365 days free to use their compute engine (or 300$ credit – whichever expires first).
To connect your VPS instance on Google to ServerPilot system you have to get your hands dirty a little bit to make it all work. It’s because Google likes to play it safe, where you can set up complete, fast and safe predefined WordPress environment through its dashboard.
But if you’re like me, you’ll want to use ServerPilot, Easy Engine or similar for “hands-free” server maintenance.

  1. Once you’ve created your instance on compute engine, there’s an SSH access right from the dashboard. Use it. The window (terminal) will open and then you do some typing.
  2. First type this:
    sudo su root

    – to switch to root access

  3. passwd root

    – to setup your password for “root”

  4. nano /etc/ssh/sshd_config

    You will notice how the file “sshd_config” has been opened inside the terminal window ready for editing.
    Here you’ll have to find next:

    PermitRootLogin

    … and set it to look like this:

  5. PermitRootLogin yes
  6. Find:
    PasswordAuthentication

    …and set it like this:

    PasswordAuthentication yes
  7. Then, to save your changes to the file press CTRL+X and follow instructions.
  8. After the file has been saved type in this:
    service ssh restart

    Now you’re ready to connect it with ServerPilot.

Cheers!

LEAVE A REPLY

Please enter your comment!
Please enter your name here