Access Prohibited! error 403

0

I downloaded a Github code written in php, and when wanting to run it on localhost, it sends me the following message:

**¡Acceso prohibido!**
**Usted no tiene permiso para acceder al objeto solicitado. El objeto está protegido contra lectura o el servidor no puede leerlo.
Si usted cree que esto es un error del servidor, por favor comuníqueselo al administrador del portal**

**Error 403**
localhost
Apache/2.4.33 (Unix) OpenSSL/1.0.2n PHP/7.2.4 mod_perl/2.0.8-dev Perl/v5.16.3**

I have searched everywhere, but I can not find a solution. Does anyone know why it happens and how can I solve it?

Thank you.

    
asked by Alejandro Villamizar 15.08.2018 в 15:35
source

1 answer

0

Check the permissions and the owner of the project files. Many times the error 403 is due to the web server does not have sufficient permissions to read the file and therefore can not execute the code that is inside.

If you have SSH access you can try:

chmod 755 $(find /home/villamzr/public_html -type d)
chmod 644 $(find /home/villamzr/public_html -type f)

Of course, change /home/villamzr/public_html for the route to your project.

    
answered by 15.08.2018 в 16:17