500 Internal Server Error (417)

1 Name: !WAHa.06x36 2005-02-21 17:46 ID:FqgLpoAw (Replies) [Del]

Since 500 Internal Server Errors aren't ever really caused by Wakaba or Kareha themselves, but are still a big problem for lots of people, I'm setting up this thread to discuss various problems and solutions related to them.

68 Name: !WAHa.06x36 : 2006-09-22 09:41 ID:Heaven [Del]

The directories should likely be 777, not 755. Or you forgot to set the permissions on the tmp/ directory.

69 Name: Anonymous : 2006-09-22 10:21 ID:FY/K7zvt [Del]

>>68

All directories under /wakaba/ are 777 and all .pl files under /wakaba/ are 755

But, if i set the /wakaba/ directory to 777, the script don't work (error 500). I if set the /wakaba/ directory to 755, the script works but then can't create the html pages and get a "Error: Could not write to directory." when i try to submit the drawing.

70 Name: !WAHa.06x36 : 2006-09-22 10:43 ID:Heaven [Del]

>>69

Sounds like an over-paranoid Apache install. Check error_log for messages.

71 Post deleted by user.

72 Name: Anonymous : 2006-09-22 10:56 ID:FY/K7zvt [Del]

[2006-09-22 11:03:26]: error: directory is writable by others: (/home/heavenof/public_html/wakaba)

That's with /wakaba/ in 777

73 Name: !WAHa.06x36 : 2006-09-22 14:25 ID:Heaven [Del]

>>72

Yes, that's an over-paranoid Apache all right. Your best bet is to convince it to not be so goddamn paranoid, or to get suexec working.

74 Name: Anonymous : 2006-09-26 05:50 ID:d7fv44Q7 [Del]

Argh, I've read through the previous help and it seems that everything is working (IE: No permissions/etc errors), but the server won't run perl scripts outside of the CGI-BIN and won't run HTML files inside of it.. Suggestions, please?

75 Post deleted by moderator.

76 Post deleted by moderator.

77 Name: Anonymous : 2006-10-01 20:52 ID:5J8XPLi8 [Del]

>>74

For me, it involved modifying Apache's httpd.conf file.

First, I added +ExecCGI to every 'Options' line.
Then, I modified the 'AddHandler' line, to this:

AddHandler cgi-script .cgi .pl

I also had better luck installing Kareha to a normal folder, instead of the cgi-bin folder.

78 Name: 77 : 2006-10-01 21:44 ID:5J8XPLi8 [Del]

Actually, I was about to post asking that same question, but some-how figured it out.

79 Name: Hugget : 2006-10-08 15:40 ID:DGtR/w6N [Del]

I do agree with Alexander Nilsson.

The 'filecutter-extract-to-interface' would really make this application as easy yet powerful as I and a lot of others, and hopefully yourself would like it to be, have you looked into this option or maybe even started on it?

80 Name: !WAHa.06x36 : 2006-10-08 18:51 ID:Heaven [Del]

>>79

Wrong thread.

I've been working on other things lately so I haven't looked into anything, but I probably will at some point.

81 Name: Anonymous : 2006-10-09 10:50 ID:F2Uk96Dc [Del]

Has anybody had any luck getting wakaba to work on dreamhost?

I'm sitting here with 500 error, and all my settings are correct (chmod, #!), and I tried it with FastCGI on and off but it didn't change anything. I'm wondering if DH has +ExecCGI running.

82 Name: Anonymous : 2006-10-09 12:51 ID:F2Uk96Dc [Del]

>>81

.htaccess:

Options +ExecCGI
AddHandler cgi-script .cgi .pl

<Files ~ "\.pl$">
Options +ExecCGI
</Files>

Still does nothing, just wanted to add that.

83 Name: !WAHa.06x36 : 2006-10-09 13:05 ID:Heaven [Del]

>>81

Lots of people use Wakaba on Dreamhost. Try looking at your error_log to get more information.

84 Post deleted by user.

85 Name: Anonymous : 2006-10-09 16:29 ID:F2Uk96Dc [Del]

>>81, 82, 84 was me

I figured it out, I had the /wakaba/ directory chmodded to 777 and it was suexec being a giant bitch about it.

Got everything working, thanks though.

