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.
>>318
Right. You don't put Wakaba into the cgi-bin folder, at all. Incidentally that folder is a terrible idea in general.
The example.htaccess supplied with Wakaba is all the configuration you need, presuming Apache is configured to allow .htaccess files. (Rename it to .htaccess)
opps. i had the +ExecCGI on the wrong directory. that fixed it. i think i'm going to write a tutorial on how to get this running on windows for my fellow newbs... heh thanks for the input guys!
when i set the permissions to 777 i get a 404 error and when i set them to 755 i get a error: could not write to directory...what do??
[Tue Jul 06 05:26:38 2010] [error] [client 172.17.0.132] File does not exist: /f5/33chan/public/wakaba/wakaba.html, referer: http://33chan.nfshost.com/
[Tue Jul 06 05:26:41 2010] [error] [client 172.17.0.144] [Tue Jul 6 05:26:41 2010] config.pl: Constant subroutine main::DISPLAY_ID redefined at /usr/local/lib/perl5/5.8.9/constant.pm line 115., referer: http://33chan.nfshost.com/
[Tue Jul 06 05:26:44 2010] [error] [client 172.17.0.144] File does not exist: /f5/33chan/public/wakaba/wakaba.html, referer: http://33chan.nfshost.com/
[Tue Jul 06 05:27:57 2010] [error] [client 172.17.0.144] [Tue Jul 6 05:27:57 2010] config.pl: Constant subroutine main::DISPLAY_ID redefined at /usr/local/lib/perl5/5.8.9/constant.pm line 115., referer: http://33chan.nfshost.com/
this is constantly my error log, i feel as if i am missing something obvious but i can not tell
even when i set the permissions to 755 i still get the could not write to directory error
well i got some problems with my wakaba :/
i got that far, that i can run the wakaba.pl but it fails at line 3 and says,
[Tue Aug 31 10:16:20 2010] [error] [client 127.0.0.1] Can't locate CGI/Carp.pm in @INC (@INC contains: .) at C:/xampp/cgi-bin/wakaba/wakaba.pl line 3.\r
and yeah i know dont put it into the cgi-bin dir -.- but idk how to change the xampp settings to compile .pl files in /htdocs :/
any ideas whats wron wit CGI/Carp.pm? i wonder if xampp comes with it :O
> xampp
Just don't use xampp. It seems to be horribly broken.
>>325
CGI/Carp.pm is a core part of Perl, and xampp is shit. (See >>105-109, and http://www.google.com/search?q=site:wakaba.c3.cx+xampp)
After hours of fighting i have finally hit the wall, perl is supposedly working as test.pl outputs coherently, mysql is propably up and running correctly as even the tables have been created, folders and .pl files are correctly 755 and others 644, apache has ownership of the folders, and the wakaba.pl does not generate any 403 or 500 errors anymore. Only one small thing, when I go to the wakaba.pl and it generates .html and redirects me there, the .html gives me 500 error with apache error log saying [error] [client *] (13)Permission denied: exec of '/var/www/imgboard/wakaba.html' failed
[error] [client *] Premature end of script headers: wakaba.html
>>329
You should only have Apache set up to execute Perl scripts, not all files. Particularly it shouldn't be in a cgi-bin directory or any similar sort of configuration.
#!/usr/bin/perl
print "Content-Type: text/html\n\n";
print "<html><body><h1>Perl is working!</h1></body></html>";
Well I fixed my first error and got it up. However if I chmod 777 res it redirects to wakaba.html which is 404 not found. Leaving as it is the dir is not writable.
Any thoughts?
>>332
Is your base directory - with wakaba.pl in it - writable?
I'm using kahera with mode_image and it works fine except that I get the 500 Internal Server Error when trying to post an image.
Does anyone know of a fix?
>>334
set permissions to 755 and make sure the owner of the all the directories and files is the user that the script is running as.
>>336
I did, I think it's just a shitty server, I've switched hosts.
why is it forbiden?
what should i do?
Wed Mar 01 12:27:12 2006] [error] [client 192.168.1.68] File does not exist:
/var/www/localhost/htdocs/favicon.ico, referer: http://192.168.1.68/kareha/
[Wed Mar 01 12:27:14 2006] [error] Can't locate config_defaults.pl in
@INC(@INC contains: . /home/httpd/perl /etc/perl /usr/lib/perl5/site_perl/5.8.7/
i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl /usr/lib/perl5/
vendor_perl/5.8.7/i686-linux /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/
vendor_perl/5.8.6/i686-linux /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/
vendor_perl /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/local/lib/
site_perl /usr/lib/apache2) at /var/www/localhost/htdocs/kareha/kareha.pl
line 13.\nBEGIN failed--compilation aborted at /var/www/localhost/htdocs/
kareha/kareha.pl line 13.\n
i can not acces admin page,please help me...here the error
Bareword "ADMIN_SHOWN_POSTS" not allowed while "strict subs" in use at admin.pl line 297, <FILE> line 7.
Bareword "ADMIN_SHOWN_LINES" not allowed while "strict subs" in use at admin.pl line 297, <FILE> line 7.
Bareword "ADMIN_BAN_FILE" not allowed while "strict subs" in use at admin.pl line 374, <FILE> line 7.
Bareword "ADMIN_EDITABLE_FILES" not allowed while "strict subs" in use at admin.pl line 267, <FILE> line 7.
Execution of admin.pl aborted due to compilation errors.
I fixed my problem on my Linux server by using Dos2Unix on all the files because of the http://en.wikipedia.org/wiki/Newline#Common_problems.
And I also made apache the owner to the root document folder and as well: res, src, thumb.
GOOD LUCK
No-one ever posted a solution for this:
A directory of 777 recieves an error as the built in security prevents the script from running.
A directory of 755 prevents a file being written and so no posts can be made.
How can one setup the permissions allowing writting without an error being produced?
Turn off the security, or configure things to run as the correct user.
>>347
I've always wondered how shared hosting does that. Do they run their webserver software as root or something?
>>350
No. You can spawn FastCGI servers which run with different UIDs to achieve the same security benefits, though.
>>351
Yes, it's a bitch and is (in my opinion) unnecessarily strict on how you set things up. mpm_itk does pretty much the same thing, but is easier to set up, lets you use crap like mod_php (so you won't have to dick around with getting PHP to run under FastCGI on Apache) and doesn't whine because you use mode 775 instead of 777 on your CGI scripts.
>>348-357
Apparently this is how it works on nginx
http://wiki.nginx.org/Faq#What_about_support_for_something_like_mod_suexec.3F
Ugh.. this is confusing the crap out of me.. I did everything as it said and I am getting this error.. "error when writing CGI reply" When posting an image. Message board works fine otherwise.. Also, how do I create new boards?? Sorry for being a newfriend..
>>355
Can't really help with the first problem, but to create new boards you just install Wakaba in another directory.
Okay well, here can you help me about this.. http://www.flizzop.net/forum.html and try to reply.. How do I fix this?
>>357
Check your nginx config. I think you aren't forwarding the pages to fastcgi or whatever properly.
Where do I access that? I don't see it on my cPanel.. :/
>>360
...Well, they obviously do if you were able to make threads in the first place... Maybe its a permissions error?
I set them all at 755. Perhaps it is because I am using Kareha hahaha, I wanted to use Wakaba but, it seems a lot more confusing to set up.
>>362
It might need to be 775 depending on what fastcgi is running as. Don't blame yourself; its your host's fault.
I will try it, I will report back in a few minutes.
Fuuu- now I'm getting this:
Software error:
"use" not allowed in expression at config.pl line 164, at end of line
syntax error at config.pl line 164, near "use constant "
Compilation failed in require at /home/flizzop.net/public_html/kareha.pl line 12.
BEGIN failed--compilation aborted at /home/flizzop.net/public_html/kareha.pl line 12.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.
But, anyway, I am going to restart.. Just wipe my /public_html/
and do the steps again.
Woo! Got my site to work for the most part! The only issue I am having now is those pesky replies... I am still getting this odd CGI error..