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 > Canīt start webserver

Canīt start webserver
Thread Tools
Dedicated MacNNer
Join Date: Jun 2001
Location: Madrid
Status: Offline
Reply With Quote
Jan 24, 2003, 04:51 AM
 
Hi!

I am having trouble starting up Apache. When doing so from the control panel it gets selected and says starting up forever.

Tried from termial and got the following:

Last login: Fri Jan 24 11:24:03 on console
Welcome to Darwin!
[Alex:~] alex% apachectl start
Processing config directory: /private/etc/httpd/users
Processing config file: /private/etc/httpd/users/robert.conf
fopen: No such file or directory
httpd: could not open document config file /System/Library/WebObjects/Adaptors/Apache/apache.conf
/usr/sbin/apachectl start: httpd could not be started

Donīt understand quite what all that means. What seems to be clear is that the server looks for the wrong config file: "robert.conf". In my understanding that should be the file for my brother (Robert) account. Mine is alex. Looking at the directory "/private/etc/httpd/users/" there is no "alex.conf" file.

Don't know if what i am saying makes sense but there seems something strange.

Also it seems that WebObjects has done something to the configuration. I once installed it but uninstalled it again. It seems to have left a trace that gives some trouble.

As read in other boards I tried the configtest and here is what I got:

[Alex:~] alex% sudo apachectl configtest
Password:

Processing config directory: /private/etc/httpd/users
Processing config file: /private/etc/httpd/users/robert.conf
fopen: No such file or directory
httpd: could not open document config file /System/Library/WebObjects/Adaptors/Apache/apache.conf
[Alex:~] alex%

Can anybody help me.

Thanx in advance.

Also repaired the disk twice with fsck -y and repaired disk permissions.
Check out www.basasoft.com products:
CodeLine (Do Cocoa programming in BASIC)
BasaOne 2.0
AFDragHandler 1.1
BasaOne Web Classes
     
Xeo
Moderator Emeritus
Join Date: Mar 2001
Location: Austin, MN, USA
Status: Offline
Reply With Quote
Jan 24, 2003, 05:54 AM
 
Are you running OS X Client or OS X Server? Are you running 10.2?

Try running this command:

% cat /etc/httpd/httpd.conf | grep WebObjects

It looks to me like your config file is trying to load something that should be installed with WebObjects. For me, I don't have WebObjects and am running OS X Client. When I run the above command I get no output, meaning I have no lines in my config file with "WebObjects" in it.

If you do, but you have not installed WebObjects, you might want to edit your config file and remove that line.
     
Dedicated MacNNer
Join Date: Jun 2001
Location: Madrid
Status: Offline
Reply With Quote
Jan 24, 2003, 06:34 AM
 
Thanks for the reply.

In the meantime I found a solution:

- httpd.conf file was empty !?. At least pico showed it as empty
- reinstalled a copy of it from the install CD.
- copied the robert.conf file to alex.conf and deleted robert.conf.

After that i could not start up with apachectl start because of permission error.
with sudo it did work. Restarted from install cd and repaired permissions. After that enabling from control panel worked without problems.

I think probably the WO installation/uninstallation did something wrong.

Again thanks for the effort.
Check out www.basasoft.com products:
CodeLine (Do Cocoa programming in BASIC)
BasaOne 2.0
AFDragHandler 1.1
BasaOne Web Classes
     
   
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 07:39 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