LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices



Reply
 
Search this Thread
Old 02-15-2007, 05:39 PM   #1
jevans17
LQ Newbie
 
Registered: Apr 2001
Location: Banbury UK
Distribution: SuSE 10.2
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
localhost
Thu Feb 15 22:22:56 2007
Apache/2.2.3 (Linux/SUSE)

I pinged 127.0.0.1 - 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

thanks

Jack

Last edited by jevans17; 02-15-2007 at 05:42 PM.
 
Old 02-15-2007, 06:20 PM   #2
Micro420
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
Code:
cat /etc/hosts
copy paste here


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

Last edited by Micro420; 02-15-2007 at 06:21 PM.
 
Old 02-16-2007, 04:25 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,153

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
localhost resolves to the IP address 127.0.0.1 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 127.0.0.1 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, 08:37 AM   #4
jevans17
LQ Newbie
 
Registered: Apr 2001
Location: Banbury UK
Distribution: SuSE 10.2
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: http://www.novell.com/coolsolutions/feature/595.html
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

Jack
 
  


Reply

Tags
phpmyadmin


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


All times are GMT -5. The time now is 05:04 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration