(13)Permission denied: Can't open directory for index

Discussion in 'Installation/Configuration' started by staff007, Aug 5, 2011.

Thread Status:
Not open for further replies.
  1. staff007

    staff007 New Member

    Hello every one. I have problem with CentOS httpd + ispconfig 3

    httpd don't show Options +Indexes

    Code:
    <LocationMatch "^/+$">
        Options +Indexes
        #ErrorDocument 403 /error/noindex.html
    </LocationMatch>
    
    
    Int Options -Indexes

    change to +Indexes but now get (13)Permission denied: Can't open directory for index

    How now switch on Directory Listening
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Where did you add the above config options?
     
  3. staff007

    staff007 New Member

    it's by default /etc/httpd/conf.d/welcome.conf

    and how start with ispconfig 3 directory listening ?
     
  4. staff007

    staff007 New Member

    anybody answer or no ?
     
  5. falko

    falko Super Moderator Howtoforge Staff

    Have you tried adding your directives to the Apache Directives field in ISPConfig? you can add this for each web site for which you want to have directory indexes enabled.
     
  6. staff007

    staff007 New Member

    Nothing

    get this error

    Forbidden

    You don't have permission to access / on this server.

    (13)Permission denied: Can't open directory for index
     
  7. staff007

    staff007 New Member

    I solved the listing problem. In ISPConfig3, go to System > Server Config > "Server name" > Web Tab > Security Level : High > Medium
     
  8. chris_yooo

    chris_yooo New Member

    hey i got the same problem and i cant fix them with the security level on medium :S

    i have an subdomain (vhost) (dl.xtreams.net) with path to dl configured in ispconfig and my .htaccess dont work.

    when php is set to disable i get this error:

    [Mon Sep 26 15:57:24.753736 2022] [authz_core:error] [pid 533615:tid 139905305081600] [client 149.224.35.99:50837] AH01630: client denied by server configuration: /var/www/dl.xtreams.net/dl/index.php

    when php fast cgi maybe 7.4 activated is then i get this:

    [Mon Sep 26 15:58:49.755556 2022] [autoindex:error] [pid 533963:tid 139688418113280] (13)Permission denied: [client 149.224.35.99:50867] AH01275: Can't open directory for index: /var/www/dl.xtreams.net/dl/


    I tryed much fixxes from google...
    among others -> apache directive in this subdomain:

    <Directory /var/www/dl.xtreams.net/dl>
    Options +Indexes
    </Directory>

    I changed within apache2.conf

    <Directory />
    Options FollowSymLinks
    AllowOverride All
    Require all denied
    </Directory>

    <Directory /usr/share>
    AllowOverride None
    Require all granted
    </Directory>

    <Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
    </Directory>

    and in the file /usr/local/ispconfig/server/conf/vhost.conf.master

    the AllowOverride None to All:

    <tmpl_hook name='apache2_vhost:header'>

    <Directory {tmpl_var name='web_basedir'}/{tmpl_var name='domain'}>
    AllowOverride All
    <tmpl_if name='apache_version' op='>' value='2.2' format='version'>
    Require all denied
    .....

    what am i doing wrong :D
     

    Attached Files:

  9. till

    till Super Moderator Staff Member ISPConfig Developer

    You reopened a thread from 2011. I'll close this now. Do not reopen old threads, make a new one.
     
    chris_yooo likes this.
Thread Status:
Not open for further replies.

Share This Page