Forge on SiteHost

RSS

Forge on SiteHost

Last updated January 23rd, 2015

Introduction

Don’t want to install, maintain and configure your web server? Don’t have enough time or knowledge about system administration? Forge from Laravel might be for you then. Starting at $10 USD a month you can have a nice and easy interface to deploy and maintain your websites.

When Forge is installed on your server it sets up Nginx, PHP 5.6, MySQL, Postgres, Redis and Memcache by default. It also allows you to run/configure your own daemons plus schedule actions directly from the web interface. Hassle free!

Requirements

There are only few requirements to use Forge. You will need:

  1. A Linux VPS running Ubuntu 14.04.
  2. A Github account (Free).
  3. A Forge account (From $10 USD / month).

Setup

Deploying your PHP app to a SiteHost Linux VPS is only a few easy steps away. All you have to do is follow these simple steps:

  1. Create a Linux VPS in the SiteHost Control Panel and connect to it via SSH.

  2. Login to Forge and create an account if necessary. You MUST link your Forge account with Githut to be able to start deploying applications. Forge has partnerships with some cloud providers but they are not required and you can easily use it with SiteHost. To do so just click on skip this step under Server Providers. Forge: step 2

  3. You are now being asked to create a server. All you have to do is specify the amount of RAM (1.5GB for example) and the IP address of the server. Hit the Create Server button, a popup will appear asking you to run a command on your server, copy/paste it into the terminal you opened earlier. Now wait until the server provisioning is finished. Forge: step 3-1 Forge: step 3-2

  4. You should now be redirected to the Server Page details. Here you can manage and configure your server. If you want to connect to the machine you need to click on the SSH Keys tab (1), copy/paste your public key and give it a name, then press the Add key button. Wait until your key is added and you will be able to connect with the user forge. Root access will have been disabled once the machine is provisioned by forge, but they would have sent you an email with the sudo password for user forge. Forge: step 4

  5. On the top menu click on Sites, choose the default one of the server you just provisioned. Forge: step 5

  6. You can now either deploy some preconfigured applications such as Wordpress or deploy your own project hosted in a Git Repository by clicking on the latter. Forge: step 6

    You can either use a Github repo or your own Git repository. In this example we use a public Github repository, the syntax for the Repository is user/repo. Here we are deploying the repository laravel belonging to the username laravel (https://github.com/laravel/laravel). Specify the branch you want to deploy and tick the Installation Options you need. Hit the Install Repository button and wait. Forge: step 6

  7. Once deployment is done you will be presented a new page with a couple of options allowing you to re-deploy for example.

  8. Open a browser and type your IP address in the navigation bar!

In case you have any trouble with Forge you can find documentation here: http://forge.besnappy.com/.

Can we improve this article? Suggest an improvement to this article.

Suggest an Improvement

Thank you for helping us to improve this Knowledge Base article. Please type your suggestions below:

Still need help? Get in touch with us.

If you aren't able to find the help you need then please send us a question and we can help you further.