Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed phpmyadmin and apache 2.2 on my system. I have configured my conf/httpd file as said by changing the "DirectoryIndex index.php"

But when i try to access my localhost/phpmyadmin/, a php code page appears and not the login page.

Help appreciated.

Thanks, Shiva..

share|improve this question
More information? What have you done to try and solve your problem. What do you mean by code page. What do your logs say. – Drew Khoury Feb 17 '14 at 20:07

You also need to install php so it can render the code.

Depends on your OS which is not mentioned, just google on how to install php (ex, in centos: yum install php or apt-get install php5 for debian alike ; it should also install the dependencies)

Then you need to restart apache and it should execute the php code.

Good luck

share|improve this answer
The OP should also use his distro's package system to install phpmyadmin. It will certainly depend on php and probably libapache2-mod-php5 etc., so they'll automatically get installed too. – Andrew Schulman Feb 16 '14 at 12:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.