[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: CGIs werden nicht ausgeführt



On 01/16/2018 07:56 PM, Klaus Maria Pfeiffer wrote:
>>> /etc/apache2/mods-available/mime.conf:  #AddHandler cgi-script .cgi
> aber genau das und
> 	Options +ExecCGI
> empfiehlt https://httpd.apache.org/docs/current/howto/cgi.html

Du erwähntest auch an anderer stelle, daß Du in serve-cgi-bin.conf ein
konstrukt rund um cgi vermissen würdest, hier sieht das aber recht
vollständig aus.

;===
root@vmweb:/etc/apache2# cat conf-available/serve-cgi-bin.conf
<IfModule mod_alias.c>
        <IfModule mod_cgi.c>
                Define ENABLE_USR_LIB_CGI_BIN
        </IfModule>

        <IfModule mod_cgid.c>
                Define ENABLE_USR_LIB_CGI_BIN
        </IfModule>

        <IfDefine ENABLE_USR_LIB_CGI_BIN>
                ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
                <Directory "/usr/lib/cgi-bin">
                        AllowOverride None
                        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                        Require all granted
                </Directory>
        </IfDefine>
</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
;===

und die entsprechenden module alias und cgi oder cgid muß man halt
aktiviert haben.

;===
root@vmweb:/etc/apache2/mods-enabled# ls cgi* alias*
alias.conf  alias.load  cgid.conf  cgid.load  cgi.load
;===

und das auf stretch.

;===
root@vmweb:~# apache2 -v
Server version: Apache/2.4.25 (Debian)
Server built:   2017-09-19T18:58:57
root@vmweb:~# cat /etc/debian_version
9.3
;===

g, K


Reply to: