403 Forbidden PHPMyAdmin- CentOs 6

Discussion in 'Systems Administration' started by rwsender, Feb 16, 2015.

  1. I'm trying to install phpmyadmin on my centos VPS, I've set it up a few times before with no problems, this time I cannot access it. Here is my .conf file..

    Code (Text):

    # 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
    Alias /phpmyadmin /usr/share/phpMyAdmin

    <Directory /usr/share/phpMyAdmin/>
      AddDefaultCharset UTF-8

      <IfModule mod_authz_core.c>
      # Apache 2.4
      <RequireAny>
      </RequireAny>
      </IfModule>
      <IfModule !mod_authz_core.c>
      # Apache 2.2
      #  Order Deny,Allow
      Allow from All
      </IfModule>
    </Directory>

    <Directory /usr/share/phpMyAdmin/setup/>
      <IfModule mod_authz_core.c>
      # Apache 2.4
      <RequireAny>
      </RequireAny>
      </IfModule>
      <IfModule !mod_authz_core.c>
      # Apache 2.2
      # Order Deny,Allow
      Allow from All
      </IfModule>
    </Directory>

    # These directories do not require access over HTTP - taken from the original
    # phpMyAdmin upstream tarball
    #
    <Directory /usr/share/phpMyAdmin/libraries/>
      # Order Deny,Allow
      Allow from All
    </Directory>

    <Directory /usr/share/phpMyAdmin/setup/lib/>
      # Order Deny,Allow
      Allow from All
    </Directory>

    <Directory /usr/share/phpMyAdmin/setup/frames/>
      # Order Deny,Allow
      Allow from All
    </Directory>

    # This configuration prevents mod_security at phpMyAdmin directories from
    # filtering SQL etc.  This may break your mod_security implementation.
     
     
  2. Edit apache2.conf, and then include the phpmyadmin configuration.
     
  3. nano /etc/apache2/apache2.conf. ?

    I've tried this but when I open it it just appears blank.
     
  4. In CentOS its different.

    Was something with http.d or something.
     
  5. Does the apache user have access to phpmyadmin directory?
     
  6. Fixed this, thanks! it was

    nano /etc/httpd/conf.d/phpmyadmin.conf

    'Allow from All'