LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-24-2007, 07:20 AM   #1
today53
Member
 
Registered: Oct 2003
Location: sydney
Posts: 70

Rep: Reputation: 15
Question phpmyadmin - Object Not Found


Hi all

I have been hoping to set up Mysql and phpmyadmin to play around. Anyway, I got the Apache started, but just can't seem to get phpmyadmin to work. When I enter the address http://localhost/phpmyadmin, I get the following:

[HTML]Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.

Error 404
127.0.0.1
Apache/2.2.3 (Mandriva Linux/PREFORK-1mdv2007.0) [/HTML]

I have tried using both upper and/or lower case, localhost/ 127.0.0.1, but got the same outcome everytime.

Would really appreciate if anyone could sort me out here.

thanks
 
Old 03-24-2007, 08:10 AM   #2
nfisk
Member
 
Registered: Jul 2002
Location: Stockholm, Sweden
Distribution: Kubuntu, Fedora
Posts: 45

Rep: Reputation: 15
Quote:
Originally Posted by today53
Hi all

I have been hoping to set up Mysql and phpmyadmin to play around. Anyway, I got the Apache started, but just can't seem to get phpmyadmin to work. When I enter the address http://localhost/phpmyadmin, I get the following:

[HTML]Object not found![/HTML]
Did you unpack/install phpMyAdmin into Apache's DocumentRoot directory (as per your httpd.conf)?
 
Old 03-24-2007, 09:53 PM   #3
rch1231
Member
 
Registered: Mar 2007
Location: Bedford, Texas
Posts: 31

Rep: Reputation: 15
phpmyadmin not found

It is probably because linux is case sensitive unlike windows. phpMyAdmin is not the same as phpmyadmin. Do a listing of the directory and you will see what I mean. In windows the following would all refer to the same file but they are seperate files in linux.

test
Test
tEst
TEST
 
Old 03-25-2007, 02:36 AM   #4
today53
Member
 
Registered: Oct 2003
Location: sydney
Posts: 70

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by nfisk
Did you unpack/install phpMyAdmin into Apache's DocumentRoot directory (as per your httpd.conf)?
How do I do that?
 
Old 03-25-2007, 06:17 AM   #5
nfisk
Member
 
Registered: Jul 2002
Location: Stockholm, Sweden
Distribution: Kubuntu, Fedora
Posts: 45

Rep: Reputation: 15
Check where your phpMyAdmin directory is:

Code:
locate -i phpmyadmin
Then have a look in your httpd.conf file to see what Apache's DocumentRoot is. If necessary, move the phpMyAdmin you found above into that directory, and keep in mind, as rch1231 said, that in Linux, phpmyadmin and phpMyAdmin are not the same (and, therefore, neither are http://localhost/phpmyadmin/ and http://localhost/phpMyAdmin/).
 
Old 03-28-2007, 05:16 AM   #6
today53
Member
 
Registered: Oct 2003
Location: sydney
Posts: 70

Original Poster
Rep: Reputation: 15
hi nfisk & rch1231

Thanks for your help.

I seem to have problem with the 'locate' command. I keep on getting this
PHP Code:
locatefatal errorCould not find user database '/var/lib/slocate/slocate.db':  No such file or directory 
Anyway, just to make sure I set up the phpmyadmin correctly, i simply extracted the tar.bz file and move the entire file to /var/www and changed the file name to phpmyadmin.

Did I do anything wrong here so far/
 
Old 03-28-2007, 01:23 PM   #7
nfisk
Member
 
Registered: Jul 2002
Location: Stockholm, Sweden
Distribution: Kubuntu, Fedora
Posts: 45

Rep: Reputation: 15
Quote:
Originally Posted by today53
I seem to have problem with the 'locate' command. I keep on getting this
Code:
locate: fatal error: Could not find user database '/var/lib/slocate/slocate.db':  No such file or directory
You'll want to set up updatedb so it runs once a day or so. This is usually done with atd. For example, my /etc/cron.daily/slocate looks like this:

Code:
#! /bin/sh

if [ -x /usr/bin/slocate ]
then
        if [ -f /etc/updatedb.conf ]
        then
                /usr/bin/updatedb
        else
                /usr/bin/updatedb -f proc
        fi
        chown root.slocate /var/lib/slocate/slocate.db
fi
Quote:
Originally Posted by today53
Anyway, just to make sure I set up the phpmyadmin correctly, i simply extracted the tar.bz file and move the entire file to /var/www and changed the file name to phpmyadmin.
Well, assuming /var/www is your Apache DocumentRoot directory (which seems reasonable), that should be all there's to it (except, of course, you also need to edit phpMyAdmin's config file to set the MySQL user ID and password, but failing to do so should give you a "connection failed" error message from phpMyAdmin, not a "file not found" error from Apache).

But you're still getting "file not found" errors, even after this? Have you checked Apache's error log for any useful error messages?
 
Old 03-29-2007, 06:20 AM   #8
today53
Member
 
Registered: Oct 2003
Location: sydney
Posts: 70

Original Poster
Rep: Reputation: 15
Question

Hi nfisk

thanks for your patience.

I had a look at the error log folder, there is nothing in it.

This is seriously frustrating. help?

thanks
today53
 
Old 03-30-2007, 08:11 AM   #9
nfisk
Member
 
Registered: Jul 2002
Location: Stockholm, Sweden
Distribution: Kubuntu, Fedora
Posts: 45

Rep: Reputation: 15
Hmm... You mean you don't have a /var/log/apache2/error.log? Maybe your Apache stores its log file somewhere else. Look for the ErrorLog directive in apache2.conf (or, possibly, httpd.conf).
 
Old 04-03-2007, 01:41 AM   #10
today53
Member
 
Registered: Oct 2003
Location: sydney
Posts: 70

Original Poster
Rep: Reputation: 15
Am having a look at the http.conf. It states that if wasn't specify, error messages would be logged to /logs/error_log.

Since there is nothing in the error log, i may be able to assue that there was not error at all.

Then it all points to some issue, which didn't link up the Apache and Phpmyadmin propertly. But what is it?

Seriously, I can't be the only having this problem, ever.
 
Old 04-07-2007, 09:25 AM   #11
nfisk
Member
 
Registered: Jul 2002
Location: Stockholm, Sweden
Distribution: Kubuntu, Fedora
Posts: 45

Rep: Reputation: 15
It seems to me that if you got an Apache error message, as your original post indicates, something should have been written to the error log. Since this something might yield a few clues as to what is amiss, maybe you'd want to try to determine what is preventing Apache from spitting it out. Could the partition on which /log resides be full (df -h)? Could it be that whatever user Apache runs as isn't allowed to write stuff to the /log directory, and/or to the error_log file (ls -al /log)? I think it would also be a good idea to explicitly set the error log location in the Apache config file.

Edit: Also have a look at your config.inc.php file, as suggested in threads 199454 and 132358.

Last edited by nfisk; 04-07-2007 at 09:32 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache: Object not found! How to redirect xpucto Linux - Server 1 03-15-2007 03:11 PM
JSP context object not found poeta_boy Programming 1 09-21-2005 01:06 PM
phpMYAdmin woes - files not found prodigal Linux - Software 3 07-06-2004 05:31 PM
User [blank] not found.. phpmyadmin error? Transition Linux - Newbie 1 02-03-2004 05:35 PM
Apache - PHPMyAdmin - page not found jriis Linux - Software 1 01-07-2004 08:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration