Getting 403 errors for .pl files,running on windows (43, permasaged)

1 Name: Mdk 2005-01-23 07:06 ID:WPH3Sgcp (Replies) [Del]

I guess i'm messing up with the apache conf file here,cause any .pl/cgi file i try to access from the net gives me a 403 forbidden error,although i followed http://www.thesitewizard.com/archive/addcgitoapache.shtml 's instructions..what could be wrong?directory permissions?file permissions?that shouldn't even be there with windows...

2 Name: dmpk2k!hinhT6kz2E 2005-01-23 07:50 ID:Heaven (Replies) [Del]

What does your error_log (or error.log) say?

If all permissions are sane, which they probably are on windows, you probably will be able to fix it by replacing:

#!/usr/bin/perl

with

#!perl

or

#!C:/perl/bin/perl.exe

...or where ever you installed ActivePerl. Do this for the first lines of captcha.pl and wakaba.pl.

3 Name: Mdk 2005-01-23 08:35 ID:C6V5Kyus (Replies) [Del]

I had fixed #!c:/perl/perl.exe already,but it still didn't work
I'll have a lok in error.log,although it's a huge file to check :)

4 Name: Mdk 2005-01-23 08:37 ID:C6V5Kyus (Replies) [Del]

Oh,i also tried moving the whole wakaba DIR in the cgi-bin one,and now i get a:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator

well,it's a step forward...

5 Name: Mdk 2005-01-23 08:56 ID:C6V5Kyus (Replies) [Del]

oh hey!looks like the prb now is in wakaba.pl:
[Sun Jan 23 14:52:03 2005] [error] [client 192.168.0.1] Premature end of script headers: d:/homepage/wakaba/wakaba.pl
[Sun Jan 23 14:52:03 2005] [error] [client 192.168.0.1] syntax error at d:\\homepage\\wakaba\\wakaba.pl line 2, near "."\n
[Sun Jan 23 14:52:03 2005] [error] [client 192.168.0.1] Execution of d:\\homepage\\wakaba\\wakaba.pl aborted due to compilation errors.\n

I only changed #!usr/... with #!perl or #!c:/perl/perl.exe but none work...what could it be?i don't know nothing about perl :(

6 Name: !WAHa.06x36 2005-01-23 09:09 ID:amKMcmgf (Replies) [Del]

Uh, that looks really strange. Syntax error on line 2? Line 2 is empty...

What happens if you open a command prompt, go to the wakaba directory, and run "perl wakaba.pl"?

7 Name: Mdk 2005-01-23 09:25 ID:C6V5Kyus (Replies) [Del]

status:301 go west
location: wakaba.html
content-type: text/html

<html><body><a href="wakaba.html">wakaba.html</a></body></html>

i think the messed part is:
use Encode qw(decode);

use lib '.';
BEGIN { require 'config.pl'; }

cause that lib '.' might be the error reported in the log

8 Name: Mdk 2005-01-23 10:07 ID:C6V5Kyus (Replies) [Del]

It's getting even better,now it's:
[Sun Jan 23 16:04:43 2005] [error] [client 127.0.0.1] Premature end of script headers: d:/homepage/wakaba/wakaba.html

But i'm totally clueless

9 Name: !WAHa.06x36 2005-01-23 10:14 ID:amKMcmgf (Replies) [Del]

It's much easier to first make sure you have CGI script working, and only then try to run Wakaba.

Try getting this script running first, then proceed to running Wakaba: http://wakaba.c3.cx/sup/kareha.pl/1102836129/6

10 Name: Mdk 2005-01-23 10:19 ID:C6V5Kyus (Replies) [Del]

Works fine :)
So,yes,it's just a wakaba prb now...umh...could it be imagemagick's fault,in any way?

11 Name: !WAHa.06x36 2005-01-23 10:25 ID:amKMcmgf (Replies) [Del]

No, imagemagick wouldn't stop the script from running. Did you edit wakaba.pl any some way that broke it? Try using a fresh version.

12 Name: !WAHa.06x36 2005-01-23 10:27 ID:amKMcmgf (Replies) [Del]

Wait, if you've got a use Encode qw(decode); in there, does that mean you're running Wakaba Zero? What Perl version do you have? Zero requires at least 5.8.0.

13 Name: Mdk 2005-01-23 10:33 ID:C6V5Kyus (Replies) [Del]

yeah,i'm using wakabazero,sorry for not telling you earlier
And yes,i'm using perl...umh...5.8.6,latest version
i tried opening wakaba.pl on firefox and it kept giving me a 404 casue wakaba.html was missing (i tried deleting it) but when luckily Ie recreated it
now i'm using a just-unzipped version of all files,and still nothing...maybe i should try using #!c:/perl/bin/perl5.8.6.exe instead of just #!perl

