OS X server can't start web service

Discussion in 'Mac OS X Server, Xserve, and Networking' started by DenBeke, Nov 24, 2016.

  1. DenBeke macrumors regular

    Joined:
    Aug 11, 2011
    Location:
    Antwerp
    #1
    I'm running macOS Sierra with the Server app.
    When I installed the Server app I wanted to run another webserver on port 80 and 443, So I looked up on the internet how I could disable OS X server on those ports. After some research I was able to run my own server.

    Now I wanted to start those services again. I thought that all I needed to do was this command:
    Code:
    launchctl load -w /Applications/Server.app/Contents/ServerRoot/System/Library/LaunchDaemons/com.apple.serviceproxy.plist
    This does 'enable' the service, but the service keeps crashing:
    Code:
    Nov 24 23:06:33 arry com.apple.xpc.launchd[1] (com.apple.serviceproxy[6879]): Service exited with abnormal code: 1
    Nov 24 23:06:33 arry com.apple.xpc.launchd[1] (com.apple.serviceproxy): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
    
    The log of the serviceproxy are all from earlier this month. So they're not relevant I guess?
    Code:
    [Tue Nov 15 22:54:49.400116 2016] [proxy:error] [pid 376] (61)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:34580 (127.0.0.1) failed
    [Tue Nov 15 22:54:49.400196 2016] [proxy_http:error] [pid 376] [client 192.168.0.101:53881] AH01114: HTTP: failed to make connection to backend: 127.0.0.1
    [Tue Nov 15 22:55:02.023945 2016] [proxy:error] [pid 375] (61)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:34580 (127.0.0.1) failed
    [Tue Nov 15 22:55:02.024025 2016] [proxy_http:error] [pid 375] [client 192.168.0.101:53882] AH01114: HTTP: failed to make connection to backend: 127.0.0.1
    [Tue Nov 15 22:55:02.686741 2016] [proxy:error] [pid 74033] (61)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:34580 (127.0.0.1) failed
    [Tue Nov 15 22:55:02.686826 2016] [proxy_http:error] [pid 74033] [client 192.168.0.101:53883] AH01114: HTTP: failed to make connection to backend: 127.0.0.1
    [Tue Nov 15 22:55:48.270814 2016] [core:info] [pid 366] AH00096: removed PID file /var/run/service_proxy.pid (pid=366)
    [Tue Nov 15 22:55:48.271021 2016] [mpm_prefork:notice] [pid 366] AH00169: caught SIGTERM, shutting down
    
    
    Anyone who can help me understand all of this? Or anyone who can at least point out where I can find a relevant error log.
    I already tried completely removing Server.app and reinstalling, but had no success so far...
     
  2. kiwipeso1 Suspended

    kiwipeso1

    Joined:
    Sep 17, 2001
    Location:
    Wellington, New Zealand
    #2
    Delete the other webserver first.

    You can use the server app gui to reenable webservices, etc.
     
  3. DenBeke thread starter macrumors regular

    Joined:
    Aug 11, 2011
    Location:
    Antwerp
    #3
    Yes, I know, that's what i'm trying to do...
     
  4. satcomer macrumors 603

    satcomer

    Joined:
    Feb 19, 2008
    Location:
    The Finger Lakes Region
    #4
    Does your ISP allow a Web Server or are you speaking about a Server Wiki?
     
  5. DenBeke thread starter macrumors regular

    Joined:
    Aug 11, 2011
    Location:
    Antwerp
    #5
    My ISP allows it. But I doesn't even start on my local network.
     
  6. kiwipeso1 Suspended

    kiwipeso1

    Joined:
    Sep 17, 2001
    Location:
    Wellington, New Zealand
    #6
    You don't need to host from 127.0.0.1 in OS X server / MacOS Server, in fact it is probably where the problem you are having is coming from.

    I would suggest that you fully delete the other webserver from your server, then build your site in the default location for mac OS server websites, and point the server website to that.
     

Share This Page