SiteHost

Forge on SiteHost

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 $12 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, 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

You will need:

  1. A Linux VPS running latest version of Ubuntu.
  2. A Github account (Free).
  3. A Forge account (From $12 USD / month).

Setup

Please follow these 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 Github 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 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/.