14 Name: !WAHa.06x36 2005-01-23 11:53 ID:amKMcmgf (Replies) [Del]

Uh, it sounds to me like the script is actually running, if you're getting 404's and it's creating wakaba.html. What exactly is your problem right now?

15 Name: Mdk 2005-01-23 14:16 ID:W+fB+SW6 (Replies) [Del]

firefox didn't create the .html,only IE did,although it doesn't show up on neither of emi get a 500 error and
[Sun Jan 23 16:33:01 2005] [error] [client 127.0.0.1] Premature end of script headers: d:/homepage/wakaba/wakaba.html
[Sun Jan 23 16:33:01 2005] [error] [client 127.0.0.1] File does not exist: d:/homepage/favicon.ico

i don't really think the favicon thing is crashing it,so...dunno
If i open the html locally it's looks like it's there,complete with forms and all,but it doesn't upload or anything

16 Name: !WAHa.06x36 2005-01-23 15:56 ID:amKMcmgf (Replies) [Del]

If you delete the html file, and hit the page through the webserver, what happens?

17 Name: Mdk 2005-01-23 16:09 ID:W+fB+SW6 (Replies) [Del]

Tried it,firefox gives a 404 cause .html doesn't exist,IE creates the html and gives a 500

Man,if it's so much of a mess i might as well give it up...

18 Name: !WAHa.06x36 2005-01-23 18:48 ID:amKMcmgf (Replies) [Del]

If you get a 404, that means the script DID run and forwarded you to the page that doesn't exist. It sounds like there's something strange with your web server setup, or Wakaba config file.

19 Name: Mdk 2005-01-24 04:46 ID:imjdmcLd (Replies) [Del]

Well,now i can't run any .html file in both "wakaba" and "cgi-bin" DIRs...although the .pl files work in both
I can't see where the error is,since i gave both folders all the options i could...maybe i could put the wakaba.html file in a different folder..how much editing would that need?

20 Name: !WAHa.06x36 2005-01-24 08:07 ID:FSaFQcCv (Replies) [Del]

What permissions do the html files have? They should probably be 644 or something, not 755.

21 Name: !WAHa.06x36 2005-01-24 08:08 ID:FSaFQcCv (Replies) [Del]

Oh wait, on Windows... Scratch that idea. What option DID you set, anyway?

22 Name: Mdk 2005-01-24 08:13 ID:4qSMAqa+ (Replies) [Del]

Both wakaba and cgi-bin have All and ExecCGI
I browse a couple of forums and,guess what,you can't run anything beside scripts in a cgi folder (like cgi-bin and wakaba),so i have to either put wakaba.html in a different folder or try to make wakaba non-scriptalaised but still able to run cgi...

23 Name: !WAHa.06x36 2005-01-24 11:18 ID:FSaFQcCv (Replies) [Del]

Options +ExecCGI
AddHandler cgi-handler .cgi .pl

Is what I use to run CGI scripts.

24 Name: Mdk 2005-01-24 13:43 ID:Z1oQ16qz (Replies) [Del]

Woo!moving on!now the wakaba.html works fine but i can't post stuffs...this is getting ridicoulous,huh? :)

Method Not Allowed
The requested method POST is not allowed for the URL /wakaba/wakaba.pl.

Also,the verification image isn't showing up,can i completely remove that?

http://mdk.serveftp.com/wakaba/wakaba.pl ,if you want to take a look

25 Name: !WAHa.06x36 2005-01-24 16:29 ID:FSaFQcCv (Replies) [Del]

Sounds like the web server is forbidding POST requests. You'll need to figure out how to make it accept them... I have no idea how that works.

You need to fix up the hashbang in captcha.pl the same way as in wakaba.pl to get the verification code image, or alternatively, put use constant ENABLE_CAPTCHA => 0 in config.pl.

26 Name: Mdk 2005-01-26 14:36 ID:6xcTVpUV (Replies) [Del]

Well hooray!
Now it works even better....thing is,the .html ain't updated :(
scripts runs,i can UL stuffs,it appears on my PC but the wakaba.html isnt' showing anything
What could it be this time?
http://mdk.serveftp.com/wakaba/wakaba.html

27 Name: Mdk 2005-01-26 14:37 ID:6xcTVpUV (Replies) [Del]

OH,nm,it's kinda fixed..i just had to ctrl-refresh the page (although,my users shouldn't have to do that..we'll see)
Thanks oh mighty waha!

BTW,i disapled the captcha,but the password verification is still there..shouldn't it be disabled?

28 Name: Mdk 2005-01-26 14:50 ID:6xcTVpUV (Replies) [Del]

