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/ AddHandler cgi-script .cgi .pl AllowOverride None Options +SymLinksIfOwnerMatch +ExecCGI Require all granted 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-bin2.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 pn apache2-suexec-pristine | apache2-suexec-custom 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 libc62.19-12 ii libldap-2.4-22.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 pn apache2-suexec-pristine | apache2-suexec-custom 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 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#763582: apache2: Apache2 cannot run CGI scripts in "jessie"
Package: apache2 Version: 2.4.10-5 Followup-For: Bug #763582 Dear Maintainer, I upgraded from wheezy to jessie and now my Perl-based CGI scripts don't work. I followed many suggestions to improve and upgrade my config and finally came up with the following content in my sites-enabled/my_home.conf file: # allow CGI scripts for user rja ScriptAlias /~rja/cgi-bin/ "/home/rja/public_html/cgi-bin/" AddHandler cgi-script .cgi .pl AllowOverride None Options +SymLinksIfOwnerMatch +ExecCGI Require all granted Unfortunately, CGI scripts are still not executed: the browser always downloads/shows the plain source code of the script. mod_cgid and mod_perl are both installed and enabled. This seems to be related to this bug, I hope it's not a configuration error on my side. -- 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-bin2.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 pn apache2-suexec-pristine | apache2-suexec-custom 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 libc62.19-11 ii libldap-2.4-22.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 pn apache2-suexec-pristine | apache2-suexec-custom 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 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#763582: apache2: Apache2 cannot run CGI scripts in "jessie"
Package: apache2 Version: 2.4.10-2 Severity: grave Justification: renders package unusable Dear Maintainer, *** Reporter, please consider answering these questions, where appropriate *** * What led up to the situation? * What exactly did you do (or not do) that was effective (or ineffective)? * What was the outcome of this action? * What outcome did you expect instead? *** End of the template - remove these template lines *** -- Package-specific info: -- System Information: Debian Release: jessie/sid APT prefers testing-updates APT policy: (500, 'testing-updates'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.14-2-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages apache2 depends on: ii apache2-bin 2.4.10-2 ii apache2-data 2.4.10-2 ii lsb-base 4.1+Debian13 ii mime-support 3.56 ii perl 5.20.0-6 ii procps1:3.3.9-7 Versions of packages apache2 recommends: ii ssl-cert 1.0.34 Versions of packages apache2 suggests: ii apache2-doc 2.4.10-1 pn apache2-suexec-pristine | apache2-suexec-custom pn apache2-utils ii iceweasel [www-browser] 31.1.0esr-1 ii konqueror [www-browser] 4:4.14.1-1 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.3-3 ii libaprutil1-dbd-sqlite3 1.5.3-3 ii libaprutil1-ldap 1.5.3-3 ii libc62.19-11 ii libldap-2.4-22.4.39-1.1+b1 ii liblua5.1-0 5.1.5-7 ii libpcre3 1:8.35-3 ii libssl1.0.0 1.0.1i-2 ii libxml2 2.9.1+dfsg1-4 ii perl 5.20.0-6 ii zlib1g 1:1.2.8.dfsg-2 Versions of packages apache2-bin suggests: ii apache2-doc 2.4.10-1 pn apache2-suexec-pristine | apache2-suexec-custom ii iceweasel [www-browser] 31.1.0esr-1 ii konqueror [www-browser] 4:4.14.1-1 ii w3m [www-browser]0.5.3-17 Versions of packages apache2 is related to: ii apache2 2.4.10-2 ii apache2-bin 2.4.10-2 -- Configuration Files: /etc/apache2/mods-available/alias.conf changed: Alias /icons/ "/usr/share/apache2/icons/" Options FollowSymlinks AllowOverride None Order allow,deny Allow from all Alias "/DVD" "/RAID/DVD" Options Indexes Order allow,deny Allow from all Alias "/RAID_Server" "/RAID/Recordings" Options Indexes Order allow,deny Allow from all /etc/apache2/sites-available/000-default.conf changed: ServerAdmin webmaster@localhost DocumentRoot /var/www Options FollowSymLinks AllowOverride None Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all Options +ExecCGI AddHandler cgi-script .py DirectoryIndex VidMgrWeb.py Order allow,deny Allow from all ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined ServerAdmin webmaster@localhost DocumentRoot /var/www/cgi-bin/TiVo Options FollowSymLinks AllowOverride None Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all ScriptAlias / /usr/lib/cgi-bin/ AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined -- no debconf information I upgraded my server a few days ago by installing a virgin copy of Debian "jessie" from scratch, and then copied over the configurations from the previous version which ran under "wheezy". After having done so, any plain html pages seem to load just fine, but I cannot run any scripts. I have several ba