Search code examples
phplaravelvhosts

Running Laravel on VPS server


Hello I installed Laravel on my VPS server, I created a vhost like the following :

<VirtualHost *:80>
        ServerName mysite.uplink.com
        DocumentRoot var/www/httpdocs/uplink/public

       <Directory var/www/httpdocs/uplink/public>
          <IfModule mod_rewrite.c>
          Options -MultiViews
          RewriteEngine On
          RewriteCond %{REQUEST_FILENAME} !-f
         RewriteRule ^ index.php [L]
       </IfModule>
</Directory>
</VirtualHost>

When I go to mysite.uplink.com it shows : Error in exception handler what I'm doing wrong please? Also I dont know if I should put 80 as the port or an other one.

Thanks


Solution

  • You need to give 755 permissions to the storage folder and all of the directories within it.

    chmod -R 755 /path/to/app/storage
    

    Hope this helps!