UPDATE: the solution was simple. I forgot to add PHP to the master domain where the symbolic link was pointing to:.
For example:
example1.com >> /var/www/clients/client1/web1/web/index.php
example2.com >> /var/www/clients/client1/web2/web/
symbolic link: web -> /var/www/clients/client1/web1/web/
As you can see, example2.com had a symbolic link to example1.com and in example1.com I had PHP disabled.
24-p5321-php-not-working-ispconfig.jpg
Today I started a migration from Godaddy to DigitalOcean dropplet or virtual machine to host my websites because I keep getting hacked on their servers.
I installed ispconfig3 on the new server and i have a script that is being used by multiple websites and domains.
I was able to create a symbolic link to the script but when I ran the PHP code, I would get this error:
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.
The solution was to add a .htaccess file and add the following code:
<Files ~ "\.(php)$">
Require all granted
</Files>
Resource: https://stackoverflow.com/questions/1300125/403-forbidden-response-what-should-i-look-for