PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, February 9, 2022

[FIXED] Access to phpmyadmin denied

 February 09, 2022     apache2, phpmyadmin     No comments   

Issue

I just installed apache2 server php5, mysql and phpmyadmin today and I cant the access to myphpadmin through localhost/myphpadmin is denied.

I first changed the folder /etc/apache2/conf.d/phpmyadmin.conf in order to allow 127.0.0.1 see below

    # phpMyAdmin default Apache configuration

    Alias /****** /usr/share/phpmyadmin

    <Directory /usr/share/phpmyadmin>
        Options FollowSymLinks
        DirectoryIndex index.php

        <IfModule mod_php5.c>
            AddType application/x-httpd-php .php

            php_flag magic_quotes_gpc Off
            php_flag track_vars On
            php_flag register_globals Off
            php_admin_flag allow_url_fopen Off
            php_value include_path .
            php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
            php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/
        </IfModule>

        Order Deny,Allow
            Deny from all
            Allow from 127.0.0.1

    </Directory>

[...]

then I also changed the rules inside /usr/share/phpmyadmin/config.sample.inc.php in order to make [AllowNoPassword]to true.

I dont know what to do in order to allow myphpadmin to access apache2?

Thank you for your response.


Solution

Are you typing localhost/myphpadmin or localhost/phpmyadmin..??

Second, changing rules inside config.sample.inc.php won't get you anything until you rename this file to config.inc.php

Third, if you are doing this in order to understand how things work then it's fine but if you want to get on to some serious development then imho, you should try xampp (comes for linux and mac also) as it will free you from environment setup pains..



Answered By - 000
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing