Xcode Server 9 web and macOS Server 5.4 Web Service not working

Now Xcode Server and macOS server are separateI am trying to setup xcode server on my mac using Xcode 9. I got it all working, and integration passes.


The problem is that the web service of Xcode Server is messing up the web services of macOS Server.


macOs Server starts httpd with config in /Library/Server/Web/Config/apache2/httpd_server_app.conf, where i have a few virtual host setup, but after I setup xcode server it also started to have an httpd run without argument which takes over from the macOS Server httpd.


It seems to use the use a config source from /etc/apache2/httpd.conf, which is the configuration of the default web server on mac, not the one from macOS Server.


/etc/apache2$ ls -l other/.conf
lrwxr-xr-x  1 root  wheel   62 Nov  5 12:05 other/httpd_xcs.conf -> /Library/Developer/XcodeServer/Configuration/httpd_os_xcs.conf
-r--r--r--  1 root  wheel  194 Jul 15 23:45 other/php7.conf


I could move and link the httpd_xcs.conf into the config of the macOS Server config, but I can't stop the httpd process without argument (using /etc/apache2) to start and it interfers with the main config and no web site works (Always goes to the xcode server website...)


the file /System/Library/LaunchDaemons/org.apache.httpd.plist has the key Disabled True. SO I am not sure what the right way to get httpd to work properly with Xcode Server and macOS server.


Any pointers how to make it work?


thanks!


I am using:

macOS 10.13.1 (Build 17B48)

Server 5.4 (Build 17S1207)

Xcode Version 9.1 (9B55)

Replies

I have a similar problem, on my machine all Server vhosts function as expected, but I can't get Xcode Server to work!

I just always get the "Xcode-Service deactivated".


Its quite odd, since the http_xcs.conf file seems to get loaded…

Hmm I found the culprit.


The file /Library/Server/Web/Config/apache2/services/xcode.conf tries to include an old file on line 234, which is not present in Server 5.4 anymore (specifically /Applications/Server.app/Contents/ServerRoot/Library/Server/Web/Config/apache2/httpd_xcs_v6.conf). The config there seems to be quite odd…

This file seems to be copied from /Applications/Server.app/Contents/ServerRoot/private/etc/apache2/services/ when the server gets set up. So hopefully in the next release this is fixed…

I think I am seeing the same problem


OS X 10.13.4 (17E202)

Server Version 5.6.1 (17S2109)

Xcode Version 9.3 (9E145)


If I turn off Xcode Server in Xcode, Web services are restored. I have filed a bug report with Apple on this.