86 Name: Jared : 2006-10-10 22:20 ID:4jEWEIy1 [Del]

Everything worked until the end.

This is the first time I've even tampered with perl, but, I believe I'm doing everything right?

I'm wondering if I can't run html from my cgi-bin like the other guy in here.

[2006-10-11 00:09:07]: error: directory is writable by others: (/home/thieves/public_html/dorkcity/cgi-bin/board)

87 Post deleted by moderator.

88 Name: Anonymous : 2006-12-01 01:34 ID:Heaven [Del]

>>86
try changing the permissions on the directory to 775?

89 Name: Anonymous : 2006-12-25 03:43 ID:WY8Gkdo9 [Del]

Server error!

The server encountered an internal error and was unable to complete your request.

Error message:
Bareword found where operator expected at (eval 56) line 3, near "/usr/bin" syntax error at (eval 56) line 3, near "/usr/bin" "use" not allowed in expression at (eval 56) line 5, at end of line BEGIN not safe after errors--compilation aborted at (eval 56) line 7. ,

This is probly some stupid error of my fault, but im a noob :|

90 Name: !WAHa.06x36 : 2006-12-25 05:41 ID:Heaven [Del]

>>89

Did you edit any of the files?

91 Name: Susan : 2007-01-13 21:51 ID:ZXGUPVmL [Del]

Doesn't work on my site, help plz.

92 Name: Anonymous : 2007-01-14 00:52 ID:Heaven [Del]

>>91
you might want to provide a URL that works

93 Name: Anonymous : 2007-01-24 13:04 ID:5gAM9BD+ [Del]

So... assuming your host doesn't allow non-perl files to be accessed from within the CGI-Bin, how would you go about running Kareha?

94 Name: !WAHa.06x36 : 2007-01-24 13:33 ID:Heaven [Del]

Preferrably by getting a sane host. Otherwise, by editing the script to make it keep files elsewhere. Look at earlier posts for hints, but I don't think anyone's actually tried.

95 Name: Anonymous : 2007-02-14 23:03 ID:ISSSbXe+ [Del]

>>94
About how much editing would one need to do?

96 Name: Anonymous : 2007-02-15 06:33 ID:Heaven [Del]

>>95
you could try putting this in your config.pl:

use constant BOARD_DIR => '../imgboard/'; # set this to whatever directory you want to have the board in (relative to the directory where kareha.pl is).
use constant RES_DIR => BOARD_DIR.'res/';
use constant CSS_DIR => BOARD_DIR.'css/';
use constant IMG_DIR => BOARD_DIR.'src/';
use constant THUMB_DIR => BOARD_DIR.'thumb/';
use constant HTML_SELF => BOARD_DIR.'index.html';
use constant HTML_BACKLOG => BOARD_DIR.'subback.html';
use constant RSS_FILE => BOARD_DIR.'index.rss';
use constant JS_FILE => BOARD_DIR.'kareha.js';
use constant SPAM_FILES => (BOARD_DIR.'spam.txt');

and then putting include/, spam.txt, and all the .pl files in your cgi-bin directory.

note that the directory you put kareha.pl in needs to be writable for it to be able to write the log file.

i haven't tried this, but i'm pretty sure it should work...

97 Name: Anonymous : 2007-02-15 18:56 ID:ZRrmZ1WL [Del]

>>96
I'm getting this:

Software error:

Couldn't write to file "rabi.memebot.com/a/index.html" at wakautils.pl line 1009.

98 Name: Anonymous : 2007-02-16 00:03 ID:Heaven [Del]

>>97
try changing the permissions on that directory to 775?

99 Name: 98 : 2007-02-16 04:08 ID:W69tK6yd [Del]

i meant to bump this.

100 Name: Anonymous : 2007-02-16 10:55 ID:ZRrmZ1WL [Del]

>>98
I tried that, and then I tried 777 D:

101 Name: 98 : 2007-02-16 11:50 ID:W69tK6yd [Del]

>>100
does index.html exist already?

102 Name: Anonymous : 2007-02-16 15:26 ID:BkcXBwEU [Del]

103 Name: !WAHa.06x36 : 2007-02-16 16:09 ID:Heaven [Del]

Sounds like you're not doing what >>96 said. He suggested using a relative path. Not sure if that will really work, but you seem to be putting the hostname in there, which will obviously not work at all.

104 Name: Anonymous : 2007-02-16 16:47 ID:BkcXBwEU [Del]

>>103
I tried both

105 Name: Anonymous : 2007-04-18 04:58 ID:r2MBDqqJ [Del]

[Wed Apr 18 19:41:48 2007] [error] [client 127.0.0.1] Can't locate CGI/Carp.pm in @INC (@INC contains: .) at C:/Program Files/xampp/htdocs/wakaba/wakaba.pl line 3.\r, referer: http://localhost/wakaba/
[Wed Apr 18 19:41:48 2007] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at C:/Program Files/xampp/htdocs/wakaba/wakaba.pl line 3.\r, referer: http://localhost/wakaba/

^ I'm on windows using xampp and I get 500 internal server error with that in the error.log when I run wakaba.pl.
I set the hashbang to #!C:/Program Files/xampp/perl/bin/perl.exe

Any idea what's wrong?

106 Name: Anonymous : 2007-04-18 05:36 ID:Heaven [Del]

>>105
it looks like your perl installation is broken.

107 Name: !WAHa.06x36 : 2007-04-18 08:55 ID:sQ1Tof14 [Del]

Yes. You'll probably be better off grabbing ActivePerl and installing that directly.

108 Name: Shiroki : 2007-05-12 08:43 ID:ubmrViya [Del]

Errr, I'm having some trouble with getting this to work.
When I run wakaba.pl, I get a 500 error and this in the error log:

[Sat May 12 23:38:16 2007] [error] [client 192.168.0.139] Can't locate CGI/Carp.pm in @INC (@INC contains: .) at C:/Program Files/xampp/htdocs/wakaba/wakaba.pl line 3.\r, referer: http://192.168.0.139/wakaba/
[Sat May 12 23:38:16 2007] [error] [client 192.168.0.139] BEGIN failed--compilation aborted at C:/Program Files/xampp/htdocs/wakaba/wakaba.pl line 3.\r, referer: http://192.168.0.139/wakaba/

I tried all the other cgi tests and they work too except for a .pl one it seems, though I did have .pl next to the addhandler for cgi. Any idea what's wrong?
I am using xampp btw.

109 Name: Anonymous : 2007-05-12 18:39 ID:Heaven [Del]

>>108

Somebody posted the exact same question just above you.

Seems xampp is just horribly broken.

110 Name: shane : 2007-05-30 00:23 ID:4zGHneXq [Del]

Ok, so I set everything up so far and

When I try to go to wakaba.pl or even the test.pl (even in /cgi-bin/)

If my .htaccess has "AddHandler cgi-handler pl cgi"

it will display the .pl file as text in the browser

If I change it to "AddHandler cgi-script pl cgi"

it gives me a 500 Int server error with the logs showing "Premature end of script headers" and nothing else

I've spent hours and I dont know what the hell the problem is. Server is running Perl 5.8.7 and had the Image Magik module natively installed. I'm going crazy here...

Is this "cgi-handler" a module that I don't have???

111 Name: !WAHa.06x36 : 2007-05-30 05:11 ID:Heaven [Del]

Do you also have Options +ExecCGI on?

112 Name: shane : 2007-05-30 16:37 ID:D6lpdV2M [Del]

Yes My .htaccess looks like this:

"# -FrontPage-

IndexIgnore .htaccess /.?? ~ *# */HEADER /README /_vti

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>

AuthName www.wtfsauce.net
AuthUserFile /home/wtfsauce/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/wtfsauce/public_html/_vti_pvt/service.grp
AddHandler cgi-script pl cgi
Options +ExecCGI
"
That last bit? Yeah, I've tried every combination of cgi-script, cgi-handler, .pl .cgi, pl cgi, pl, .pl, cgi, .cgi, and also having the "Options +ExecCGI" immedietly after the last extension instead of on the next line.

Oh yes, the permissions are 777(Tried 775 too) on the test file. I asked my host? They told me to use /cgi-bin/ which I am and to set the permissions to be able to execute it which I did. Otherwise they just told me to "read the instructions for the script you're trying to run"

if you can please contact me on AIM @ shaneisscum

