Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

DoFoT9

macrumors P6
Original poster
Jun 11, 2007
17,586
100
London, United Kingdom
hey every1,

ok so i decided to turn on my website once again, just so i can get to some music from anywhere.

i turned on "web sharing" in system prefs, but nothing happens!!!

when i go to the two links provided by the system preferences- web sharing thing, it just directs to a site that cannot be loaded.

yes i have the index.html file in the right folder. i have changed nothing since i last run it.

i don't know why it is working, maybe some settings/permissions have been changed??

any experience with this anyone?

thanks in advance
DoFoT9
 
Can you provide more specifics? What url is it directing you to?

ok so it redirects me to absolutely nothing!!!!

the picture with the address (which i go to via the sharing system prefs pane) done absolutely nothing...

i have tried putting in my IP (which used to work) but now that is hopeless aswell.

i have also provided the directory for my website, which is in library>webserver>documents>index.html that is where it used to default to.
 

Attachments

  • Picture 13.jpg
    Picture 13.jpg
    258.3 KB · Views: 56
  • Picture 14.jpg
    Picture 14.jpg
    81.7 KB · Views: 55
You should find out if Apache is even listening. Type the terminal command:

sudo lsof -i -P | grep httpd

And post what you get. If you don't get anything, that means that the Webserver isn't even running, and might have died on startup. Could be a bad configuration file.
 
You should find out if Apache is even listening. Type the terminal command:

sudo lsof -i -P | grep httpd

And post what you get. If you don't get anything, that means that the Webserver isn't even running, and might have died on startup. Could be a bad configuration file.

hey sheepy, i put it into terminal, running as root (had to log into my admin) put in password, when i hit enter it just stalled...

nothing happened, the cursor just went to the next line and nothing has happened as of yet (about 3minutes later). terminal isnt using up any CPU or anything either.

i guess that apache is doomed, how can i reinstall??
 
hey sheepy, i put it into terminal, running as root (had to log into my admin) put in password, when i hit enter it just stalled...

nothing happened, the cursor just went to the next line and nothing has happened as of yet (about 3minutes later). terminal isnt using up any CPU or anything either.

i guess that apache is doomed, how can i reinstall??
You don't need to reinstall, fortunately. Just find your Apache configuration file (if you're using the default Apache install that comes with Mac OS X, it's in /etc/httpd/ and called httpd.conf), verify that everything is set as it should be, then try this command from the Terminal:
Code:
sudo apachectl start
If that works, you'll be returned to the command prompt, and Apache will be running. If not, you'll see an error message indicating what went wrong during startup.
 
You don't need to reinstall, fortunately. Just find your Apache configuration file (if you're using the default Apache install that comes with Mac OS X, it's in /etc/httpd/ and called httpd.conf), verify that everything is set as it should be, then try this command from the Terminal:
Code:
sudo apachectl start
If that works, you'll be returned to the command prompt, and Apache will be running. If not, you'll see an error message indicating what went wrong during startup.

AAAAHHHH

there is no httpd file in the /etc locaiton!!

this may be the problem! hhmm can i just copy it from my imac?? should still be the same files, trying now
p.s. it says "already loaded!"
 
AAAAHHHH

there is no httpd file in the /etc locaiton!!

this may be the problem! hhmm can i just copy it from my imac?? should still be the same files, trying now
p.s. it says "already loaded!"
Ah - there's your problem. First of all, run this command in Terminal:
Code:
sudo apachectl stop
That will halt the web server. Then, after you've copied the configuration file (repair permissions after you do this), restart Apache.
 
Ah - there's your problem. First of all, run this command in Terminal:
Code:
sudo apachectl stop
That will halt the web server. Then, after you've copied the configuration file (repair permissions after you do this), restart Apache.

i can copy the configuration file straight from the same location on my imac?

ok sleep time for me, will work more on it 2morrow thank you so much for your help guys!

DoFoT9
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.