I'm trying to install phpmyadmin on my new server, following this guide
apt-get install phpmyadmin
nano /etc/apache2/apache2.conf
then added phpmyadmin to apache configuration:
Include /etc/phpmyadmin/apache.conf
and restarted apache:
service apache2 restart
All this by SSH.
But now when i try to access: x.x.x.x/phpmyadmin all that i get is that my browser downloads a file... Can someone help with this?
Once phpMyAdmin is installed point your browser to http://localhost/phpmyadmin to start using it. You should be able to login using any users you've setup in MySQL. If no users have been setup, use admin with no password to login. Then select Apache 2 for the webserver you wish to configure.
I solved this problem by changing the proxy of my firefox browser, go to menu tools-Option find tab Network, click button settings. Fill the text box below No Proxy for with localhost. Then press Ok, then Ok again. Try now typing localhost/xampp then it should show Welcome to XAMPP for Windows!
sounds like you don't have PHP installed / configured correctly. as per the guide you referenced "Before working with phpMyAdmin you need to have LAMP installed on your server. If you don't have the Linux, Apache, MySQL, PHP stack on your server, you can find the tutorial for setting it up here..."
If you are sure that you do have lamp-stack just open up your terminal and type edit
/etc/apache2/apache2.conf
and paste the following at the end of file
Include /etc/phpmyadmin/apache.conf
Save the file and restart using sudo service apache2 restart
You can also visit https://help.ubuntu.com/community/phpMyAdmin for more details.
You can do two things I guess, as I've experienced both of them :
1. you need to add
sudo -H gedit /etc/apache2/apache2.conf
2. Add this line at last or somewhere in code:
Include /etc/phpmyadmin/apache.conf
3. restart :
sudo service apache2 restart
but this didn't worked for me(apache2 failed to restart), as it worked for many. Otherwise you can eve try:
ln -s /etc/phpmyadmin/apache.conf /etc/apache2/sites-enabled/001-phpmyadmin
Or
sudo dpkg-reconfigure phpmyadmin
and under webserver select: apache.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With