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...
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.
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 :)
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...
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 :(
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"?
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
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
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
Works fine :)
So,yes,it's just a wakaba prb now...umh...could it be imagemagick's fault,in any way?
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.
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.
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
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?
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
If you delete the html file, and hit the page through the webserver, what happens?
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...
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.
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?
What permissions do the html files have? They should probably be 644 or something, not 755.
Oh wait, on Windows... Scratch that idea. What option DID you set, anyway?
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...
Options +ExecCGI
AddHandler cgi-handler .cgi .pl
Is what I use to run CGI scripts.
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
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
.
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
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?
Yes,everything's fine...although,what about a "manage" section?how do i delete an image i didn't post?
In Wakaba Zero, you just delete pictures like you normally would, but you put in the admin password in the password box.
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
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
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.
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
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.
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 :)
Go right ahead, if you can get it working.
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 :)
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.
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)
Not except by hacking the source a bit...
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?
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. :)