Hi there,
I have used a Mac for several years but I'm no power user. Today I was futzing around to get a "now playing" thing for my blog/MBs and enabled the webserver. Now I can't get to my home page (hosted by my ISP), it keeps taking me to the "introduction page" that comes up when you set up the web server. I can't get to the Apache manual any more either...I am not sure what I've done, frankly.
I went to the O'Reilly article that tells you how to do it and tried to retrace my steps, and I have rebooted twice: the info at start-up seems to be like it was before (i.e., it doesn't mention Apache anymore). I turned off websharing in preferences (before rebooting), and I have refreshed my browser and reloaded my index file to my host but when I go to my URL I still get that intro page.
I do not want to host my page myself, I want to keep that up at my ISP. I can only find directions to turn it on, not off, and I am at my wits' end, if anyone can help I would be so grateful.
Thanks.
Deborah
G4; Mac OS X (10.2.x); OS X 10.2.8
I have used a Mac for several years but I'm no power user. Today I was futzing around to get a "now playing" thing for my blog/MBs and enabled the webserver. Now I can't get to my home page (hosted by my ISP), it keeps taking me to the "introduction page" that comes up when you set up the web server. I can't get to the Apache manual any more either...I am not sure what I've done, frankly.
I went to the O'Reilly article that tells you how to do it and tried to retrace my steps, and I have rebooted twice: the info at start-up seems to be like it was before (i.e., it doesn't mention Apache anymore). I turned off websharing in preferences (before rebooting), and I have refreshed my browser and reloaded my index file to my host but when I go to my URL I still get that intro page.
I do not want to host my page myself, I want to keep that up at my ISP. I can only find directions to turn it on, not off, and I am at my wits' end, if anyone can help I would be so grateful.
Thanks.
Deborah
G4; Mac OS X (10.2.x); OS X 10.2.8
-
Re: How do I turn it off?
Sat, May 1, 2004 - 5:46 PMI have only configured Apache under Linux. I wonder if somehow your /etc/hosts (if that is relevant) file was altered while you were messing with the "now playing" thingie.
If there is a /etc/hosts file it shouldn't have anything local in it that you don't want to browse to.
Being the Mac luser that I am though it's very likely something different. I hope someone can help you! You might want to post info like,
Is Apache on the same box you are browsing from (127.0.0.1)
The /etc/hosts file (again if relevant)
/etc/apache/apache.conf (likewise if relevant)
The more info you give the better advice you will get from the people who know. -
-
Re: How do I turn it off?
Sat, May 1, 2004 - 6:08 PMUm, if I knew what you were talking about, I would be happy to respond.
I'm feeling extra dumb.
-
Re: How do I turn it off?
Sat, May 1, 2004 - 6:08 PMBut thanks for trying :) -
-
Re: How do I turn it off?
Sat, May 1, 2004 - 6:35 PMOK, here's a weird quirk: it's only the index file that doesn't work; the others do.
I found an index file in the bowels of the system folder, but I am not allowed to change/delete it, even when I change it so that I *can* change it, if you know what I mean. (I am the damn Admin, theoretically.) Something is obviously still pointing in the wrong direction.
-
Re: How do I turn it off?
Sat, May 1, 2004 - 6:39 PMThis is a good article on admin of OSX. (for me anyway, at least it tells you how to bring up the shell. I don't know what the default is and I only use bash)
www.unixreview.com/document...sam0311f/
Apache related stuff.
macosx.org/software/uti...s/apache.html
www.osxfaq.com/man/8/apache.ws (man page for mac OSX apache)
We all have to start somewhere... to bad all you could get today was a greenhorn who has to read as much as you. I feel more at home in a shell environment under Linux and have only screwed around with the beautiful Mac's at the local dealer.
Someday maybe I'll aquire one and load Debian on it :)
Good luck!
I hope the links offer you some help. While I'm waiting for this database merge I think I'll check some of it out myself! -
-
Re: How do I turn it off?
Sat, May 1, 2004 - 7:24 PMCwazy. K, I'm not going to mess around with command lines, 'cause I don't know wtf I'm doing as it is. I do appreciate your help, and I'm trying to get my head around some of this stuff, but I just don't get it, I'm no coder (like you couldn't tell!).
I changed the name of my index file to "home.html" and typed the whole URL in my browser, and it STILL came up that damn file.
How can this be?! -
-
Re: How do I turn it off?
Sat, May 1, 2004 - 7:54 PMSomewhere in that mess of code and instruction there is a file (or 2 or 3) that is telling your browser that (if apache is on the same box) 127.0.0.1 is home.
You have tried yoursitename.whatever ?
Sometimes that will work to get you off the local area and into the wide area.
If you can fire up a shell (not as root) poke around and see if /etc/hosts exists.
cd /etc
Then type
ls |grep hosts
If it does exist use an editor to open the file (not as root) I use vi, for me it would be
vi hosts
Your local host entry is 127.0.0.1 localhost
If there is another alias for it that could be the problem. BUT, it could be different for your Unix/Mac and editing it Linux style might make you want to kill me when the loopback fails :)
So, read what you can and I bet some OSX person will straighten me out thus giving us both the awnsers. The shell practice will do you good though and as long as you aren't root you can't change anything but your own files.
Oh yeah to quit vi
:q
Or sometimes,
:q!
Now I'm anxious to find out what it is as well... most likely not as anxious as you are...
Oh yeah, for me using Debian /etc/init.d/inetd/apache stop
kills my webserver... duh. There has got to be a command for that in your world...
www.osxfaq.com/tips/unix-...6/monday.ws
looks like this is the way to go if apache was set up sudo.
Try that if you feel froggy.
I need to get a Mac now...
peas. -
-
Re: How do I turn it off?
Sat, May 1, 2004 - 8:05 PM -
-
Re: How do I turn it off?
Sat, May 1, 2004 - 8:23 PMOK, I took my life into my hands, and did that hosts thingie, and this is what it typed back at me: (with like another couple # signs at the top)
# Host Database
#
# Note that this file is consulted when the system is running in single-user
# mode. At other times this information is handled by lookupd. By default,
# lookupd gets information from NetInfo, so this file will not be consulted
# unless you have changed lookupd's configuration.
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
~
~
~
~
~
~
~
~
~
hosts: unmodified, readonly: line 1 -
-
Re: How do I turn it off?
Sat, May 1, 2004 - 8:28 PMLeave that alone as the comments say.
Have you tried shutting down apache?
Fun huh?
Yes I am simple :) -
-
This is the maximum depth. Additional responses will not be threaded.
Re: How do I turn it off?
Sat, May 1, 2004 - 8:33 PMthe one that said
% sudo apachectl stop
/usr/sbin/apachectl stop: httpd stopped
?
yes. *Before* I did the one that I copied above.
How do I get to the place where I say webserver=-NO-? would that do it?
I'm sorry to be so pathetically helpless, I am actually unused to it.
-
-
-
-
-
-
-
-
-
Re: How do I turn it off?
Sat, May 1, 2004 - 8:27 PMAnd have I mentioned, robt., that you are a prince among tribesters?
-
-
Re: How do I turn it off?
Sat, May 1, 2004 - 8:37 PMThe apachectl stop should have done it. If that didn't work there is something else that is not how you need it.
Before I scramble off to googleland can your browser browse to your yoursite.whatever
Let me know. -
-
Re: How do I turn it off?
Sat, May 1, 2004 - 8:39 PMI am not a prince... just waiting for yet another db merge and tribing out. Lots of people have helped me when I needed it so it's what I figure I should do for someone else.
My help is pretty lame too. Thanks though for the compliment.
-
Re: How do I turn it off?
Sat, May 1, 2004 - 8:41 PMNo that yoursite, I get a file not found message. -
-
Re: How do I turn it off?
Sat, May 1, 2004 - 8:44 PMThat bites!
This is a .pdf from some kick ass dude that shows a GUI!
security.ucdavis.edu/WebSecu...More.pdf
I'm going to look and see how you start that GUI...
-
Re: How do I turn it off?
Sat, May 1, 2004 - 8:48 PMooh, now i got somewhere: (took out the extra % sign)
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these two things:
#1) Respect the privacy of others.
#2) Think before you type.
Password: -
-
-
Re: How do I turn it off?
Sat, May 1, 2004 - 8:52 PMand I don't know what to do now!! That was after I told it to stop. Would the password be my usual software installing p/w? i guess so, cause I don't know any others.
<scared, will type in regular password> -
-
Re: How do I turn it off?
Sat, May 1, 2004 - 8:54 PMhmm, either it's hung or...it won't accept anything, I can't get my cursor to show up in there.
-
Re: How do I turn it off?
Sat, May 1, 2004 - 8:56 PMYeah the other passwd is root.
I was thinking (uh,huh) have a look at /etc/resolv.conf
cd /etc
vi resolv.conf
(not as root) there should be a search listing and nameserver listings. Are any 127.0.0.1? -
-
Re: How do I turn it off?
Sat, May 1, 2004 - 8:59 PMno... btw I did get it to tell it stop, it doesn't show your password as you type (doh) but still coming up the wrong file.
This is what happens with the vi resolv.conf :
domain bc.hsia.telus.net
search bc.hsia.telus.net
nameserver 209.53.4.130
nameserver 209.53.4.150
nameserver 207.102.99.66
nameserver 207.102.99.82
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
resolv.conf: unmodified, readonly: line 1 -
-
This is the maximum depth. Additional responses will not be threaded.
Re: How do I turn it off?
Sat, May 1, 2004 - 9:02 PMmaybe it's time to reboot...
this is the message that came up after I put in the p/w btw (sorry, should have included above)
/usr/sbin/apachectl stop: httpd (no pid file) not running
-
-
Re: How do I turn it off?
Sat, May 1, 2004 - 9:07 PM/etc/hostconfig
is the file to edit to turn the server off on boot.
(as root)
su
(enter your software installing passwd)
vi /etc/hostconfig
After it opens the file type
/WEBSERVER=-YES-
That will bring you to the line that has that statement or you can use h j k l to move around and find it.
When you find the statement you will need to replace it.
Type,
R
Will put you into replace mode. Change YES to NO. To escape replace mode strike,
Esc
and then type
:wq
That will save and exit.
Make sure you strike Esc before :wq or you will have NO-:wq and be wondering what planet I'm from. :)
Since that disables it on boot reboot your machine and try it out. -
-
This is the maximum depth. Additional responses will not be threaded.
Re: How do I turn it off?
Sat, May 1, 2004 - 9:11 PMno pid means that there is no prosess id number and apache has halted.
A reboot won't hurt anything. Might not do much but it might be the magic you are looking for as well.
99 thousand Mac sys-admins out of work and you get stuck with the Linux guy! -
-
Re: How do I turn it off?
Sat, May 1, 2004 - 9:14 PMIt might fire apache back up too. Then you get to practice your new bash or tcsh skills and turn it off again. If you do feel like it (and aren't cursing me) what is the output of
/etc/resolv.conf -
-
Re: How do I turn it off?
Sat, May 1, 2004 - 9:15 PMnever mind I blew by it :) oooops. -
-
Re: How do I turn it off?
Sat, May 1, 2004 - 9:17 PMresolv.conf looks good.
What was the name of the offending app that put you in this position? -
-
Re: Offending app
Sat, May 1, 2004 - 9:25 PMI was trying to get a little now playing thing to go up to my blog and wherever else, and somewhere among all the little utilities and whatnot, someone had the marvelous idea of using your CPU as your server. So they told me how easy it was and everything (which it is! piece of damn cake!) but they didn't tell me my name would be my URL. Well, some people to whom I show my page I don't want knowing my actual whole first and last names, and...I tried to make it go away, but I couldn't.
ARGH.
-
-
-
-
-
This is the maximum depth. Additional responses will not be threaded.
Re: How do I turn it off?
Sat, May 1, 2004 - 9:19 PMer, I have rebooted; where do I begin? if I start at su [enter] [password] it says su: Sorry
(sense of humour yet)
did I miss the part about logging in as root? -
-
Re: How do I turn it off?
Sat, May 1, 2004 - 9:26 PMLog in normally to your GUI and then open the shell.
su
enter passwd
you should be root. (software install passwd)
When you first open the shell you should be just a user. Usually you know you are root when there is a # where you start to type.
Humor is intact. :)
Yours? You have the "broken" box.
Before you start tweaking try the browser again. I want to look at some info on virtual hosts... What was that app you were fiddling around with? -
-
Re: How do I turn it off?
Sat, May 1, 2004 - 9:36 PMHey I found the GUI instruction for us newbs!
www.macdevcenter.com/pub/a/m...che.html
Pretty good article that has 3 or 4 installments. -
-
Re: How do I turn it off?
Sat, May 1, 2004 - 9:46 PMDude, that article is what got me into this mess!!
-
Re: How do I turn it off?
Sat, May 1, 2004 - 9:46 PMwww.macdevcenter.com/pub/a/m...ing.html
Thats the link to the page that has all the installments. Toward the bottom. I would start by following the instructions but imagine reverse... STOP! :)
If that's not working something has been changed somewhere by that app you were messing around with.
Googling about your problem and the app name might be a start. Since you were installing software you were root. Very powerful on a Unix box so who knows what files were changed. Thats why the app name search is important... for me anyhow, to find out if httpd.conf was altered for virtual host setup possibly.
Too bad some Unix/OSX type wasn't here to help us help ourselves :) -
-
Re: How do I turn it off?
Sat, May 1, 2004 - 9:48 PMOh no! I bring the article of doom! -
-
Re: How do I turn it off?
Sat, May 1, 2004 - 10:03 PMI'm sorry to bring up the fubar article. What are your options?
Another tribe might have some info... is there a Mac/Apache tribe?
I am confident it can be fixed... Sorry that I can't be anything more than a googler without Mac knowledge.
<sigh> If I find anything else between the other db merges and getting out of this office I will post it.
Don't give up!
-
-
Re: How do I turn it off?
Sat, May 1, 2004 - 10:06 PMOh but the software installation was all automatic...I wasn't doing much except following that article and the Apache how-to thing, and all of a sudden my URL was going to be my name, and my webpage URL was pointing at my drive, and...
actually, now that I think of it, there is a thing pointing at my drive still...I am going to be completely embarrassed if I can fix this this easily...(not that it's pointing at the index mind you) -
-
Re: How do I turn it off?
Sat, May 1, 2004 - 10:10 PMapache by default goes to index.html
(crosses fingers) so whats happening...?
Do you resolv like you should?! -
-
Re: How do I turn it off?
Sat, May 1, 2004 - 10:37 PMJesus I fixed it
I had that bit of html pointing to my c for the now playing thingie...I still don't know why that would override my whole index file, but.
Thanks so much for your help and hand-holding! I was so frustrated...it helps to do something, even the wrong thing, once you've exhausted your options. And I bet some of what you had me do did make a difference.
Yay, now my lame little blog can go forward! :p
-
Re: How do I turn it off?
Sat, May 1, 2004 - 10:39 PMThere is a mac os x server tribe.
Those people will have the awnser. Just be ready to post some info ala /etc/hosts etc...
And this article gets into the virtual host thing and apache configuration.
www.sitepoint.com/article/1263
I wish these pesky db would merge quicker! I don't want to sleep in another office again...
Anyway sorry I couldn't be more help.
peas. -
-
Re: How do I turn it off?
Sat, May 1, 2004 - 11:31 PMHa! It works, that's all that matters. And next time I need to venture to the command line stuff, I will! you got me a little closer to understanding how these things work, and I love having that kind of knowledge. And all these links to things I should know.
It is definitely too late to still be at work, esp on a Saturday! :( Of course I have spent approximately 12 hours at my computer today, too, one thing and another...
I hope the rest of your weekend is a little more fulfilling and entertaining :)
-
-
Re: How do I turn it off?
Sun, May 2, 2004 - 12:18 AMCool you've gotten bit by the shell. Good tool...
Ur, I'm still here with the server migration. I did this in another office last weekend... slept on the floor for 2 hours there.
As far as fulfilling and entertaining, I am about to duck out for more Rockstar and sour worms. /. has been good and I found a kick-ass trance stream at shoutcast.
It's cool your Mac is resolving correctly again, Blog on.
late.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-