How to set up Laravel Forge on Webdock

Last updated: November 10th 2022

Introduction

Laravel Forge is a cloud management panel. It helps you deploy PHP applications on your Webdock server.

Prerequisites

  • A fresh Webdock cloud Ubuntu Focal instance.

Create new shell user and SSH to your server

Create new shell user. After creating the shell user, on the right side, enable "Passwordless Sudo" and apply the settings.

Connecting your Webdock server to Laravel Forge

Log into your Laravel Forge control panel.

Select Custom VPS.

Set IP Address to IP address of your Webdock server.

Change other fields (except the SSH port) as per your requirement. Leave Add Server's SSH Key To Source Control Providers as checked. This will copy any SSH keys you've added in the Laravel Forge control panel to your Webdock server (you can read more about this here).

Then click Create Server.

From the popup screen, store the sudo password and database password to a safe place as you will need those later to manage your server. Then copy the provided command.

WebSSH into your Webdock server.

Switch to root user by executing:

$ sudo su -

Paste the copied command into the WebSSH terminal to link your Webdock server with Laravel Forge.

Once the installation completes reload the Laravel Forge page and you should see that your Webdock server is connected.

Conclusion

Hopefully, by now you should have successfully linked your server to Laravel Forge.

Note: Make sure you point your domain to your Webdock server's IP address in your DNS records.

If you have any issues with the setup feel free to comment below or contact Webdock support.

 

  • Enter the coupon code GETFASTVPSNOW after signing up and get 5 Euro credit added to your account and experience our awesome VPS hosting for free.
We use cookies. Please see our Privacy Policy.