Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
SUSE / openSUSE This Forum is for the discussion of Suse Linux.


  Search this Thread
Old 02-15-2007, 04:39 PM   #1
LQ Newbie
Registered: Apr 2001
Location: Banbury UK
Distribution: Mint17
Posts: 6

Rep: Reputation: 0
Question location of localhost on SuSE 10.2 please

I am trying to run thru the tutorials in linux Format Magazine 88/89/90 for PHP/MYSQL I have installed apache2 php5 and MYSQL.
I installed phpmyadmin andf copied phpmyadmin directory into \var\www. (as LFF 88 said that that was the "Usual place for localhost" I then made a sub-dir of config in the phpmyadmin folder and performed chmod 777 config making it open to the world.
I started apache2 (apache2ctl start)

and then tried from Konq the url http://localhost/phpmyadmin

I got this error:

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
Thu Feb 15 22:22:56 2007
Apache/2.2.3 (Linux/SUSE)

I pinged - got preplies back ok

I MUST assume that in SuSE 10.2 the local host path is not \var\www OR that the magazine was in error OR EVEN I have done something wrong .
I just want to get phpmyadmin running - any help at this point WOULD be very welcome



Last edited by jevans17; 02-15-2007 at 04:42 PM.
Old 02-15-2007, 05:20 PM   #2
Senior Member
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
cat /etc/hosts
copy paste here

You don't ping, you
ping localhost
Also could be that your apache/phpadmin isn't listening on localhost(, or could be using another port.

Last edited by Micro420; 02-15-2007 at 05:21 PM.
Old 02-16-2007, 03:25 AM   #3
Registered: Aug 2002
Posts: 16,125

Rep: Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866Reputation: 1866
localhost resolves to the IP address which is the ethernet local loopback interface. So pinging localhost or 127.0.01 is the same thing. If the /etc/hosts file does not contain a line like localhost the command "ping localhost " will fail. localhost allows one to run TCP/IP client / server applications like apache on the same computer with out needing an internet connection.

linux is case sensitive. The correct URL should be http://localhost/phpMyAdmin. If you just try http://localhost you should see the default home page i,e, index.html unless you have changed anything. The default location known as DocumentRoot in apache's configuration file is where apache looks for its web pages can vary between distributions. /var/www may not be correct its been awhile since I have played with SuSE but if I remember it could be /srv/www/htdocs.
Old 02-18-2007, 07:37 AM   #4
LQ Newbie
Registered: Apr 2001
Location: Banbury UK
Distribution: Mint17
Posts: 6

Original Poster
Rep: Reputation: 0
Smile my apache2/mysql/php and phpMyAdmin are working - thanks

You were spot on Michaelk: The localhost on SuSE 10.2 is \srv\www\htdocs Thank you

I still had a devil of a job trying to get it all to work as in Linux Format Mag 88 page 88. Rather than keep asking, I had a good scout round for documentation. I may be a newbie in Linux but I have been in computers for 30 years so I never read manuals. :-) So I followed my own advice to others "RTFM"
I Eventually found just the ticket:
by Kevin Millicam who has created an excellent procedure. He has even put in screenshots to help.

I had created a special group to enable access to the applications, like Kevin, BUT I had left out some essential members from the group.Anyway I followed Kevin's procedure and it got me where I wanted to go.

Thanks Michaelk and micro420




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
Location of Kmail in Suse 9.2 swamprat SUSE / openSUSE 4 01-14-2007 04:23 PM
Suse 9.2 - Updates Location? AndrewMSConvert SUSE / openSUSE 4 01-27-2005 01:56 PM
Location of network folders in SuSE KFM Linux - Distributions 2 05-25-2004 03:36 PM
Suse 8.0 kernel location zuessh Linux - Distributions 5 04-16-2004 08:56 AM
Suse 9 Kernal Version location taic Linux - General 3 01-13-2004 09:04 AM > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 10:21 AM.

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