Bug#763582: apache2: Apache2 cannot run CGI scripts in "jessie"
Package: apache2
Followup-For: Bug #763582
Dear Maintainer,
Today I investigated the problem again and could solve it for me:
1. I moved my configuration file from /etc/apache2/sites-enabled to
/etc/apache2/conf-enabled
2. I renamed the configuration file from home_rja to home_rja.conf
3. I changed the configuration to
ScriptAlias /~rja/cgi-bin/ /home/rja/public_html/cgi-bin/
<Directory "/home/rja/public_html/cgi-bin">
AddHandler cgi-script .cgi .pl
AllowOverride None
Options +SymLinksIfOwnerMatch +ExecCGI
Require all granted
</Directory>
which basically included a) removing the quotation marks in the ScriptAlias
directive and b) removing the trailing slash in the Directory directive.
I am not sure, which of the three changes caused the disappearance of the
problem, but now the CGI scripts are executed and not served in plain text.
-- Package-specific info:
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages apache2 depends on:
ii apache2-bin 2.4.10-5
ii apache2-data 2.4.10-5
ii apache2-utils 2.4.10-5
ii lsb-base 4.1+Debian13
ii mime-support 3.57
ii perl 5.20.1-2
ii procps 2:3.3.9-8
Versions of packages apache2 recommends:
ii ssl-cert 1.0.35
Versions of packages apache2 suggests:
pn apache2-doc <none>
pn apache2-suexec-pristine | apache2-suexec-custom <none>
ii epiphany-browser [www-browser] 3.12.1-1
ii iceweasel [www-browser] 31.1.0esr-1
ii lynx-cur [www-browser] 2.8.9dev1-2
ii w3m [www-browser] 0.5.3-17
Versions of packages apache2-bin depends on:
ii libapr1 1.5.1-3
ii libaprutil1 1.5.4-1
ii libaprutil1-dbd-sqlite3 1.5.4-1
ii libaprutil1-ldap 1.5.4-1
ii libc6 2.19-12
ii libldap-2.4-2 2.4.40-2
ii liblua5.1-0 5.1.5-7.1
ii libpcre3 1:8.35-3.1
ii libssl1.0.0 1.0.1j-1
ii libxml2 2.9.1+dfsg1-4
ii perl 5.20.1-2
ii zlib1g 1:1.2.8.dfsg-2
Versions of packages apache2-bin suggests:
pn apache2-doc <none>
pn apache2-suexec-pristine | apache2-suexec-custom <none>
ii epiphany-browser [www-browser] 3.12.1-1
ii iceweasel [www-browser] 31.1.0esr-1
ii lynx-cur [www-browser] 2.8.9dev1-2
ii w3m [www-browser] 0.5.3-17
Versions of packages apache2 is related to:
ii apache2 2.4.10-5
ii apache2-bin 2.4.10-5
-- no debconf information
Reply to: