I figured I would take the time to write this up as it took me a little bit of fudging to get through it. I had never installed the stack to run Laravel on a production instance and it showed. Up until this point I have done my development on the Laravel Homestead Vagrant box.
This will work on any virtual server but I chose to got with a Digital Ocean Droplet. I chose to go with them for a mix of price, comfort, and performance. I have had several Droplets in the past and they all seemed to just work. I have never had an issue with them and the price really can't be beat for what you get.
Below you fill find the steps that I went through to create my instance. I will give the little hints for the sections that I encountered some issues in the hopes that you don't. Also, I have condensed the steps into as few as possible to make it easier to follow along without the out of order steps that I took. The stack you will be installing will contain:
The first thing you will want to do after you have a droplet created it sot make sure your OS has a reference to the latest packages from its repositories.Updage Packages Lists
sudo apt-get upate
Now you are ready to install all of the packages needed.Install Packages
sudo apt-get install git git-core php5 php5-mysql libapache2-mod-php5 mysql-server libmysqlclient-dev curl php5-mcrypt
Your software stack is now installed. You will still need to install composer but for the most part you are done. A little issue I had was that they module for mcrypt was not installed by default. I had to figure out how to get that installed and configured. Luckily it was not that hard, I included it in the install step earlier; but you still need to enable it.Enable PHP-5 Mcrypt
sudo php5enmod mcryptInstalling Composer
curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer
You are now setup and ready to create your new Laravel 4 project. Enjoy.