Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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)?
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.
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/).
I seem to have problem with the 'locate' command. I keep on getting this
PHP Code:
locate: fatal error: Could 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.
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?
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).
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.