Find the answer to your Linux question:
Results 1 to 5 of 5
when i type in myipadress/phpmyadmin/ in my browser i get an 404 Not found. The xxx are of course replaced by my actual ipadress. And i have the correct syntax ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2011
    Posts
    47

    any advice on phpmyadmin issue


    when i type in myipadress/phpmyadmin/ in my browser i get an 404 Not found.
    The xxx are of course replaced by my actual ipadress. And i have the correct syntax in the beginning with http etc.
    i have installed both php5 and phpmyadmin and restarted my apache2

    any advice ?

    Thanks in advance guys..
    Last edited by akimelit; 11-24-2011 at 04:14 PM.

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Hey,

    What is your apache DocumentRoot? e.g.:
    Code:
    grep ^DocumentRoot /etc/httpd/conf/httpd.conf
    Note: the path to the httpd config file varies from distro to distro.

    What is the full path to your phpmyadmin? e.g. my documentRoot is /var/www/html and my phpmyadmin dir is in:
    Code:
    /var/www/html/phpmyadmin
    Any errors in your apache log? e.g.:

    Code:
    tailf /var/log/httpd/error_log
    and btw, you mean http, not html, right?

  3. #3
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,933
    Quote Originally Posted by atreyu View Post
    What is your apache DocumentRoot? e.g.:
    Code:
    grep ^DocumentRoot /etc/httpd/conf/httpd.conf
    Note: the path to the httpd config file varies from distro to distro.
    It might be in a separate file in the directory /etc/httpd/conf.d/

    On my CentOS server I have a file in there called (iirc) phpMyAdmin.conf
    Linux user #126863 - see http://linuxcounter.net/

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Oct 2011
    Posts
    47
    Hi guys this is what i have found regarding my phpadmin issue.

    My path to phpmyadmin is /usr/share/phpmyadmin

    And this is what i did find on the error.log in /var/log/error.log and why i get the 404

    [Sat Nov 26 17:39:55 2011] [error] [client xxx.xxx.xxx.xxx] File does not exist: /var/www/phpmyadmin
    [Sat Nov 26 17:40:08 2011] [error] [client xxx.xxx.xxx.xxx] File does not exist: /var/www/phpmyadmin

    Then after i did a remove and them reinstalled it again. It was the same as before.
    What could be the problem ? Isn't the file phpmyadmin file created automatically ? in /var/www/php upon installation.

    I must admit that im new to linux and so. my httpd.conf i blank it has no entries in it what so ever. Is this what causing this ?
    where and how should i best fix this..

    Thanks in advance guys. Hope someone can shead some light on this
    bare in mind that im relatively new to linux... But i'll learn more each day...

  6. #5
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    What is your disro and how did you install phpMyAdmin? It is likely that the package is available in your repos, which would in turn making configuring it easier. For example, I installed it on my RHEL 4 box (via the rpmforge repo with)

    Code:
    yum install phpmyadmin
    and on my Fedora 15 box I did:

    Code:
    yum install phpMyAdmin
    In both cases, the app installed to /usr/share/ and an apache config file, as Roxoff pointed out, to the apache auxiliary config dir:

    Code:
    /etc/httpd/conf.d/
    But you may not have to bother with that (or maybe you already installed it that way). Check out the contents of this file, your problem may be there. For example:
    Code:
    # cat /etc/httpd/conf.d/phpmyadmin.conf
    <Directory "/usr/share/phpmyadmin">
      Order Deny,Allow
      Deny from all
      Allow from 127.0.0.1
    </Directory>
    
    Alias /phpmyadmin /usr/share/phpmyadmin
    Alias /phpMyAdmin /usr/share/phpmyadmin
    The bolded line says "only allow the local machine to connect to the phpMyAdmin webpage". You can change it to Allow from all temporarily to see if you can connect from other machines.

    The Alias lines make the directories in the 3rd column, e.g. /usr/share/phpmyadmin, available in the URL path given in the 2nd column, e.g. /phpmyadmin. So, you should be able to go to http://localhost/phpmyadmin and access the files in /usr/share/phpmyadmin.

    If you need to make changes to this file, you need to restart apache, e.g.:

    Code:
    /etc/init.d/httpd restart

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •