oliverrose99
Posts: 11
Joined: Mon Jun 10, 2013 8:53 pm

phpmyadmin navigation.php not found [FIXED]

Mon Mar 09, 2015 8:32 pm

Hi

I just installed phpmyadmin on Apache and configured it to connect to a remote server but when I go to the site it says "The requested URL /phpmyadmin/navigation.php< was not found on this server." I checked the directory and navigation.php is there. Any ideas?

Thanks.

EDIT

I have fixed the issue by completely redoing everything. Have no idea why it didn't work
Last edited by oliverrose99 on Mon Mar 09, 2015 9:55 pm, edited 2 times in total.

User avatar
DougieLawson
Posts: 40127
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: phpmyadmin navigation.php not found

Mon Mar 09, 2015 8:48 pm

In /etc/apache2/conf.d you should have a symlink
lrwxrwxrwx 1 root root 28 Mmm dd hh:mm phpmyadmin.conf -> ../../phpmyadmin/apache.conf

If that's there have you restarted Apache2 after you installed phpmyadmin?
Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

oliverrose99
Posts: 11
Joined: Mon Jun 10, 2013 8:53 pm

Re: phpmyadmin navigation.php not found

Mon Mar 09, 2015 9:04 pm

I'm getting permission denied with "sudo lrwxrwxrwx 1 root root 28 Mmm dd hh:mm phpmyadmin.conf -> ../../phpmyadmin/apache.conf"

I've added 'Include /etc/phpmyadmin/apache.conf' to apache2.conf following a guide but it normally works

User avatar
DougieLawson
Posts: 40127
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: phpmyadmin navigation.php not found

Mon Mar 09, 2015 9:13 pm

Use the ls command to see if the symlink exists. Don't try to type in my sample output as a command, that won't work.
Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

User avatar
ioha
Posts: 106
Joined: Tue Feb 24, 2015 10:39 am
Location: Earth

Re: phpmyadmin navigation.php not found

Mon Mar 09, 2015 9:25 pm

you could provide the output of:
ls -l /etc/apache2/conf.d/phpmyadmin.conf
Raspberry Pi 1 Model B+ (since 2014-08-10): Raspbian jessie / Debian 8.1
Raspberry Pi 2 Model B (since 2015-03-10): OpenELEC 5.0.8

oliverrose99
Posts: 11
Joined: Mon Jun 10, 2013 8:53 pm

Re: phpmyadmin navigation.php not found

Mon Mar 09, 2015 9:31 pm

DougieLawson wrote:Use the ls command to see if the symlink exists. Don't try to type in my sample output as a command, that won't work.
Sorry, I'm still a noob. can you clarify what directory/file i'm linking and where to.

User avatar
DougieLawson
Posts: 40127
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: phpmyadmin navigation.php not found [FIXED]

Mon Mar 09, 2015 10:08 pm

When you install phpmyadmin it doesn't get installed directly into /etc/apache2 it gets installed in /etc/phpmyadmin. So that you don't end up with duplicate copies of configuration files Linux has a system called symbolic links, it's basically a file system pointer.

When the system tries to read /etc/apache2/conf.d/phpmyadmin.conf it follows the symbolic link and looks at /etc/phpmyadmin/apache.conf instead. If that link is missing then phpmyadmin won't work.

Try this to fix it
sudo apt-get install --reinstall phpmyadmin
sudo service apache2 restart
Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

User avatar
aqk
Posts: 8
Joined: Wed Jan 13, 2016 12:41 am

Re: phpmyadmin navigation.php not found [FIXED]

Wed Jan 13, 2016 7:26 am

OK- came across this forum just now.
I have had a R-Pi working as a file server for my two desktops and a laptop for some time.
The Pi dangles precariously from its Ethernet cable (and its USB power cable) underneath my router on a shelf.
I obviously DO NOT have a monitor connected to it. Instead, I use PuTTY to communicate with it.

The Raspian version of LAMP was installed on it and the web-server works quite well.
Using 192.168....etc,,.. I can get a home page (with PHP) as well as my local webhost pages.
viz my home page:
Raspberry Apache-PHP server:
Server signature is- Apache/2.2.22 (Debian) Server at 192.168.200.99 Port 80
and your system is using:
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0


PHPMYADMIN has been installed - :
Building dependency tree
Reading state information... Done
phpmyadmin is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.


However, when I enter 192.168.200.99/phpmyadmin in my web-browser, it returns a 404.
What more do I have to do to get PHPMYADMIN - and MYSQL - working?

User avatar
rpdom
Posts: 17699
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: phpmyadmin navigation.php not found [FIXED]

Wed Jan 13, 2016 1:44 pm

aqk wrote:However, when I enter 192.168.200.99/phpmyadmin in my web-browser, it returns a 404.
What more do I have to do to get PHPMYADMIN - and MYSQL - working?
I don't know.

I just tested this. I installed Raspbian Jessie Lite. Then apt-get install apache2, followed by mysql-server, then phpmyadmin, and it worked first time.

User avatar
aqk
Posts: 8
Joined: Wed Jan 13, 2016 12:41 am

Re: phpmyadmin navigation.php not found [FIXED]

Wed Jan 13, 2016 6:48 pm

OK-
Tried the commands above (via a PuTTY port) and got:
aqk@raspberrypi ~ $sudo apt-get install --reinstall phpmyadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 23 not upgraded.
Need to get 0 B/5,503 kB of archives.
After this operation, 0 B of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 79456 files and directories currently installed.)
Preparing to replace phpmyadmin 4:3.4.11.1-2+deb7u1 (using .../phpmyadmin_4%3a3.4.11.1-2+deb7u1_all.deb) ...
Unpacking replacement phpmyadmin ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for man-db ...
Setting up phpmyadmin (4:3.4.11.1-2+deb7u1) ...
dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf
Replacing config file /etc/phpmyadmin/config-db.php with new version
dbconfig-common: flushing administrative password[/size]

aqk@raspberrypi ~ $ sudo service apache2 restart
Restarting web server: apache2 ... waiting .
aqk@raspberrypi ~ $
---------------------
I still get
Not Found
The requested URL /phpmyadmin was not found on this server.
Apache/2.2.22 (Debian) Server at 192.168.200.99 Port 80


Any ideas?

User avatar
rpdom
Posts: 17699
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: phpmyadmin navigation.php not found [FIXED]

Wed Jan 13, 2016 7:33 pm

Ok, in /etc/apache2/conf-enabled you should have a file called phpmyadmin.conf. That is a link to /etc/apache2/conf-available/phpmyadmin.conf which in turn is a link to /etc/phpmyadmin/apache.conf.

For a start, all of those files need to exist for phpmydmin to work.

Code: Select all

rpdom@oz:/etc/apache2/conf-enabled$ ls -l phpmyadmin.conf 
lrwxrwxrwx 1 root root 33 Jan 13 13:38 phpmyadmin.conf -> ../conf-available/phpmyadmin.conf
rpdom@oz:/etc/apache2/conf-enabled$ cd ../conf-available/
rpdom@oz:/etc/apache2/conf-available$ ls -l phpmyadmin.conf 
lrwxrwxrwx 1 root root 28 Jan 13 13:38 phpmyadmin.conf -> ../../phpmyadmin/apache.conf
rpdom@oz:/etc/apache2/conf-available$ cd ../../phpmyadmin/
rpdom@oz:/etc/phpmyadmin$ ls -l apache.conf
-rw-r--r-- 1 root root 1397 Oct 28 16:32 apache.conf

Return to “Troubleshooting”