113 Name: Anonymous : 2007-05-30 18:12 ID:Heaven [Del]

> <Limit GET POST>
> order deny,allow
> deny from all
> allow from all
> </Limit>

what.

114 Name: shane : 2007-05-30 19:34 ID:D6lpdV2M [Del]

That limit stuff? That was already in my .htaccess.

Is there a .htaccess for individual folders?

115 Name: !WAHa.06x36 : 2007-05-31 05:11 ID:Heaven [Del]

Your host is probably preventing you from overriding the options you need. The real solution is to get proper hosting.

116 Name: mihalis : 2007-06-04 16:41 ID:pYXInuih [Del]

`Software error:

syntax error at config.pl line 2, near ")
SECRET "
Compilation failed in require at kareha.pl line 12.
BEGIN failed--compilation aborted at kareha.pl line 12.`

i've edited my config.pl
my line 2 is SECRET (' my secret is more than 10 characters, digits + letters')

line 12 is
DISPLAY_ID ('2')

117 Name: !VzIcoieabc : 2007-06-04 20:23 ID:Heaven [Del]

>>116
the lines in config.pl should look like

use constant NAME => VALUE;

118 Name: DrunkRussian : 2007-07-03 10:22 ID:3pBC3dA5 [Del]

config_defaults.pl did not return a true value at /var/www/kareha2/kareha.pl line 13.
BEGIN failed--compilation aborted at /var/www/kareha2/kareha.pl line 13.

wtf? i see many similiar errors but no solved errors.
help me i'm drunk russian and my english is sooo bad.

119 Name: !WAHa.06x36 : 2007-07-03 13:27 ID:Heaven [Del]

>>118

Don't remove the 1; at the end of config_defaults.pl. Actually, don't touch config_defaults.pl at all.

120 Name: DrunkRussian : 2007-07-03 19:06 ID:3pBC3dA5 [Del]

>>119 Well?now he cant write to wakautils index.html

122 Post deleted by user.

123 Name: zip : 2007-09-10 10:58 ID:hSqvWKCa [Del]

I try to run wakaba script on a Debian Sarge vServer with root access. Apache/2.2.3 (Debian) PHP/4.4.4-8+etch4 mod_perl/2.0.2 Perl/v5.8.8 Server
I keep on getting Internal Server Errors but i am able to run your and other perl test-scripts.

The apache error.log says this:
-------------------------------
[Mon Sep 10 17:51:59 2007] [error] Can't locate config.pl in @INC
(@INC contains: . /etc/perl
/usr/local/lib/perl/5.8.8
/usr/local/share/perl/5.8.8
/usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.8
/usr/share/perl/5.8
/usr/local/lib/site_perl
/etc/apache2)
at
/var/www/web1/imgboard/wakaba.pl line 16.\nBEGIN failed--compilation aborted at /var/www/web1/imgboard/wakaba.pl line 16.\n
-------------------------------

Any Ideas? Is it possible that this error accurs because im using mod_perl? And if, what schould i use instead of mod_perl?

124 Post deleted by user.

125 Name: !WAHa.06x36 : 2007-09-10 11:28 ID:Heaven [Del]

You should definitely not use mod_perl, just plain CGI.

126 Post deleted by user.

127 Name: zip : 2007-09-10 12:31 ID:hSqvWKCa [Del]

Well i have absolutely no fucking clue which packages I have to install since I always used mod_perl with apache.

I have Perl/v5.8.8 installed and i think nearly every fuxing module for it:
libwww-perl libsoap-lite-perl libimage-size-perl libdbd-mysql-perl libdbi-perl libdigest-md5-perl libapache-mod-perl libimage-info-perl erlmagick libstring-crc32-perl libapache-request-perl ibstorable-perl libcompress-zlib-perl libtime-hires-perl ibtie-cache-perl

There are like 1 billion sites for installing mod_perl but i cant find any good explanation how to configure perl & apache without using mod_perl

128 Name: Anonymous : 2007-09-10 14:30 ID:hSqvWKCa [Del]

OH MY GOD I FUCKING GOT IT!!!
AND IT WAS THAT HELL OF EASY THAT I FORGOT TO THOUGHT ABOUT THAT!! :)

129 Name: Noya-kun : 2007-09-14 13:42 ID:zpch8jhd [Del]

