Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 at 20:07

1 Answer 1

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 at 12:23

Your Answer

 
discard

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.