Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

omarsow94's avatar

Deploy with FTP

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 ?

0 likes
7 replies
ejdelmonico's avatar

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.

2 likes
omarsow94's avatar

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's avatar

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's avatar

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's avatar

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

omarsow94's avatar
The "public/storage" directory already exists.

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

Please or to participate in this conversation.