Thread RaspberryPi Webserver mit Perl CGI (43 answers)
Opened by Gustl at 2013-10-26 10:26

Gustl
 2013-10-26 11:47
#171549 #171549
User since
2011-01-27
441 Artikel
BenutzerIn
[Homepage]
user image
Quote
which perl
wird dir zeigen wo Perl installiert ist ;)

Komisch, der File-Manager hats nicht angezeigt. Aber per SSH kann ichs auswählen. Ok, dann ist Perl installiert.

Quote
Ach, komm schon.
Es gibt kein /etc/apache2/?

Nein, dort ist die httpd.conf eben nicht drin, die vermisse ich ja...
nur die apache2.conf, mit dem anderen Verzeichnissen oder Files kann ich nichts anfangen.
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
pi@raspberrypi /etc/apache2 $ cd /etc/apache2
pi@raspberrypi /etc/apache2 $ ls -l
total 72
-rw-r--r-- 1 root root 9640 Mar 4 2013 apache2.conf
drwxr-xr-x 2 root root 4096 Oct 26 00:00 conf.d
-rw-r--r-- 1 root root 1465 Mar 4 2013 envvars
-rw-r--r-- 1 root root 31063 Oct 21 2012 magic
drwxr-xr-x 2 root root 4096 Oct 25 23:43 mods-available
drwxr-xr-x 2 root root 4096 Oct 25 23:43 mods-enabled
-rw-r--r-- 1 root root 750 Mar 3 2013 ports.conf
drwxr-xr-x 2 root root 4096 Oct 25 23:21 sites-available
drwxr-xr-x 2 root root 4096 Oct 25 23:22 sites-enabled
pi@raspberrypi /etc/apache2 $



Quote
<FilesMatch "\.(p(m|lx?)|cgi)$">
Options +ExecCGI +FollowSymlinks
SetHandler cgi-script
</FilesMatch>


Wenn ich das in die .htaccess einfüge kommt '500 Internal Server Error'.
CHMOD der Dateien sind 755.

Betriebssystem ist Raspbian “wheezy”.

Unter /etc/apache2/sites-enabled ist noch eine 000-default:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  GNU nano 2.2.6                File: 000-default

<VirtualHost *:80>
ServerAdmin webmaster@localhost

DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks Includes ExecCGI MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

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
</VirtualHost>

Da habe ich auch schon etwas verändert, passt die so?

Danke.Gruß
Anhänge

Last edited: 2013-10-26 12:47:34 +0200 (CEST)

View full thread RaspberryPi Webserver mit Perl CGI