Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Why won´t Web sharing start up!

Why won´t Web sharing start up!
Thread Tools
Mac Enthusiast
Join Date: Nov 2001
Location: Finland
Status: Offline
Reply With Quote
Jan 25, 2003, 07:16 AM
 
I recently installed a fresh copy of 10.2.3 on one of my harddrive.

I got a kind of problem now... Web Sharing in preferences won´t start up. I have tryed to disable firewalls etc...

When I click on Personal Web Sharing checkbox it just greys out and it says that Webs Sharing is starting up.... but it hangs!
It doesn´t start the Apache Server!

In clues to remedy this! Can I delete som prefs or do something at the terminal???
     
Mac Elite
Join Date: Jun 2001
Location: Dundee, Scotland
Status: Offline
Reply With Quote
Jan 25, 2003, 08:24 AM
 
Originally posted by solitere:
In clues to remedy this! Can I delete som prefs or do something at the terminal???
Had you canged any of the standard settings?

eg

Moved the /Library/Webserver/Documents somewhere else?
Changed the permissions of the /Library/Webserver/Documents folder?
Have you deleted your own Sites folder?
Or changed its permissions?
have you modified the config file?
have you installed another version of apache?

try

Code:
apachectl configtest
this may tell you what's wrong.

It is probably a permissions thing..
     
Mac Enthusiast
Join Date: Nov 2001
Location: Finland
Status: Offline
Reply With Quote
Jan 25, 2003, 02:47 PM
 
Originally posted by sambeau:
Had you canged any of the standard settings?

eg

Moved the /Library/Webserver/Documents somewhere else?
Changed the permissions of the /Library/Webserver/Documents folder?
Have you deleted your own Sites folder?
Or changed its permissions?
have you modified the config file?
have you installed another version of apache?

try

Code:
apachectl configtest
this may tell you what's wrong.

It is probably a permissions thing..

I have not changed/moved/deleted any folders. The install is pretty much a clean systeminstall.

However I checked the console app and it claims this, when I start the webserver:
_________________________________________
Processing config directory: /private/etc/httpd/users
Processing config file: /private/etc/httpd/users/nicke.conf
fopen: No such file or directory
httpd: could not open document config file /etc/httpd/php.conf
/usr/sbin/apachectl start: httpd could not be started
_________________________________________

Are some library and .conf files missing or what!
     
Forum Regular
Join Date: Sep 2002
Status: Offline
Reply With Quote
Jan 25, 2003, 03:21 PM
 
try this if you cant get it wokring from the pref pane.

in the terminal:

sudo apachectl graceful
enter password
     
Mac Enthusiast
Join Date: Nov 2001
Location: Finland
Status: Offline
Reply With Quote
Jan 25, 2003, 05:28 PM
 
Originally posted by bgmccollum:
try this if you cant get it wokring from the pref pane.

in the terminal:

sudo apachectl graceful
enter password

this happens:
/usr/sbin/apachectl graceful: httpd not running, trying to start
Processing config directory: /private/etc/httpd/users
Processing config file: /private/etc/httpd/users/nicke.conf
fopen: No such file or directory
httpd: could not open document config file /etc/httpd/php.conf
/usr/sbin/apachectl graceful: httpd could not be started


"/usr" and "private" library are hidden folders but they are located on the same drive as the 10.2 installation.

I have installed X11 and FINK could they have screwed up the Apache service!?
     
Mac Elite
Join Date: Oct 2000
Location: Seattle
Status: Offline
Reply With Quote
Jan 26, 2003, 06:47 AM
 
Originally posted by solitere:
this happens:
/usr/sbin/apachectl graceful: httpd not running, trying to start
Processing config directory: /private/etc/httpd/users
Processing config file: /private/etc/httpd/users/nicke.conf


fopen: No such file or directory

This should not be a problem.


httpd: could not open document config file /etc/httpd/php.conf


this is bad.


"/usr" and "private" library are hidden folders but they are located on the same drive as the 10.2 installation.

I have installed X11 and FINK could they have screwed up the Apache service!?
Fink has caused problems for lots of people


Usually when apache won't start it is 1 of 3 things.
1. it can't find a file.
2. It doesn't have permission to read a file or write log files.
3. there is some bad syntax in a config file


looks like it's looking for /etc/httpd/php.conf
and can't find it. My system has no such file either but I have no trouble.

did you upgrade your php binary?
or maybe fink replaced your http.conf file or added a stray php.ini file.

The php binary should have a built in place to look for it's config file, if you use a php that is not buuild for your system it may look in the wrong place.

Or the http.conf file may specify where to look. If something overwrote this file it may be screwed up.

So..

First thing I'd do is open http.conf and search for the string '/etc/httpd/php.conf'. See if there is a line configuring something to use it. If so, comment it out and try to start apache.

sudo open -e /private/etc/httpd/httpd.conf

Also check the modification dates for http.conf and /usr/libexec/httpd/libphp4.so to see if anything fishy might have happened.

You can get to these files even though they are normally hidden from the finder by typing the full path into the 'go' field: in the finder - go menu - choose 'go to folder'.
type in /usr/libexec/httpd/

hope this helps
     
Dedicated MacNNer
Join Date: Jun 2001
Location: Madrid
Status: Offline
Reply With Quote
Jan 26, 2003, 07:27 AM
 
Hi,

I had a similar problem. Something damaged my config files. The "httpd.conf" file was empty and the config file for my account was missing.

Used a software called "Pacifist". It allows to extract files from the install CD. Extract them and copy them into their locations. As they are hidden files you probably have to use the terminal.

After that I still had some privileges problem. To correct them I started up with the install CD and corrected them with Disk Utility. Doing it from the Finder did not work.

Hope that helps.
Check out www.basasoft.com products:
CodeLine (Do Cocoa programming in BASIC)
BasaOne 2.0
AFDragHandler 1.1
BasaOne Web Classes
     
Mac Enthusiast
Join Date: Nov 2001
Location: Finland
Status: Offline
Reply With Quote
Jan 26, 2003, 08:20 AM
 
Thanks guys for your advice! I will get back and report my progress!
     
Fresh-Faced Recruit
Join Date: Feb 2003
Status: Offline
Reply With Quote
Feb 9, 2003, 08:26 PM
 
I have exactly the same problem! After installing 10.2.3 web sharing will not start up. When I run 'apachectl configtest' in theTerminal (as was suggested) it reports:

Processing config directory: /private/etc/httpd/users
Processing config file: /private/etc/httpd/users/palmgren.conf
Syntax OK


Originally posted by solitere:
I recently installed a fresh copy of 10.2.3 on one of my harddrive.

I got a kind of problem now... Web Sharing in preferences won´t start up. I have tryed to disable firewalls etc...

When I click on Personal Web Sharing checkbox it just greys out and it says that Webs Sharing is starting up.... but it hangs!
It doesn´t start the Apache Server!

In clues to remedy this! Can I delete som prefs or do something at the terminal???
     
Professional Poster
Join Date: Dec 2000
Location: Staffs, UK
Status: Offline
Reply With Quote
Feb 10, 2003, 03:33 AM
 
You should have a file called httpd.conf.bak in /etc/httpd

Try replacing the damaged httpd.conf file with this backup copy:

sudo cp /etc/httpd/httpd.conf.bak /etc/httpd/httpd.conf

YMMV !
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:12 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2