LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 11-27-2012, 01:12 PM   #1
harry_ord
Member
 
Registered: Nov 2012
Posts: 61

Rep: Reputation: Disabled
PHPMyAdmin doesn´t load on Ubuntu 12.10


Greetings

I've installed PHP and MySQL on my server running Ubuntu 12.10 following this tutorial:

http://www.jeremymorgan.com/tutorial...antal-quetzal/

I installed phpmyadmin, but it doesn´t load it gives me "404 - Not Found".

I tried with http://192.168.1.x/phpmyadmin and http://192.168.1.x/phpMyAdmin and neither of them work.

What am i doing wrong?
 
Old 11-27-2012, 02:26 PM   #2
lrtward
Member
 
Registered: Feb 2011
Distribution: CentOS, Ubuntu
Posts: 97

Rep: Reputation: 9
What is your document root?

Were did apt-get install put your phpdbadmin files? ('updatedb' and 'locate phpmyadmin' or 'locate phpMyAdmin' might help)
 
Old 11-27-2012, 02:37 PM   #3
harry_ord
Member
 
Registered: Nov 2012
Posts: 61

Original Poster
Rep: Reputation: Disabled
My document root is the default /var/www

'locate phpMyAdmin' doesn´t give me any output.
 
Old 11-27-2012, 02:41 PM   #4
lrtward
Member
 
Registered: Feb 2011
Distribution: CentOS, Ubuntu
Posts: 97

Rep: Reputation: 9
Did you run "updatedb" before running "locate phpMyAdmin"?
Did you try running "locate phpmyadmin" (all lower case)?
 
Old 11-27-2012, 02:51 PM   #5
harry_ord
Member
 
Registered: Nov 2012
Posts: 61

Original Poster
Rep: Reputation: Disabled
I ran "updatedb" and now "locate phpmyadmin" gives me a really big output. I'm pasting the last 4 lines:

/var/lib/phpmyadmin/config.inc.php
/var/lib/phpmyadmin/tmp
/var/lib/ucf/cache/:etc:dbconfig-commonhpmyadmin.conf
/var/lib/ucf/cache/:etchpmyadmin:config-db.php
 
Old 11-27-2012, 02:57 PM   #6
lrtward
Member
 
Registered: Feb 2011
Distribution: CentOS, Ubuntu
Posts: 97

Rep: Reputation: 9
Looks like for some reason your phpmyadmin got installed under /var/lib instead of under your document root.

The tutorial you linked to seems to have their document root at /var/www; on my own server my document root is /var/www/html.

What you need to do is move the phpmyadmin directory to your document root.
Personally, I'm pretty cautious, so instead of moving, I'd copy and then delete after I was satisfied everything was working. Something like this:

Quote:
cd /var/lib
cp -pr phpmyadmin /var/www/html
Then try to browse to http://192.168.1.x/phpmyadmin and see how it goes.
If it goes well, you can delete everything under /var/lib/phpmyadmin.
 
Old 11-28-2012, 12:19 PM   #7
harry_ord
Member
 
Registered: Nov 2012
Posts: 61

Original Poster
Rep: Reputation: Disabled
Sorry, it didn´t work.
 
Old 11-28-2012, 02:12 PM   #8
lrtward
Member
 
Registered: Feb 2011
Distribution: CentOS, Ubuntu
Posts: 97

Rep: Reputation: 9
When you say "It didn't work" I assume you mean you got another "404 file not found" error. That would mean that phpmyadmin is still not in the right location.

Find out where your httpd.conf file is:
Quote:
locate httpd.conf
Then grep for DocumentRoot in httpd.conf.
That is your document root, and that is where the phpmyadmin directory and all of its contents should be.

Here is a guide for installing phpmyadmin: http://www.thegeekstuff.com/2010/09/install-phpmyadmin/
 
Old 11-28-2012, 02:24 PM   #9
harry_ord
Member
 
Registered: Nov 2012
Posts: 61

Original Poster
Rep: Reputation: Disabled
Fixed. I moved the phpmyadmin directory contents to /var/www (that's my Document Root) and now is working. Thanks.
 
  


Reply



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
GRUB doesn't let me load without Ubuntu external hard drive plugged in. Eitaro Linux - Newbie 5 06-27-2009 02:14 AM
PHPMYADMIN Won't Load Up sefarlow Linux - Server 0 06-09-2009 08:01 PM
phpMyAdmin - Cannot load mySQL extension blizunt7 Linux - Software 3 10-09-2007 09:32 AM
Ubuntu Live doesn't load, goes straight to XP bart_fargo General 2 06-20-2007 04:24 PM
Ubuntu doesn't load GUI timclaason Ubuntu 7 02-19-2006 10:15 PM

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

All times are GMT -5. The time now is 12:09 AM.

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