Answers.Body: <p>This is caused by setting the civicrm files directory be under /web/. The web server does not allow directory browsing.</p>
  <p>Things that didn't work</p>
  <ul>
  <li>menu rebuild</li>
  <li>cache rebuild</li>
  <li>checking permissions</li>
  <li>comparing the installation</li>
  <li>overriding hook_toolbar</li>
  <li>debugging AccessManager.php</li>
  </ul>
  <p>Looking at the web server error logs, and seeing that 403 was on the directory provided the hint.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-04-21T02:56:59.630Z
Answers.LastActivityDate: 2023-04-21T02:56:59.630Z
Answers.UserDisplayName: Interlated
Body: <p>CiviCRM is generally working. The default myhost.com/civicrm url has a 'permission denied' error.</p>
  <p><a href="https://i.sstatic.net/FzUIF.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/FzUIF.png" alt="Permission denied on the default url" /></a></p>
  <p>The dashboard when using the full link works</p>
  <p><a href="https://i.sstatic.net/SF58D.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/SF58D.png" alt="CiviCRM dashboard" /></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-04-19T20:00:11.883Z
Comments.Text: I have not run into that, but the bare url page doesn't do anything in my experience anyway. You always have to have some additional element on the URI
Comments.UserDisplayName: kapn
Tags: <installation>
Title: How fix 'permission denied' on the default /civicrm url in a new install?
ThreadText: # How fix 'permission denied' on the default /civicrm url in a new install?
  
  (Asked by: username_0 on 2023-04-19)
  
  CiviCRM is generally working. The default myhost.com/civicrm url has a 'permission denied' error.
  
  [![Permission denied on the default url](https://i.sstatic.net/FzUIF.png)](https://i.sstatic.net/FzUIF.png)
  
  The dashboard when using the full link works
  
  [![CiviCRM dashboard](https://i.sstatic.net/SF58D.png)](https://i.sstatic.net/SF58D.png)
  
  **Tags:** installation
  
  > **Comments:**
  > **username_1**: I have not run into that, but the bare url page doesn't do anything in my experience anyway. You always have to have some additional element on the URI  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2023-04-21. Score: 1 | Accepted answer
  
  This is caused by setting the civicrm files directory be under /web/. The web server does not allow directory browsing.
  
  Things that didn't work
  
  * menu rebuild
  * cache rebuild
  * checking permissions
  * comparing the installation
  * overriding hook\_toolbar
  * debugging AccessManager.php
  
  Looking at the web server error logs, and seeing that 403 was on the directory provided the hint.
  
  
  ---
  
  