Hallo,
auf meinem Raspberry habe ich raspbian-wheezy durch raspbian-stretch ersetzt. Allerdings zeigt der Apache Webserver seit dem Update Perl Programme an, anstatt sie auszuführen.
Die Perl Programme sind in Ordnung, sie laufen auf openSUSE, Bodhi-Linux und Raspian Wheezy.
mod-perl ist installiert,
Options +ExecCGI gesetzt,
AddHandler cgi-script .pl gesetzt
Die Pfade stimmen, das Perl Programm wird ja zum Download angeboten.
Rechte der Perl-Programme stehen auf -rwxr-xr-x
Und trotzdem funktioniert es nicht. Ich hoffe, jemand hat eine Idee, woran der Fehler liegen könnte.
Version:
Raspbian Stretch with desktop
Version: April 2018
Release date: 2018-04-18
Kernel version: 4.14
Apache Version:
Server Version: Apache/2.4.25 (Raspian)
Server built: 2018-03-31T08:47:16
Hier meine Einstellungen:
/etc/hosts
radius@Dione:/etc $ cat hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 Dione testvh
Hier die aktiven Einstellungen von apache2.conf, die entsprechen der Original Installation
radius@Dione:/etc/apache2 $ cat apache2.conf | grep -Ev '^$|^#'
DefaultRuntimeDir ${APACHE_RUN_DIR}
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
HostnameLookups Off
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
Include ports.conf
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
AccessFileName .htaccess
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
IncludeOptional conf-enabled/*.conf
IncludeOptional sites-enabled/*.conf
Alles anzeigen
Hier die conf-enabled, die entsprechen der Original Installation
radius@Dione:/etc/apache2 $ ls -l conf-enabled/ # Original Installation
insgesamt 0
lrwxrwxrwx 1 root root 30 Mai 28 17:40 charset.conf -> ../conf-available/charset.conf
lrwxrwxrwx 1 root root 44 Mai 28 17:40 localized-error-pages.conf -> ../conf-available/localized-error-pages.conf
lrwxrwxrwx 1 root root 46 Mai 28 17:40 other-vhosts-access-log.conf -> ../conf-available/other-vhosts-access-log.conf
lrwxrwxrwx 1 root root 31 Mai 28 17:40 security.conf -> ../conf-available/security.conf
lrwxrwxrwx 1 root root 36 Mai 28 17:40 serve-cgi-bin.conf -> ../conf-available/serve-cgi-bin.conf
Hier die mods-enabled, Original Installation plus mod-perl und mod-zembperl
radius@Dione:/etc/apache2 $ ls -l mods-enabled/ # Orginal installation + perl + zembperl
insgesamt 0
lrwxrwxrwx 1 root root 36 Mai 28 17:39 access_compat.load -> ../mods-available/access_compat.load
lrwxrwxrwx 1 root root 28 Mai 28 17:39 alias.conf -> ../mods-available/alias.conf
lrwxrwxrwx 1 root root 28 Mai 28 17:39 alias.load -> ../mods-available/alias.load
lrwxrwxrwx 1 root root 29 Mai 31 14:50 apreq2.load -> ../mods-available/apreq2.load
lrwxrwxrwx 1 root root 33 Mai 28 17:39 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root 33 Mai 28 17:39 authn_core.load -> ../mods-available/authn_core.load
lrwxrwxrwx 1 root root 33 Mai 28 17:39 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root 33 Mai 28 17:39 authz_core.load -> ../mods-available/authz_core.load
lrwxrwxrwx 1 root root 33 Mai 28 17:39 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root 33 Mai 28 17:39 authz_user.load -> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root 32 Mai 28 17:40 autoindex.conf -> ../mods-available/autoindex.conf
lrwxrwxrwx 1 root root 32 Mai 28 17:40 autoindex.load -> ../mods-available/autoindex.load
lrwxrwxrwx 1 root root 30 Mai 28 17:40 deflate.conf -> ../mods-available/deflate.conf
lrwxrwxrwx 1 root root 30 Mai 28 17:40 deflate.load -> ../mods-available/deflate.load
lrwxrwxrwx 1 root root 26 Mai 28 17:39 dir.conf -> ../mods-available/dir.conf
lrwxrwxrwx 1 root root 26 Mai 28 17:39 dir.load -> ../mods-available/dir.load
lrwxrwxrwx 1 root root 26 Mai 28 17:40 env.load -> ../mods-available/env.load
lrwxrwxrwx 1 root root 28 Mai 31 15:34 fcgid.conf -> ../mods-available/fcgid.conf
lrwxrwxrwx 1 root root 28 Mai 31 15:34 fcgid.load -> ../mods-available/fcgid.load
lrwxrwxrwx 1 root root 29 Mai 28 17:40 filter.load -> ../mods-available/filter.load
lrwxrwxrwx 1 root root 27 Mai 28 17:40 mime.conf -> ../mods-available/mime.conf
lrwxrwxrwx 1 root root 27 Mai 28 17:40 mime.load -> ../mods-available/mime.load
lrwxrwxrwx 1 root root 34 Mai 31 14:33 mpm_prefork.conf -> ../mods-available/mpm_prefork.conf
lrwxrwxrwx 1 root root 34 Mai 31 14:33 mpm_prefork.load -> ../mods-available/mpm_prefork.load
lrwxrwxrwx 1 root root 34 Mai 28 17:40 negotiation.conf -> ../mods-available/negotiation.conf
lrwxrwxrwx 1 root root 34 Mai 28 17:40 negotiation.load -> ../mods-available/negotiation.load
lrwxrwxrwx 1 root root 27 Mai 28 17:54 perl.load -> ../mods-available/perl.load
lrwxrwxrwx 1 root root 29 Mai 31 14:33 php7.0.conf -> ../mods-available/php7.0.conf
lrwxrwxrwx 1 root root 29 Mai 31 14:33 php7.0.load -> ../mods-available/php7.0.load
lrwxrwxrwx 1 root root 33 Mai 28 17:40 reqtimeout.conf -> ../mods-available/reqtimeout.conf
lrwxrwxrwx 1 root root 33 Mai 28 17:40 reqtimeout.load -> ../mods-available/reqtimeout.load
lrwxrwxrwx 1 root root 27 Mai 31 15:34 scgi.load -> ../mods-available/scgi.load
lrwxrwxrwx 1 root root 31 Mai 28 17:40 setenvif.conf -> ../mods-available/setenvif.conf
lrwxrwxrwx 1 root root 31 Mai 28 17:40 setenvif.load -> ../mods-available/setenvif.load
lrwxrwxrwx 1 root root 29 Mai 28 17:40 status.conf -> ../mods-available/status.conf
lrwxrwxrwx 1 root root 29 Mai 28 17:40 status.load -> ../mods-available/status.load
lrwxrwxrwx 1 root root 31 Mai 31 14:50 zembperl.conf -> ../mods-available/zembperl.conf
lrwxrwxrwx 1 root root 31 Mai 31 14:50 zembperl.load -> ../mods-available/zembperl.load
Alles anzeigen
Hier die Einstellung für den Virtual Host
radius@Dione:/etc/apache2 $ ls -l sites-enabled/
insgesamt 0
lrwxrwxrwx 1 root root 29 Mai 31 15:50 testvh.conf -> ../sites-available/testvh.conf
radius@Dione:/etc/apache2 $
radius@Dione:/etc/apache2/sites-enabled $ cat testvh.conf
<VirtualHost testvh:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
# ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
# <Directory "/usr/lib/cgi-bin">
<Directory "/var/www/cgi-bin">
AllowOverride None
SetHandler cgi-script
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AddHandler cgi-script .pl
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/testvh_error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel info
CustomLog ${APACHE_LOG_DIR}/testvh_access.log combined
</VirtualHost>
Alles anzeigen
Grüße
Radius