(solved) Cannot access phpMyAdmin on web host vsp
Posted: Sun Mar 29, 2015 7:07 am
This is solved. Two solutions: fix up the phpMyAdmin.conf and fix up the php.ini. It would not surprise me that this may have been caused by a hack. I say this because of my viewing of the Apache log and some of the errors I was seeing. However I do not know enough about this to know if this is true.
Hi, I have a problem accessing phpMyAdmin on the web host even though I can successfully; 1/ log into the webhost via Putty and winSCP, 2/ I can access my website, 3/ I can see the data in my website showing that mysql is working. All along I have been accessing phpMyAdmin by keying in (on the browser) "MyIpAddress/phpMyAdmin/" and I have never had a problem. When I do this now I get nothing (the browser page stays white and it has a very quick reaction then acts as if I did nothing). If I click the browser refresh button I get the same reaction. Yesterday I was tightening up my home firewall but when I had this problem I decided to set the home firewall back to the defaults. After doing this everything described above is the same. If I enter "MyIpAddress/phpMyAdmi" (removing the last letter "n") I get "The requested URL /phpMyAdmi was not found on this server.". So that proves it is finding phpMyAdmin on my website but nothing is happening (blank page). So I guess that rules out all posibility that it has anything to do with my firewall. I did install "Fail2ban" but I can't see how this would have any effect unless it is changing my calling IP address somehow. I tried stopping fail2ban temporarily and this had no impact so I immediately turned fail2ban back on. At this point the only thing I can think to try is Google Search "cannot access phpmyadmin on webhost". So far they all mention a specific error coming up as opposed to my blank screen with no message. I changed the google search to "phpmyadmin gives blank page". He suggests debugging. I guess I will continue in that direction and keep posting links below that I find which may help. In the mean time, does anyone have any suggestions?
Thanks,
John
Ongoing Debugging and results so far from Links I have found so far with Google: "Debugging phpMyAdmin".
https://avastechnology.wordpress.com/ta ... hpmyadmin/
1/ Tried putting an echo and exit statement at the top of /usr/share/phpMyAdmin/index.php and it did not show. Conclusion is that this script is not being called.
2/ tried restarting apache. Same result in the previous test.
3/ I ran "yum remove phpmyadmin" then "yum install phpmyadmin" and both of these worked with no errors. However I still get the blank page.
4/ I put the echo and exit statements back in the top two lines of the /usr/share/phpMyAdmin/index.php file and I still get the blank page.
5/ Tried turning off the filewall on one machine at home (did a reboot after) but same blank page result (turned the firewall back on).
6/ I changed the name of the /usr/share/phpMyAdmin/index.php file to /usr/share/phpMyAdmin/index2.php and I get this message "forbidden You don't have permission to access /phpMyAdmin/ on this server."
7/ Okay so it is finding the /usr/share/phpMyAdmin/index.php but it can not execute it since it will not even display an echo statement at the very top.
8/ changed it back to index2.php and included that in the URL in the browser and it gets a blank page.
Conclusion: for sure it is finding the file but it executes it as a blank page or does not actually execute it. Permissions are RW and R and R.
9/ left index.php alone and created a brand new index2.php in the same directory /usr/share/phpMyAdmin/. It contains (echo "Hello";) without the round brackets (result blank page)not display.
Hi, I have a problem accessing phpMyAdmin on the web host even though I can successfully; 1/ log into the webhost via Putty and winSCP, 2/ I can access my website, 3/ I can see the data in my website showing that mysql is working. All along I have been accessing phpMyAdmin by keying in (on the browser) "MyIpAddress/phpMyAdmin/" and I have never had a problem. When I do this now I get nothing (the browser page stays white and it has a very quick reaction then acts as if I did nothing). If I click the browser refresh button I get the same reaction. Yesterday I was tightening up my home firewall but when I had this problem I decided to set the home firewall back to the defaults. After doing this everything described above is the same. If I enter "MyIpAddress/phpMyAdmi" (removing the last letter "n") I get "The requested URL /phpMyAdmi was not found on this server.". So that proves it is finding phpMyAdmin on my website but nothing is happening (blank page). So I guess that rules out all posibility that it has anything to do with my firewall. I did install "Fail2ban" but I can't see how this would have any effect unless it is changing my calling IP address somehow. I tried stopping fail2ban temporarily and this had no impact so I immediately turned fail2ban back on. At this point the only thing I can think to try is Google Search "cannot access phpmyadmin on webhost". So far they all mention a specific error coming up as opposed to my blank screen with no message. I changed the google search to "phpmyadmin gives blank page". He suggests debugging. I guess I will continue in that direction and keep posting links below that I find which may help. In the mean time, does anyone have any suggestions?
Thanks,
John
Ongoing Debugging and results so far from Links I have found so far with Google: "Debugging phpMyAdmin".
https://avastechnology.wordpress.com/ta ... hpmyadmin/
1/ Tried putting an echo and exit statement at the top of /usr/share/phpMyAdmin/index.php and it did not show. Conclusion is that this script is not being called.
2/ tried restarting apache. Same result in the previous test.
3/ I ran "yum remove phpmyadmin" then "yum install phpmyadmin" and both of these worked with no errors. However I still get the blank page.
4/ I put the echo and exit statements back in the top two lines of the /usr/share/phpMyAdmin/index.php file and I still get the blank page.
5/ Tried turning off the filewall on one machine at home (did a reboot after) but same blank page result (turned the firewall back on).
6/ I changed the name of the /usr/share/phpMyAdmin/index.php file to /usr/share/phpMyAdmin/index2.php and I get this message "forbidden You don't have permission to access /phpMyAdmin/ on this server."
7/ Okay so it is finding the /usr/share/phpMyAdmin/index.php but it can not execute it since it will not even display an echo statement at the very top.
8/ changed it back to index2.php and included that in the URL in the browser and it gets a blank page.
Conclusion: for sure it is finding the file but it executes it as a blank page or does not actually execute it. Permissions are RW and R and R.
9/ left index.php alone and created a brand new index2.php in the same directory /usr/share/phpMyAdmin/. It contains (echo "Hello";) without the round brackets (result blank page)not display.