Deploy with FTP

Published 9 months ago by omarsow94

I have

Forbidden
You don't have permission to access / on this server.

I don't know if it's the .htaccess or permissions in public/storage folder ?

ejdelmonico

Ok, so think about this. Re-read what you posted and tell me if you could answer that question without knowing how, when, etc of the deployment.

omarsow94

Excuse my english @ejdelmonico , i want to say : I deploy my laravel ( on OVH ) but i have

Forbidden
You don't have permission to access / on this server.

message trying to connect on my website

ejdelmonico

I doubt it's the .htaccess file but it is possible the directories above public are restricted by the host. Just look for an .htaccess file on that level to investigate. The permissions for public/storage and for storage/ should be 755 or rwxr-xr-x.

omarsow94

my .htaccess file :

<IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ public_html/africanagora/index.php [L]

</IfModule>

The permissions for public/storage and for storage/ are too 755 or rwxr-xr-x. @ejdelmonico

ejdelmonico

Did you perform php artisan storage:link? You will need command line access.

omarsow94
The "public/storage" directory already exists.

after running this commande line php artisan storage:link @ejdelmonico

Snapey
Snapey
9 months ago (1,038,085 XP)

duplicate thread

Please sign in or create an account to participate in this conversation.