Heb het volgende script in de directory
gezet:
en ook
als ik de scripts uitvoer met ./test.pl en ./test3.pl, dan geven ze gewoon de uitvoer uit de print-commando's
Als ik naar:
ga, dan krijg ik een internal server error.
Volgens mij ligt het dus aan httpd.conf, daar staat het volgende mbt cgi in:
De eigenaar van de directory en de bestanden is joris.
De directory /home/joris/public_html/cgi-bin/ heeft de rechten 777 en de files test.pl en test3.pl ook.
Misschien kan iemand me nog helpen, wat er eventueel fout in mijn httpd.conf zit.
code:
1
| /home/joris/public_html/cgi-bin/ |
gezet:
code:
1
2
3
4
5
6
7
8
9
| #!/usr/bin/perl use CGI; my $page = new CGI; print "Hello, World!"; exit; |
en ook
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| #!/usr/bin/perl -w
use diagnostics;
use CGI::Carp qw(fatalsToBrowser);
BEGIN
{
use CGI::Carp qw(carpout);
}
# Tell perl to send a html header.
# So your browser gets the output
# rather then <stdout>(command line
# on the server.)
print "Content-type: text/html\n\n";
# print your basic html tags.
# and the content of them.
print "<html><head><title>Hello World!! </title></head>\n";
print "<body><h1>Hello world</h1></body></html>\n"; |
als ik de scripts uitvoer met ./test.pl en ./test3.pl, dan geven ze gewoon de uitvoer uit de print-commando's
Als ik naar:
code:
1
2
3
| http://..../~joris/cgi-bin/test.pl of http://..../~joris/cgi-bin/test3.pl |
ga, dan krijg ik een internal server error.
Volgens mij ligt het dus aan httpd.conf, daar staat het volgende mbt cgi in:
code:
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
34
35
36
37
38
39
| LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so
<Directory />
AllowOverride AuthConfig
Options Indexes FollowSymLinks ExecCGI
</Directory>
<Directory /home/*/public_html>
AllowOverride All
Options MultiViews Indexes SymLinksIfOwnerMatch ExecCGI
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Order deny,allow
Deny from all
</Limit>
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory /usr/lib/cgi-bin/>
AllowOverride All
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
AddHandler cgi-script .cgi .sh .pl
<IfModule mod_perl.c>
Alias /perl/ /var/www/perl/
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
</Location>
</IfModule> |
De eigenaar van de directory en de bestanden is joris.
De directory /home/joris/public_html/cgi-bin/ heeft de rechten 777 en de files test.pl en test3.pl ook.
Misschien kan iemand me nog helpen, wat er eventueel fout in mijn httpd.conf zit.
[ Voor 8% gewijzigd door Verwijderd op 28-06-2006 11:45 ]