{"id":872,"date":"2017-03-17T19:58:49","date_gmt":"2017-03-17T14:28:49","guid":{"rendered":"https:\/\/www.wikitechy.com\/technology\/?p=872"},"modified":"2017-03-29T15:50:53","modified_gmt":"2017-03-29T10:20:53","slug":"phpmyadmin-not-working","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/technology\/phpmyadmin-not-working\/","title":{"rendered":"[Solved- 8 Answers] PhpMyadmin not working"},"content":{"rendered":"<p><label class=\"label label-warning\">PROBLEM:<\/label><\/p>\n<p><b>ubuntu-11.04<\/b><\/p>\n<ul>\n<li>When we try<strong> http:\/\/localhost\/phpmyadmin\/\u00a0<\/strong><\/li>\n<\/ul>\n<ul>\n<li>We get this error on my browser<\/li>\n<\/ul>\n<blockquote>\n<figure id=\"attachment_893\" aria-describedby=\"caption-attachment-893\" style=\"width: 470px\" class=\"wp-caption aligncenter\"><img fetchpriority=\"high\" decoding=\"async\" class=\"wp-image-893 size-full\" src=\"https:\/\/www.wikitechy.com\/technology\/wp-content\/uploads\/2017\/03\/phpmyadmin-not-found.png\" alt=\"PhpMyadmin not working\" width=\"470\" height=\"215\" \/><figcaption id=\"caption-attachment-893\" class=\"wp-caption-text\">PhpMyadmin not working<\/figcaption><\/figure><\/blockquote>\n<p><label class=\"label label-info\">SOLUTION 1:<\/label><\/p>\n<ul>\n<li>You will need to configure your apache2.conf<\/li>\n<\/ul>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <span class=\"code-embed-name\">php code<\/span> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\">gksu gedit \/etc\/apache2\/apache2.conf <\/code><\/pre> <\/div>\n<ul>\n<li>You can add the following line to the end of the file.<\/li>\n<\/ul>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <span class=\"code-embed-name\">php code<\/span> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\">Include \/etc\/phpmyadmin\/apache.conf <\/code><\/pre> <\/div>\n<ul>\n<li>Then restart apache<\/li>\n<\/ul>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <span class=\"code-embed-name\">php code<\/span> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\">\/etc\/init.d\/apache2 restart <\/code><\/pre> <\/div>\n<p><label class=\"label label-info\">SOLUTION 2:<\/label><\/p>\n<p><strong>Sample code:<\/strong><\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <span class=\"code-embed-name\">php code<\/span> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\">sudo ln -s \/etc\/phpmyadmin\/apache.conf \/etc\/apache2\/conf-available\/phpmyadmin.conf <br\/>sudo a2enconf phpmyadmin <br\/>sudo service apache2 reload <\/code><\/pre> <\/div>\n[ad type=&#8221;banner&#8221;]\n<p><label class=\"label label-info\">SOLUTION 3:<\/label><\/p>\n<p><strong>Ubuntu 16.04<\/strong><\/p>\n<ul>\n<li>After installing and setting up user and password in mysql and phpmyadmin execute following command<\/li>\n<\/ul>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <span class=\"code-embed-name\">php code<\/span> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\">sudo apt install php-gettext<\/code><\/pre> <\/div>\n<p><label class=\"label label-info\">SOLUTION 4:<\/label><\/p>\n<ul>\n<li>Open terminal and the user using the command:<\/li>\n<\/ul>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <span class=\"code-embed-name\">php code<\/span> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\">sudo su<\/code><\/pre> <\/div>\n<ul>\n<li>After installing phpmyadmin using instructions, open\u00a0<b>\/<\/b><b>etc<\/b><b>\/apache2\/<\/b><b>conf<\/b><b>-available<\/b><\/li>\n<li>You will find a file named\u00a0<b>phpmyadmin.conf<\/b><b>.<\/b> Copy it to\u00a0<b>\/<\/b><b>etc<\/b><b>\/apache2\/<\/b><b>conf<\/b><b>-enabled<\/b><\/li>\n<\/ul>\n<p><strong>simply use the command<\/strong><\/p>\n<p>&nbsp;<\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <span class=\"code-embed-name\">php code<\/span> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\">sudo cp \/etc\/apache2\/conf-available \/etc\/apache2\/conf-enabled <\/code><\/pre> <\/div>\n<ul>\n<li>Restart apache2 (<b>sudo<\/b><b> service apache2 restart<\/b>) and then open the link <b>localhost\/phpmyadmin <\/b>in a browser.<\/li>\n<\/ul>\n<p><label class=\"label label-info\">SOLUTION 5:<\/label><\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <span class=\"code-embed-name\">javascript code<\/span> <\/div> <pre class=\"language-javascript code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-javascript code-embed-code\">sudo sed -i &#039;$ a\\Include \/etc\/phpmyadmin\/apache.conf&#039; \/etc\/apache2\/apache2.conf &amp;&amp; sudo service apache2 restart &amp;&amp; sudo apt-get install php-gettext` <\/code><\/pre> <\/div>\n[ad type=&#8221;banner&#8221;]\n<p><label class=\"label label-info\">SOLUTION 6:<\/label><\/p>\n<ul>\n<li>Firstly check if the directory <b>\/<\/b><b>usr<\/b><b>\/share\/phpmyadmin\/ <\/b>exists. If it does, just move it to <b>\/<\/b><b>var<\/b><b>\/www\/phpmyadmin <\/b>by executing this command:<\/li>\n<\/ul>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <span class=\"code-embed-name\">php code<\/span> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\">mv \/usr\/share\/phpmyadmin \/var\/www\/phpmyadmin<\/code><\/pre> <\/div>\n<ul>\n<li>Open your browser and open http:\/\/localhost\/phpmyadmin.<\/li>\n<\/ul>\n<p><label class=\"label label-info\">SOLUTION 7:<\/label><\/p>\n<p><b>Ubuntu 16.04<\/b><\/p>\n<p>Two options<\/p>\n<p>Enter these commands for the specific error if your prior configuration:<\/p>\n<ul>\n<li>sudo apt-get update<\/li>\n<li>sudo apt-get install php-gettext php-mbstring<\/li>\n<li>sudo service apache2 restart<\/li>\n<\/ul>\n<p>Or remove and start a fresh install:<\/p>\n<ul>\n<li>sudo service mysql stop<\/li>\n<li>sudo apt-get &#8211;purge remove mysql*<\/li>\n<li>sudo apt-get &#8211;purge remove phpmyadmin<\/li>\n<li>sudo apt-get autoremove<\/li>\n<li>sudo apt-get autoclean<\/li>\n<li>sudo apt-get update<\/li>\n<li>sudo apt-get install mysql-server phpmyadmin php-gettext php-mbstring<\/li>\n<li>sudo service apache2 restart<\/li>\n<\/ul>\n<p><label class=\"label label-info\">SOLUTION 8:<\/label><\/p>\n<p><b>Run the following code with root permission in terminal:<\/b><\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <span class=\"code-embed-name\">php code<\/span> <\/div> <pre class=\"language-php code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-php code-embed-code\">sudo ln -s \/usr\/share\/phpmyadmin \/var\/www<\/code><\/pre> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>PROBLEM: ubuntu-11.04 When we try http:\/\/localhost\/phpmyadmin\/\u00a0 We get this error on my browser SOLUTION 1: You will need to configure your apache2.conf You can add the following line to the end of the file. Then restart apache SOLUTION 2: Sample code: [ad type=&#8221;banner&#8221;] SOLUTION 3: Ubuntu 16.04 After installing and setting up user and password [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":893,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[1687,1693,1685,1698,1684,1688,1683,1697,1696,1686,1695,1694,1692,1689,1690,1691],"class_list":["post-872","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","tag-but-sendmail-through-command-prompt-works","tag-error-conf-phpmyadmin-does-not-exist","tag-how-i-can-fix-problem-htaccess","tag-http-127-0-0-1phpmyadmin-not-found","tag-incomming-curl-being-denied","tag-installing-curl-on-ubuntu-12-04","tag-is-it-possible-to-access-my-vps-from-internet-without-having-a-domain","tag-localhost-phpmyadmin-not-found-wamp","tag-localhostphpmyadmin-not-found-windows","tag-php-mail-not-working","tag-phpmyadmin-not-found-nginx","tag-phpmyadmin-not-found-wamp","tag-phpmyadmin-not-found-windows","tag-phpmyadmin-not-working-in-wamp","tag-phpmyadmin-not-working-windows","tag-the-requested-url-phpmyadmin-was-not-found-on-this-server-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/872","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/comments?post=872"}],"version-history":[{"count":0,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/872\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/media\/893"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/media?parent=872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/categories?post=872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/tags?post=872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}