Forbidden
You don't have permission to access xxx/wakaba.pl on this server.

i get a 403. wth?

130 Name: Anonymous : 2007-09-14 14:03 ID:Heaven [Del]

>>129 obviously, your permissions aren't correct.

131 Name: Noya-kun : 2007-09-14 14:10 ID:zpch8jhd [Del]

>>130
how i fix that shi-?

133 Name: Anonymous : 2007-09-16 22:59 ID:4FmSZqsa (Image: 636x528 jpg, 104 kb) [Del]

src/1190008742918.jpg: 636x528, 104 kb

if you rum on a linux server you can just install the midnight commander ("apt-get mc" on debian)

you can easily set your wakaba.pl and captcha.pl files to chmod 655, the "res" "thumb" and "src" dir to 777 and of course the entire foƶder to 777 if its needet.
have a look on the picture

134 Name: Anonymous : 2007-09-18 17:56 ID:Heaven [Del]

>>133
that's like telling someone to install firefox to read local plain text files.

135 Name: Anonymous : 2007-09-23 00:54 ID:b8AZxdYa [Del]

I seem to be having some trouble, but I have no idea what's causing it. Perl seems to be working.
http://echelongc.com/cgi-bin/test.pl
However.. wakaba is not.
http://echelongc.com/cgi-bin/wakaba/wakaba.pl

It manages to redirect to wakaba.html.. I thought once It got that far there'd be little to go wrong. Does anyeone have any clues what could be wrong?

136 Name: Anonymous : 2007-09-23 01:29 ID:b8AZxdYa [Del]

>>135
Hey This is 135. I've moved all of the /wakaba/ folder to my root cgi-bin..

so now the wakaba url is

http://www.echelongc.com/cgi-bin/wakaba.pl

137 Name: !WAHa.06x36 : 2007-09-23 07:57 ID:Heaven [Del]

Your server uses an antiquated broken setup, probably. Enable running Perl scripts anywhere and get rid of cgi-bin.

138 Name: anon : 2007-09-25 07:16 ID:IIs64NNg [Del]

hey im currently tring to setup at fro.papaiti.com

the directory permissions is 775 and the pl files have correct permissions. when i point my browser to wakaba.pl i get:

Software error:

No ADMIN_PASS or NUKE_PASS defined in the configuration at /usr/share/perl/5.8/CGI/Carp.pm line 314.
BEGIN failed--compilation aborted at config_defaults.pl line 126.
Compilation failed in require at wakaba.pl line 17.
BEGIN failed--compilation aborted at wakaba.pl line 17.

if i remove .htaccess it changes to a 500 internal server error. i'm hosted at dreamhost. any ideas?

139 Name: Anonymous : 2007-09-25 07:43 ID:Heaven [Del]

