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'm setting up a LAMP server, I installed apache2, mysql, and phpmyadmin via apt-get install, but I can't find phpadmin. It should be in 127.0.0.1/phpmyadmin, right? However, http://127.0.0.1/phpmyadmin just provides a 404 error.

I did add Include /etc/phpmyadmin/apache.conf to /etc/apache2/apache2.conf and restarted apache.

What I did wrong?

share|improve this question
    
does your apache user have access to the /etc/phpmyadmin/apache.conf file? what is the output of apache2ctl -S ? did you restart your apache after phpmyadmin installation ? –  Goez Jan 29 '13 at 18:57
    
@Goez Yeah I did restart. It outputted this and the virtual host information:Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName –  Christian Jan 29 '13 at 19:05
    
did you try 120.0.0.1/pma ? –  hunterman Jan 31 '13 at 15:11
    
Of course not. Why would I do so? And it doesn't work. @hunterman –  Christian Feb 1 '13 at 10:40
    
In my installation phpadmin adds alias "/pma" to its folder in apache config. Can you show your config file? –  hunterman Feb 2 '13 at 19:16
add comment

1 Answer

Should you get a 404 "Not Found" error when you point your browser to the location of phpMyAdmin (such as: http://localhost/phpmyadmin) this is likely caused by not checking the 'Apache 2' selection during installation. To redo the installation run the following:

 sudo dpkg-reconfigure -plow phpmyadmin

Then select Apache 2 for the webserver you wish to configure.

If this does not work, then you can do the following to include the phpMyadmin-shipped Apache configuration into Apache:

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
sudo /etc/init.d/apache2 reload

More info - https://help.ubuntu.com/community/phpMyAdmin

share|improve this answer
    
No, still doesn't work. Besides, I'm using debian. –  Christian Jan 30 '13 at 8:23
    
Can you check /var/log/apache2/error.log while browsing for phpmyadmin? Try to grep for phpmyadmin and post what you see. –  Daniel t. Jan 30 '13 at 14:43
add comment

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.