title: 403 Error when accessing phpMyAdmin on an ec2 Instance
body: <p>I wanted to install a LAMP environment on a new EC2 instance using Amazon-Linux following <a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html" rel="nofollow">amazon's tutorial</a>. Then I wanted to have phpMyAdmin so I installed it using <code>sudo yum --enablerepo=epel install phpmyadmin</code> and created a link to the www directory <code>sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin</code>.</p>
  
  <p>Then I altered the <code>/etc/httpd/conf.d/phpMyAdmin.conf</code> file to allow access.</p>
  
  <p>The current file:</p>
  
  <pre><code># phpMyAdmin - Web based MySQL browser written in php
  # 
  # Allows only localhost by default
  #
  # But allowing phpMyAdmin to anyone other than localhost should be considered
  # dangerous unless properly secured by SSL
  
  Alias /phpMyAdmin /usr/share/phpMyAdmin
  
  &lt;Directory /usr/share/phpMyAdmin/&gt;
   AddDefaultCharset UTF-8
  
   Order allow,deny
   Allow from all
  &lt;/Directory&gt;
  
  # These directories do not require access over HTTP - taken from the original
  # phpMyAdmin upstream tarball
  #
  &lt;Directory /usr/share/phpMyAdmin/libraries/&gt;
      Order Deny,Allow
      Deny from All
      Allow from None
  &lt;/Directory&gt;
  
  &lt;Directory /usr/share/phpMyAdmin/setup/lib/&gt;
      Order Deny,Allow
      Deny from All
      Allow from None
  &lt;/Directory&gt;
  
  &lt;Directory /usr/share/phpMyAdmin/setup/frames/&gt;
      Order Deny,Allow
      Deny from All
      Allow from None
  &lt;/Directory&gt;
  
  # This configuration prevents mod_security at phpMyAdmin directories from
  # filtering SQL etc.  This may break your mod_security implementation.
  #
  #&lt;IfModule mod_security.c&gt;
  #    &lt;Directory /usr/share/phpMyAdmin/&gt;
  #        SecRuleInheritance Off
  #    &lt;/Directory&gt;
  #&lt;/IfModule&gt;
  </code></pre>
  
  <p>But still I'm getting a 403 error, when I try to access /phpMyAdmin</p>
  
  <p>error_log:</p>
  
  <pre><code>[Thu Aug 27 13:45:47.702678 2015] [authz_core:error] [pid 25763] [client 37.49.61.176:59958] AH01630: client denied by server configuration: /usr/share/phpMyAdmin/
  [Thu Aug 27 13:45:48.699611 2015] [authz_core:error] [pid 25763] [client 37.49.61.176:59958] AH01630: client denied by server configuration: /usr/share/phpMyAdmin/
  [Thu Aug 27 13:49:22.181819 2015] [authz_core:error] [pid 25765] [client 37.49.61.176:60222] AH01630: client denied by server configuration: /usr/share/phpMyAdmin/
  </code></pre>
  
  <p>What else could be the error?</p>