403 Forbidden Symlink in shared hosting

  cpanel, php, shared-hosting, symfony, symlink

I’m deploying a symfony5 app on a shared hosting service for a subdomain.

I added in cpanel the subdomaine test.domain.com with this document root public_html/test

In order to have access to the my app I created a symlink with this command :

ln -s myapp/public public_html/test

this is what I get when I try to access to my subdomain test.domain.com:


You don’t have permission to access this resource.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

I added Options FollowSymLinks in htaccess but it didn’t work. any help please?

Source: Symfony Questions