>>138 did you edit the config.pl file (and remove the # from in front of the lines you changed)?

140 Name: Anonymous : 2007-09-26 20:08 ID:tX3eJDLs [Del]

Sorry if this question as already been answered, thread is huge like an x-box but I get this error:

Error message:
Can't locate config.pl in @INC (@INC contains: . C:/xampp/perl/site/lib/ C:/xampp/perl/site/lib C:/xampp/perl/lib C:/xampp/apache) at C:/xampp/htdocs/****/kareha/kareha.pl line 12. BEGIN failed--compilation aborted at C:/xampp/htdocs/****/kareha/kareha.pl line 12.

141 Name: !WAHa.06x36 : 2007-09-27 05:40 ID:Heaven [Del]

>>140

Entire thread -> CTRL-F -> "Can't locate config.pl"

142 Name: Anonymous : 2007-09-27 17:39 ID:tX3eJDLs [Del]

>>141
I have a new question now.
How do I disable mod_perl and use just CGI.
I'm using xampp with a perl add-on that gives me 5.2.3 mod_perl/2.0.3 Perl.
This is my first time using perl and shit is confusing me.

143 Name: !WAHa.06x36 : 2007-09-28 07:29 ID:Heaven [Del]

Ask the xampp people. I have no idea.

144 Name: MnokeyJesus : 2007-10-02 19:22 ID:NrnxycNv [Del]

500 internal server errors whenever I try to acess config.pl in my cgi-bin directory, shows as plain text whenever
I try to run config.pl. Other .pl's dont seem to be working either. I dont have a .htaccess file, do I need one? Aslo, ive looked through httpd.conf and added the exec thing to evert directory. Hosting the server myself so I can do pretty much anything I need to do. CentOS 4.5 if it helps.

145 Name: MnokeyJesus : 2007-10-02 19:23 ID:NrnxycNv [Del]

500 internal server errors whenever I try to acess config.pl in my cgi-bin directory, shows as plain text whenever
I try to run config.pl. Other .pl's dont seem to be working either. I dont have a .htaccess file, do I need one? Aslo, ive looked through httpd.conf and added the exec thing to evert directory. Hosting the server myself so I can do pretty much anything I need to do. CentOS 4.5 if it helps.

146 Name: !WAHa.06x36 : 2007-10-04 06:29 ID:Heaven [Del]

You are not supposed to be running config.pl or any other .pl file but wakaba.pl. Also, read the beginning of this thread for more hints.

147 Name: confused : 2007-10-14 02:01 ID:aaVk9lTM [Del]

I got this kind of error:

Can't locate object method "Archive" via package "files" (perhaps you forgot to load "files"?) at config.pl line 11.
Compilation failed in require at wakaba.pl line 16.
BEGIN failed--compilation aborted at wakaba.pl line 16.

Even getting this far took lot of effort, because i haven't found any documentation or instructions, does anybody know where i can get those?

148 Name: !WAHa.06x36 : 2007-10-14 04:26 ID:Heaven [Del]

>>147

http://wakaba.c3.cx/docs/docs.html

Also, that error likely means you messed up the syntax in your config. Start over and look more carefully at the examples.

149 Name: confused : 2007-10-14 05:09 ID:aaVk9lTM [Del]

Now it works, thanks!

150 Name: dood : 2008-01-09 12:25 ID:32OW5zVx [Del]

I have both wakaba and kareha installed and running under suexec installed with next to zero problems. The one thing I can't workout is this.

==> /var/log/apache2/error_log <==
suexec failure: could not open log file
fopen: Permission denied
[Wed Jan 09 15:24:42 2008] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: paint.pl, referer: http://xxx.xxx.xxx.xxx/o/wakaba.html

==> /var/log/apache2/suexec_log <==
[2008-01-09 15:24:42]: uid: (1001/dood) gid: (100/100) cmd: paint.pl

151 Name: !WAHa.06x36 : 2008-01-10 06:04 ID:xeIogjHJ [Del]

>>150

Well, I don't know too much about suexec other than that it's a world of pain.

I guess you'll have to figure out what's different with paint.pl from the other script files. Permissions? Hashbang? Something else?

152 Name: Anonymous : 2008-02-17 00:51 ID:9rxr01dc [Del]

trying to get wakaba running effectively.
the imageboard runs just fine, but when trying
to access wakautils.pl i get the same
Error 500 Internal Server Error "Premature
end of script headers". what exactly is
wakautils.pl?

also, i'm on a shared host [nearlyfreespeech],
can't change apache or install stuff, and i can't
find and error_log to check either. (i've been
scouraging the threads for hours to learn more
about wakaba, please help.)

153 Name: !WAHa.06x36 : 2008-02-17 04:18 ID:S6oc+bdl [Del]

>>152

You're not supposed to access it, everything is working as it should.

154 Name: Anonymous : 2008-02-17 06:18 ID:9rxr01dc [Del]

>>153

ok, sweet. i was making a problem out of
nothing.

gotta learn me some perl.
the more i learn, the less i seem to know. [=

155 Name: !WAHa.06x36 : 2008-02-17 16:34 ID:Heaven [Del]

It's been over ten years, and I am still learning Perl.

156 Name: Anonymous : 2008-02-27 14:19 ID:wlBuPDwX [Del]

Please someone help me. The test script works anywhere in my site just fine, including cgi-bin. I did try permissions (755 for wakaba.pl and captcha.pl as well as all folders - even tried setting 755 for all files). My hash-bin is right. I'm pretty sure I did the config file properly (I did it the same way for wordpress and it works fine with my database so I'm sure that's not a problem). I do have thumbnailers installed. But I still get the 500 Internal Server error.

HOWEVER, the error message/style is different from normal. Before it would be black and white text (given by the server itself) whereas now it's an error given by IE (its graphical) saying "website cannot display the page." My server does not record an error in the error log either this time around. I know these are clues, but I don't understand it.

Can anyone please help?

(Some details about my server: PERL version 5.8.8,
Path to PERL /usr/bin/perl, MySQL version 4.1.22-standard-log, Apache version 1.3.37 (Unix))

157 Name: !WAHa.06x36 : 2008-02-27 17:09 ID:Heaven [Del]

First off, use some other browser than IE and see what it says.

158 Name: Anonymous : 2008-02-27 20:37 ID:wlBuPDwX [Del]

I am 156, neevermind guys. I got it working. Thanks anyway :)

I think it might be common sense for a lot of you but for non-programmers, I think this should be stressed: REMOVE THE '#' SYMBOL FROM IN FRONT OF THE LINES YOU CHANGED IN THE CONFIG FILE

159 Name: Anonymous : 2008-03-18 16:21 ID:yqDdLeys [Del]

Grr.

So here I am on lighty 1.4.13, Debian.
Perl is functional, directory permissions are correct.

Wakaba can't write to directory(ies?)

On a wild guess, i'm flailing at my inane vhost setup, which is as follows.

$HTTP["host"] =~ "(^|\.)steamchan\.net$" {
server.document-root = "/var/www/steamchan"
$HTTP["url"] == "/c" {

  cgi.assign = ( ".pl" => "/usr/bin/perl" )

}
$HTTP["url"] =~ "/w" {

  cgi.assign = ( ".pl" => "/usr/bin/perl" )

}
$HTTP["url"] =~ "/s" {

  cgi.assign = ( ".pl" => "/usr/bin/perl" )

}
}

Is there something I'm missing?

(a shot in the dark I know, everybody and their mother's dog is on apache.. but.)

160 Name: Anonymous : 2008-03-18 17:48 ID:Heaven [Del]

>>159

Just put the cgi.assign in the host pattern, unless you really really need to have .pl files not be executable outside the boards. Less redundant, and less chance of stuff randomly not working because of a silly typo.

If you map a script to "", it'll execute the script directly with the hashbang line. This is the way I do it because it's more like other servers and (IMO) less prone to odd problems.

So your vhost would look like:

$HTTP["host"] =~ "steamchan\.net$" {
server.document-root = "/var/www/steamchan"
cgi.assign = (".pl" => "")
}

Then just chmod +x wakaba.pl and make double sure the cgi scripts have write access to the directories. It "should" work, for varying values of should.

161 Name: !WAHa.06x36 : 2008-03-18 18:57 ID:xeIogjHJ [Del]

>>159

Is it setting the current directory to the board directory before executing the script, or not? Try adding a die pwd; somewhere at the top of the script.

162 Name: !WAHa.06x36 : 2008-03-18 18:59 ID:xeIogjHJ [Del]

That should be:

die `pwd`;

163 Name: Anonymous : 2008-03-19 08:07 ID:U8N2NUP3 [Del]

>>160
>>161
Thanks

I managed to figure several things about. For whatever reason, my install of lighty hates serving things from the /var/www/ directory. This is rectified by re-writing everything something like /home/whatever directory.
Secondly, if the permissions are set to anything other than 777 for the board root directory the script will refuse to write them. 775 755 etc do not work. I'll dig around more and see if I can find anything as to why this is the case.

Thanks for your help guys.

164 Name: Anonymous : 2008-03-19 15:39 ID:Heaven [Del]

>>163
Can you paste your whole lighttpd.conf?

165 Name: !WAHa.06x36 : 2008-03-20 05:31 ID:xeIogjHJ [Del]

>>163

That's likely because the web server runs under its own account, and you need to give others write access. It's more secure to setup Apache to change user to your user before running the scripts, but I don't know if lighty lets you do that, so you may be stuck with 777 (or 757, but that's silly) permissions.

166 Name: Anonymous : 2008-03-20 09:29 ID:Heaven [Del]

>>165
It sure does, with execwrap or Apache's suexec. I've actually found lighty to be easier to configure than Apache for multi-user CGI scripting.

167 Post deleted by moderator.

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