Home > Windows > Tutorial: How to make WSUS 3.0 Selfupdate work with Apache

Tutorial: How to make WSUS 3.0 Selfupdate work with Apache


The problem: You want to run Apache or another web server besides IIS on port 80 on a machine which is also running Windows Server Update Services (WSUS). When you disable IIS’s Default Web Site running on port 80, WSUS stops working normally and the following error is reported in the Event Log:

Event ID: 13042
Type: Error
Self-update is not working.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

The cause: While client machines use an IIS web site on port 8530 by default to interact with WSUS, some files are required to be accessible on port 80 as well.

The solution: Make the needed files available via Apache or the other web server you want to run on port 80.

Assuming a default install of WSUS 3.0 and a default install of Apache 2.x running on port 80, add the following lines to your httpd.conf file:

###############################################
# Allow WSUS SelfUpdate to work
Alias /Selfupdate "C:/Program Files/Update Services/Selfupdate"
Alias /selfupdate "C:/Program Files/Update Services/Selfupdate"
Alias /ClientWebServiceM5 "C:/Program Files/Update Services/webservices/
ClientWebServiceM5"
<Directory "C:/Program Files/Update Services">
  Order deny,allow
  Allow from all
</Directory>

If you installed WSUS to another directory, change the paths above as appropriate.

Ensure that the default web site on IIS is disabled by going to Start -> Administrative Tools -> Internet Information Services (IIS) Manager, expand the local computer tree item and the Web Sites item, right-click on Default Web Site and choose Stop from the menu.

Restart Apache (most easily done by double-clicking Apache Monitor in the system tray and clicking Restart in the window that appears).

To test that it works, type:

http://localhost/Selfupdate/iuident.cab

into your browser. It should try to save a CAB file. If you get a page not found error, check the paths in httpd.conf above. If you get a permission denied erorr, make sure that the user Apache is running as has access to C:\Program Services\Update Services\Selfupdate and all of its child folders.

When WSUS is working normally again you should see the following message appear shortly in the Event Log:

Event ID: 13040
Type: Information
Self-update is working.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Good luck!

Advertisements
  1. zzandry
    October 1, 2014 at 19:42

    Thanks a lot.
    I’ve seen eventid 13040/13042 combination every 10 minutes extacly since 1 month ago. Mine IIS Default Web Site is on port 81, and Apache on 80. As I’ve seen event id 13040, I was thinking the issue is not in port 80,as I did more things on the server before this happening.
    Finally, giving a try to your post and oups, error 13042 disappear.
    Just FYI, I added “Alias /ClientWebService” instead of /ClientWebServiceM5

  2. February 24, 2017 at 22:05

    Hola hice la instalacion de Windows server update services con el sistema operativo Windows Server 2016, adicionalmente una base de datos SQL Server 2016 standard y Apache 2.4. Hay algunas cosas de esta guia que esta incompleta.

    Primero Instalar una Base de Datos SQL Server 2016 sin la opcion: SQL Reporting Services por que queda ocupado el puerto 80
    Instale Windows server update services por comandos de powershell.
    ver este video: https://www.youtube.com/watch?v=HQoNnupjw9Y

    Powershell

    Install-WindowsFeature -Name UpdateServices-Services,UpdateServices-DB –IncludeManagementTools

    Buscar: “c:\program files\update services\tools”

    .\wsusutil.exe postinstall SQL_INSTANCE_NAME=”server.hostname.local” CONTENT_DIR=D:\WSUS

    Abrir Herramientas administrativas —> Administrador de Internet Information Services (IIS)

    Espanda el Servidor –> Sitios –> Selecione Default Web Site y detenga el servicio. luego elimine el sitio.

    Instale Apache 2.4 + PHP 7 etc..

    en configuracion httpd.conf buscar:

    agregar este codigo:

    # Windows Server Update Services
    Alias /Selfupdate “C:/Program Files/Update Services/Selfupdate”
    Alias /selfupdate “C:/Program Files/Update Services/Selfupdate”
    Alias /ClientWebService “C:/Program Files/Update Services/webservices/ClientWebService”

    en la ultima linea crear este codigo:
    # Windows Server Update Services
    Include conf/extra/wsus-module.conf

    crear un archivo en conf/extra/wsus-module.conf
    codigo:
    ###############################################
    # Permitir Windows Server Update Services
    # ver en httpd.conf en la seccion alias_module

    AllowOverride None
    Options None
    Require all granted

    Inicia el servicio apache y probar en acceso:

    http://ipserver/selfupdate/iuident.cab

    si descarga el archivo esta en funcionamiento.

    😀

  1. No trackbacks yet.

Share your thoughts! Note: to post source code, enclose it in [code lang=...] [/code] tags. Valid values for 'lang' are cpp, csharp, xml, javascript, php etc. To post compiler errors or other text that is best read monospaced, use 'text' as the value for lang.

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: