Upload Laravel 5.1 to Shared host

Wednesday, November 4, 2015

I have a Laravel 5.1 Project on my localhost (Apache) and I uploaded to my Shared Host via FTP (previosuly I was doing my last composer update locally).




  1. I was upload all files from my local server to shared server

  2. I was dump my database from my local server to my database on sharedhost

  3. I was config my .ENV file with the right configuration

  4. I was config my Virtual Host to point /public, (I paste the virtual host config here)



Virtual Host Configuration



<VirtualHost 194.140.166.118:80>
DocumentRoot /var/webs/dilemy.com/html/public
ServerName www.dilemy.com

ServerAlias dilemy.com

AssignUserId dilemycom dilemycomgroup

MaxClientsVHost 30

# awstats support
<Files "awstats.pl">
AuthUserFile /var/webs/dilemy.com/.awstats-passwd
AuthName "dilemy.com Stats"
AuthType Basic
require valid-user
</Files>

ErrorLog /var/webs/dilemy.com/logs/error.log
CustomLog /var/webs/dilemy.com/logs/access.log combined




When I try to access to my site www.dilemy.com it appears this errors from my errors.log



[Wed Nov 04 18:43:40 2015] [error] [client 88.10.131.34] PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/webs/dilemy.com/html/public/index.php on line 50


The structure of my Shared Host is like this:



/var/webs/dilemy.com


enter image description here



Thr structure of my project inside the /html directory is like this:



/var/webs/dilemy.com/html


enter image description here

0 comments:

Post a Comment