Wednesday, 15 September 2010

php - Setup laravel app on digitalocen -



php - Setup laravel app on digitalocen -

i trying laravel site running on digital ocean. laravel app static no sql used , developed locally homestead.

i can site showing home page on ipaddress /public. won't link pages though. guessing rewrite problem having. want rid of /public , linking other pages. worry making work on domain

i followed phpacademys cloud server set-up tutorial https://www.youtube.com/watch?v=1-ok9d_6xrc difference used ubuntu 14.04 x64. while next tutorial found had html folder within /var/www. needed set app within html folder.

code setup

sudo apt-get update sudo apt-get install apache 2 sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt

i didnt utilize mysql because dont need app. static site laravel.

it said mcrypt needed used

sudo php5enmod mcrypt sudo service apache2 restart

then getting exception handler error, fixed with

chgrp -r www-data /var/www/html chmod -r 775 /var/www/html/app/storage

you need setup apache2 virtual host

cd /etc/apache2/sites-available

sudo nano myapp.conf

<virtualhost *:80> servername myapp.com serveralias www.myapp.com documentroot "/var/www/html/myapp/public" <directory "/var/www/html/myapp/public/"> allowoverride order allow,deny allow </directory> </virtualhost>

exit nano

sudo a2ensite myapp.conf sudo service apache2 restart

php laravel laravel-4 digital-ocean

No comments:

Post a Comment