Yes,everything's fine...although,what about a "manage" section?how do i delete an image i didn't post?

29 Name: !WAHa.06x36 2005-01-26 15:34 ID:j7a4lHpF (Replies) [Del]

In Wakaba Zero, you just delete pictures like you normally would, but you put in the admin password in the password box.

30 Name: Mdk 2005-01-26 15:59 ID:6xcTVpUV (Replies) [Del]

OH,i see..i was mistaking the admin_pass and the costant secret,now i'm fine
I also tried to del the html file in the /res DIR and it worked fine :)
Thanks for your time waha!feel free to post anytime now ;P

31 Name: Mdk 2005-01-30 15:29 ID:Uld2Hi5V (Replies) [Del]

Instead of opening a new thread i'll just bump this one

Is there a way to set a default image that'll display when something non-image is uploaded,for example a .swf?instead of having the "no thumbnail" link,i mean

32 Name: !WAHa.06x36 2005-01-30 15:35 ID:vUgA4LU8 (Replies) [Del]

I don't think I ever implemented that in Wakaba Zero.

I am currently working on making Kareha able to do the same things as Wakaba Zero, though, and it will support doing this. And there will be a conversion script to switch over to it, but it's not quite done yet.

33 Name: Mdk 2005-01-30 16:22 ID:Uld2Hi5V (Replies) [Del]

Don't worry,i'm quite happy with this one :)

How could i switch previous and next to buttons?it'd look nicer...i guess i'll head into templates and have a look :)
And,is there a way to disable the file-renaming?i'd like to keep the original names on the flash board,but i guess it's just me

34 Name: !WAHa.06x36 2005-01-30 17:03 ID:vUgA4LU8 (Replies) [Del]

Well, the code same code that adds icons to unknown files also turns off the file renaming... but that won't work in Wakaba Zero, either. Wait until the new Kareha version is done, and use that.

35 Name: Mdk 2005-01-30 17:26 ID:Uld2Hi5V (Replies) [Del]

Ok :)
Oh..i "borrowed" the bluemoon css and the stylesheet changer stuff from the .js..can i do that?otherwise i'll just take it away,don't worry :)

36 Name: !WAHa.06x36 2005-01-30 20:00 ID:vUgA4LU8 (Replies) [Del]

Go right ahead, if you can get it working.

37 Name: Mdk 2005-01-31 03:46 ID:MNia/Rsr (Replies) [Del]

There,i had to grab some 4chan's code to get it working but now it's great.
Thanks again,now i'm all happy with my new toy :)

38 Post deleted by user.

39 Name: !WAHa.06x36 2005-01-31 13:13 ID:Tx5k+Kik (Replies) [Del]

Because there's no global post count in Wakaba Zero - it works sort of like 0ch-style scripts that way. The threads are actually numbered 1,2,3,4 and so on too. This is a consequence of not using a database.

40 Name: Mdk 2005-01-31 13:18 ID:gMLs0l2P (Replies) [Del]

Ah,i thought it was because of teh database but since the thread files were numbered,i was wondering if that could've been used as global count
Also,any way to add a single extension to the allowed fileypes without having to allow all of em?i wanted to make a flash board (and i've done it,but now they can post whatever else on that)

41 Name: !WAHa.06x36 2005-01-31 14:29 ID:Tx5k+Kik (Replies) [Del]

Not except by hacking the source a bit...

42 Name: Jusa : 2012-05-23 06:13 ID:IR6S0wA/ [Del]

I have almost this kind of problem. Problem is that Wakaba won't save my submits. I have tried 3 times to install it all over again with different SQL-options. I can write to every box, select file and submit, but it won't get saved and I can't see my post.

I'm running Apache 2.2 in it's default folder (C:\Program Files\Apache Software Foundation\Apache2.2)

Perl is running in it's default folder (C:\Perl\bin\perl.exe)

and I have Wakaba folder installed in Apache's htdocs folder (C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\wakaba\)

I tried this first with lots of configuration, but now I only have passwords changed, SQLite selected with default values and captcha disabled. I'm not even sure if I'm doing right with this SQLite when I just take the comment mark (#) away from it.. should I change the name for that file or is it just a name for one file?

Now I don't really know where to start looking for next.. Is here something I'm missing or do I have something missunderstood?

43 Name: Jusa : 2012-05-23 23:55 ID:IR6S0wA/ [Del]

Oh, well. New day, new eyes and lovely reboot.

I made those Apache CGI configurations in wrong file (bad side of multiple copies of same folder) and at second time I forgot restart Apache.. at 3rd time I had error, at last! It was 403 and I knew I was close, thanks to this board. Now it works!

Next step -> Make it look personal. :)

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