Permission denied: file permissions deny server access

Discussion in 'ISPConfig 3 Priority Support' started by vmbelizario, Nov 29, 2017.

  1. vmbelizario

    vmbelizario New Member

    Hi,
    Im using a new website in a ISPconfig Panel with Apache.
    when i'll try to access the website, i got this:

    You don't have permission to access /media/cache/joiaTry400/uploads/joias_try/ba8ab673f0244367182707adbef15814c35d01aa.png on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    All files are with chmod -R 775 and chown -R web106.client1
    SELINUX its disabled.
    Can someone help me ?
     
  2. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Please check the error log of the web.
     
  3. vmbelizario

    vmbelizario New Member

    Sorry, i forgot to post.
    This is the error :

    [Wed Nov 29 09:42:05.860070 2017] [core:error] [pid 7758] (13)Permission denied: [client XXX.XX.XXX.XXX:59985] AH00132: file permissions deny server access: /var/www/clients/client1/web106/web/web/media/cache/joiaTry400/uploads/joias_try/ba8ab673f0244367182707adbef15814c35d01aa.png
     
  4. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Is "SuExec" enabled for the web? And if yes, check the file ownership of this file if it has read rights.
     
  5. vmbelizario

    vmbelizario New Member

    ls -alF /usr/sbin/suexec
    -r-x--x--- 1 root apache 15360 Nov 14 2016 /usr/sbin/suexec*
    [root@ispserver web]# grep suexec /var/log/httpd/error_log
    [Wed Nov 29 09:20:18.341235 2017] [suexec:notice] [pid 4142] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

    Suexec need to be here ?
    /usr/sbin/httpd -l
    Compiled in modules:
    core.c
    mod_so.c
    http_core.c
     
  6. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    No, that should be fine. I meant suexec being enabled on the web itself (checkbox inside ISPConfig).
     
  7. vmbelizario

    vmbelizario New Member

    Yes, the checkbox its selected in panel. Where else can be this problem ?
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    ls -la /var/www/clients/client1/web106/web/web/media/cache/joiaTry400/uploads/joias_try/
     

Share This Page