>Try pkg_add mod_fastcgi

Good call, I actually did try that and the relevant package is no longer in ports and marked as obsolete.

# pkg_add mod_fastcgi
quirks-2.414 signed on 2018-03-28T14:24:37Z
Can't find mod_fastcgi
Obsolete package: mod_fastcgi (no longer useful)

It looks to me these got removed with OBSD 5.8.
https://www.openbsd.org/faq/upgrade58.html
From those release notes:
---
www/apache-httpd updated to 2.4.12.
Apache HTTPD is now at 2.4.12. When upgrading from 2.2.x releases manual configuration changes may be required. See the Apache HTTPD 2.4 upgrade guide for details. The ap2-mod_fastcgi and ap2-mod_fcgid ports have been superseded by mod_proxy_fcgi which ships with Apache HTTPD 2.4 out of the box.
---


Below is a snippet of the debian default backuppc conf for apache2. They have it call a compiled backuppc binary named index.cgi:

<Directory /usr/share/backuppc/cgi-bin/>
        .
        .
        DirectoryIndex index.cgi
        .
        .
</Directory>


#file index.cgi
index.cgi: setuid ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=c4dff956ad54aaffb8c90cb474668e06392af44d, stripped

The openbsd backuppc ports install has neither a cgi-bin directory nor an index.cgi anywhere in /usr/local. I'll see if the backuppc mailing list can assist here as well.

Regards,

Maarten


On 9/12/2018 10:00 PM, Maarten Lippmann wrote:
>
> If I try to start apache2 after creating that link per the instructions, I get below error:
>
> AH00526: Syntax error on line 5 of /var/www/conf/modules/backuppc.conf:
> Invalid command 'FastCgiExternalServer', perhaps misspelled or defined by a module not included in the server configuration
>
> Relevant example conf file contents:
>
> # $OpenBSD: httpd-backuppc.conf,v 1.1.1.1 2011/09/20 11:36:55 landry Exp $
> Alias /backuppc /backuppc/
> ScriptAlias /BackupPC_Admin /BackupPC_Admin.fcgi
> FastCgiExternalServer /BackupPC_Admin.fcgi -host 127.0.0.1:1028
> <Location /BackupPC_Admin>
>         SetHandler fastcgi-script
> </Location>
>
> Notice the date, this looks old.
> As a hail-Mary I loaded all (fcgi related and unrelated) modules I could find in /etc/apache2/httpd2.conf but none seem to help.
>
> I'm curious if the example backuppc.conf file is out of date and dependencies have changed, but I am having a hard time figuring out an appropriate alternative apache2 directive to get the backuppc web interface working on openbsd.
>
> Let me know if someone has figured this out.

Reply via email to