[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 477
  • Last Modified:

Error when trying to access phpmyadmin through browser

Hi:
I have a Centos 6 server. I installed phpMyAdmin following directions found in this link http://www.itbox4vn.com/2011/08/how-to-install-phpmyadmin-34-on-centos.html
I substituted the version for 3.4.5. After installation, when I try to access phpMyadmin through the browser I get:
404 Not Found

Thanks!
0
pcelements
Asked:
pcelements
  • 4
  • 3
  • 2
1 Solution
 
Hugh McCurdyCommented:
It sounds like the file doesn't exist.  

How exactly are you trying to get to phpMyadmin?  (You can change the domain of the URL if you are trying to keep that a secret.)

Thanks for letting me know that Centos 6 is out.  I lost track of the status.
0
 
pcelementsAuthor Commented:
I try to access from the server in the browser by going to http://localhost/phpmyadmin or from another computer by http://172.xxx.xx.xx/phpmyadmin
0
 
Hugh McCurdyCommented:
It might be http://172.xxx.xx.xx/phpmyadmin.php

Just a guess.  If you know how, look around from the shell to see what's there.  
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
pcelementsAuthor Commented:
What do you mean?
0
 
Hugh McCurdyCommented:
The URL might need a .php on the end so that the file is processed by the PHP pre-processor.  This is assuming the file even exists.

Looking around is a suggestion that, if the above suggestion doesn't solve the problem, that you try to find out what the file is actually called.
0
 
ropennerCommented:
find the apache or web server directory.
check the phpmyadmin configuration file in the:
 ...... apache2/conf.d/

called
     phpmyadmin.conf

in there it will give the directory that phpmyadmin is in and what alias will get you there in a line like.

   Alias /phpmyadmin /usr/share/phpmyadmin

ensure that the '/usr/share/phpmyadmin' path exists and is readable by the apache process (possibly www-data user and group)
0
 
pcelementsAuthor Commented:
phpMyadmin was installed in the /var/www/html/phpmyadmin/ directory. My webites are in /var/www/virtualdomains/ directory. My apache directory is located at /etc/httpd/. I have no phpmyadmin.conf file here or in any of the directories mentioned.
0
 
ropennerCommented:
There will need to be this line somewhere in the apache /etc/httpd configuration.  Either httpd.conf, apache2.conf or conf.d/somefile.conf depending on the apache version.
 
   Alias /phpmyadmin /var/www/html/phpmyadmin

I don't think it matters where it appears as long as it is in one of those files.  I think apache2 has split up the original single configuration file that used to be called httpd.conf into multiple files now but they all get loaded on startup.  Therefore as long as one of them gives the phpmyadmin alias to the correct location of the phpmyadmin install it will be found after restarting apache
0
 
pcelementsAuthor Commented:
I added the line Alias /phpmyadmin /var/www/html/phpmyadmin to the httpd.conf file and I was able to access phpmyadmin. Thanks!!!
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now