Wakaba/Kareha on Dreamhost (71)

9 Name: Anonymous 2005-02-25 19:30 ID:qUudewrb (Replies) [Del]

I am a total noob and can't get Wakaba to do anything other then list perl scripts on my new Dreamhost account, ex: http://muchan.org/test.pl
I think i've tried everything I saw on the wiki, and here...

Spammy stuff below so that (hopefully) I can't be accused of providing too little info

[peso]$ ls -al
total 180
drwxrwxr-x 8 muchan pg169033 4096 Feb 25 15:48 .
drwxr-xr-x 3 muchan pg169033 4096 Feb 25 16:12 ..
-rw-rw-r-- 1 muchan pg169033 525 Feb 25 15:56 .htaccess
-rwxr-xr-x 1 muchan pg169033 9898 Feb 11 21:12 captcha.pl
-rwxr-xr-x 1 muchan pg169033 9425 Feb 25 15:36 config.pl
-rwxr-xr-x 1 muchan pg169033 6619 Feb 19 02:45 config_defaults.pl
drwxrwxr-x 2 muchan pg169033 4096 Feb 13 17:40 css
-rw-rw-r-- 1 muchan pg169033 496 Feb 25 15:48 example.htaccess
drwxrwxr-x 4 muchan pg169033 4096 Feb 11 21:11 extras
-rwxr-xr-x 1 muchan pg169033 19877 Feb 19 02:44 futaba_style.pl
drwxrwxr-x 2 muchan pg169033 4096 Feb 3 00:14 include
drwxrwxr-x 2 muchan pg169033 4096 Jul 29 2004 res
-rw-rw-r-- 1 muchan pg169033 1557 Feb 7 18:33 spam.txt
drwxrwxr-x 2 muchan pg169033 4096 Jul 29 2004 src
-rwxr-xr-x 1 muchan pg169033 9809 Feb 2 23:36 strings_en.pl
-rwxr-xr-x 1 muchan pg169033 121 Feb 25 16:04 test.pl
drwxrwxr-x 2 muchan pg169033 4096 Jul 29 2004 thumb
-rw-rw-r-- 1 muchan pg169033 894 Sep 11 21:20 wakaba.ico
-rw-rw-r-- 1 muchan pg169033 3848 Feb 10 22:39 wakaba.js
-rwxr-xr-x 1 muchan pg169033 38142 Feb 18 20:44 wakaba.pl
-rwxr-xr-x 1 muchan pg169033 18666 Feb 14 01:12 wakautils.pl

[peso]$ cat .htaccess
Options +ExecCGI
AddHandler cgi-handler .cgi .pl

DirectoryIndex wakaba.html index.html
AddCharset utf-8 html

<Files *.sql>
Deny from all
</Files>

<IfModule mod_headers.c>
<Files *.html>
Header add Expires "Mon, 26 Jul 1997 05:00:00 GMT"
Header add Pragma "no-cache"
Header add Cache-Control "max-age=0; must-revalidate; no-cache"
Header unset Vary
</Files>
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml
RewriteRule \.html$ - [T=application/xhtml+xml]
</IfModule>

[peso]$ which perl
/usr/local/bin/perl

[peso]$ cat test.pl
#!/usr/local/bin/perl

print "Content-Type: text/html\n\n";
print "<html><body><h1>Perl is working!</h1></body></html>";

[peso]$ head wakaba.pl
#!/usr/local/bin/perl

use CGI::Carp qw(fatalsToBrowser);

use strict;

use CGI;
use DBI;

Name: Link:
Leave these fields empty (spam trap):
More options...
Verification: