Search code examples
laravelovh

Cant' access laravel public folder on shared hosting


I recently installed a Laravel app on an OVH shared hosting (pro so I have ssh access). This is my installation structure :

user
    app
       public
    www

Site access is under 'www' so I created a symbolic link there: ln -s /home/user/app/public /home/user/www/index.html

The symlink is working and pointing to the laravel public folder when I check in Filezilla. However when trying to access the site I am getting a 403 Forbidden You don't have permission to access this resource.

What am I doing wrong here ?


Solution

  • I couldn’t get this to work, it is not a laravel related problem by the way, I assume ovh doesn’t allow symlinks to a protected folder on shared servers. A shame really but I ended up installing laravel in the www folder and preventing access to root with an .htaccess