LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   phpmyadmin - Object Not Found (https://www.linuxquestions.org/questions/linux-server-73/phpmyadmin-object-not-found-540161/)

today53 03-24-2007 07:20 AM

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

nfisk 03-24-2007 08:10 AM

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)?

rch1231 03-24-2007 09:53 PM

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

today53 03-25-2007 02:36 AM

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?

nfisk 03-25-2007 06:17 AM

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/).

today53 03-28-2007 05:16 AM

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/

nfisk 03-28-2007 01:23 PM

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?

today53 03-29-2007 06:20 AM

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

nfisk 03-30-2007 08:11 AM

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).

today53 04-03-2007 01:41 AM

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.

nfisk 04-07-2007 09:25 AM

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.


All times are GMT -5. The time now is 04:19 PM.