Laravel on Digitalocean via Git

1) Create a droplet, usgin Lamp + Ubuntu;

2) https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04;

3) install git;

4) git clone yout project on /var/www/html;

5) alter apache site default conf to point your root public html to /var/www/html/public;

6) install composer;

7) run composer update to create vendor folder;

8) sudo chown -R www-data: /var/www/html/

9) php artisan key:generate

10) sudo a2enmod rewrite

11) Add ‘extension=pgsql.so’ on php.ini

sudo vim /etc/php5/apache2/php.ini

12) sudo service apache2 restart

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s