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.

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

Firstly, things that often cause Internal Server Errors:

  • Wrong permissions on the .pl files. They should have 755 permissions. NOT 777, because that may cause some servers to refuse to run them.
  • Incorrect hashbang. Most of the time, the default #!/usr/bin/perl is the correct one, but sometimes Perl is installed elsewhere. In that case, you will have to find out where, and change the hashbang. On Windows servers, it should often be changed to #!perl.
  • Incorrect options set up for CGI scripts. The configuration for the directory should contain Options +ExecCGI and AddHandler cgi-handler .pl. SOMETIMES, but definitely not always, this can be put into the .htaccess file. See the next point.
  • A broken .htaccess file. Spelling errors, trying to use modules that are not installed, or trying to use options that have been forbidden elsewhere will all cause Internal Server Errors.
  • An incorrect mod_suexec install. Mod_suexec is very temperamental, and getting it to allow running of Perl scripts at all is very hard. Don't ask me, I have no idea how to configure it.

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

Secondly, things that DO NOT cause Internal Server Errors:

  • Wakaba or Kareha themselves. Unless you've horribly mangled the scripts by hand, they will never cause an Internal Server Error. The only thing in the script file itself that can cause problems is the hashbang on the first line.
  • Wakaba configuration. As a consequence of the above, no matter how badly you configure it, it should not cause an Internal Server Error.
  • Missing software or modules. Missing mysql or ImageMagick will cause errors, but not Internal Server Errors. A missing Perl might, though, but that's not very likely to be a problem.

4 Name: !WAHa.06x36 2005-02-21 18:01 ID:FqgLpoAw (Replies) [Del]

Third, what to do when you get Internal Server Errors?

  • Look at error_log. Internal Server Errors often generate two or more lines in the log file, make sure you read them all.
  • Try the Perl test script:

    #!/usr/bin/perl

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

    If this doesn't run, work with the server config until it runs, and only when it does, get to work on Wakaba.

  • If you are sure you've got the permissions and hashbang right, ask your admin about what you need to do to get CGI scripts running.

5 Post deleted by moderator.

6 Name: anon!21anon4H3U : 2005-12-22 01:11 ID:Heaven [Del]

Dear >>5,

Thank you for you opinion on the matter. It is being reviewed by our trained message scripts for traces of intellegence, and will be fowarded to a human if any is found. We at iichan thank you for your understanding, and will respond at the soonest a representitive is available.

7 Name: Anonymous : 2005-12-22 03:54 ID:M2ggLmkd [Del]

I'm getting this error when I run wakaba.pl

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

Error message:
Premature end of script headers: wakaba.pl

I am not quite sure what is causing this

8 Name: !WAHa.06x36 : 2005-12-22 05:16 ID:Heaven [Del]

>>7

Perhaps you should try reading >>1-4?

9 Name: Anonymous : 2005-12-22 12:57 ID:M2ggLmkd [Del]

I read 1-4 and applied your suggested fixes under those 5 paragraphs of reasons it would have internal error. I am still encountering the same problems even though the server is configured to run CGI natively.

10 Name: narunet!parlrLMFwQ : 2006-01-02 01:00 ID:8TjWRFyR [Del]

Yeah, I did the same thing as he did but I cant get it working.....

I just recently moved to a new webserver and perl does work... I used the test script to find that out.

11 Name: !WAHa.06x36 : 2006-01-02 06:01 ID:FSFjgm0j [Del]

And what does the error_log say?

12 Name: narunet!parlrLMFwQ : 2006-01-02 21:17 ID:8TjWRFyR [Del]

I fixed it...
For some reason I had to replace all the wakaba files except for the config.....

13 Name: Anonymous : 2006-02-22 17:23 ID:DjW7qxze [Del]

I feel stupid here, but I just keep getting:

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

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Even when I set everything to 777.

14 Name: dmpk2k!hinhT6kz2E : 2006-02-22 17:51 ID:Heaven [Del]

Do you have permission to access /kareha/?

15 Name: Anonymous : 2006-02-22 17:59 ID:DjW7qxze [Del]

I do indeed.

16 Name: !WAHa.06x36 : 2006-02-22 18:13 ID:Heaven [Del]

You shouldn't set everything to 777. The scripts should be 755. Some Apache installations will flat out refuse to run scripts set to 777, because of security issues. They may even refuse to run scripts in directories set to 777.

17 Name: Anonymous : 2006-02-22 20:05 ID:DjW7qxze [Del]

Well, of course I tried 755 first, same error. I'll try to set them back.

18 Name: Anonymous : 2006-02-22 20:11 ID:DjW7qxze [Del]

And zero change.

19 Name: dmpk2k!hinhT6kz2E : 2006-02-22 20:23 ID:Heaven [Del]

What I mean is, do you get a 500 when accessing /kareha/? If the wrong execute bit is off in the dir permission, even though you can physically navigate in there on the filesystem, apache won't let you view it.

20 Name: Anonymous : 2006-02-22 20:30 ID:DjW7qxze [Del]

When I go to /kareha/ I can see everything in there, go into all the folders, view the css files, view txt files, etc, etc.

21 Name: dmpk2k!hinhT6kz2E : 2006-02-22 22:03 ID:Heaven [Del]

Does the test perl script in >>4 work?

IIRC, Apache takes a couple of configuration steps to run CGI, not just one.

22 Name: dmpk2k!hinhT6kz2E : 2006-02-22 22:05 ID:Heaven [Del]

Unrelated: what's up with the "reply" links next to the IDs in earlier posts of this thread?

23 Name: Anonymous : 2006-02-23 03:32 ID:Heaven [Del]

24 Name: dmpk2k!hinhT6kz2E : 2006-02-23 05:30 ID:Heaven [Del]

Did that feature get removed?

25 Name: !WAHa.06x36 : 2006-02-23 08:38 ID:Heaven [Del]

Yes. It kind of sucked.

26 Name: Anonymous : 2006-03-01 08:09 ID:YSlq56iY [Del]

Okay, I'm having some problems. I'm testing out kareha (3.0.9) on my Linux home server with Apache 2 before actually making a proper site. I was having some permission-related 500 errors, and now all dir permissions are fixed. I can view kareha/ and its subdirectories as well as look at non-executable files in them as text, like example.htaccess and the css templates. Running kareha.pl from a broweser, however returns a 500 error still, though not because it cannot write or read a certain directory. Here's some relevant info from error_log:

[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

(Hope that formats correctly.)

This seems related to the path specified in kareha.pl: use lib '.';. I assume it isn't expanding . to the dir in which kareha.pl is situated. If I edit kareha.pl and input the full path, it still doesn't work. I didn't really think it would. Disabling suexec does nothing as well. test.pl works in kareha/, so mod_perl seems to be fine.

I apologise if I'm missing something obvious, but I'm sort of at a dead end at the moment. Help would be appreciated :)

27 Name: !WAHa.06x36 : 2006-03-01 12:06 ID:Heaven [Del]

>>26

Your problem is most likely that you're using mod_perl, if I read that correctly. It is theoretically possible to run Kareha on mod_perl, but it requires some tweaks, and I've never gotten around to testing it properly.

28 Name: Anonymous : 2006-03-01 14:43 ID:Heaven [Del]

>>27
Oh, okay. Thanks very much. Mod_perl was a bit of a pain, anyway. Guess it'll be easier to get kareha up than I thought.

Thanks very much for this wonderful piece of software.

29 Name: Anonymous : 2006-04-08 18:26 ID:sfumrPWG [Del]

I get an Internal Server error, but everything is fine. I have tried everything here and asked my host for help. I was told to put perl scripts into my cgi-bin folder. I did this but it still failed to help the situation. I think im using mod_perl, what are the "tweaks" that need to be made exactly.

30 Name: !WAHa.06x36 : 2006-04-08 19:06 ID:Heaven [Del]

>>29

Did you try the test script in >>4, outside cgi-bin and inside it?

Also, some hosts only allow you to run CGI scripts in cgi-bin, but then don't let you access normal files in there. Yet other hosts don't let you run perl scripts in directories that are writeable.

You need to gather some more information about what exactly you have and haven't done before we can really help you. Also, look at your server's error_log and see what it says (and remember that you may have several different problems).

31 Name: kai!oYghx6mQzU : 2006-04-08 21:37 ID:n/CVwfOs [Del]

i've been having issues with the cgi bin and .pl files too, i'm an awfull programmer so i have no clue what to do to fix this problem. I'm really only sponsoring the board that me and a few freinds are trying to make and i don't have a programmer anymore
is there anyone here who wants to come and join up as a programmer for my board?

32 Name: Anonymous : 2006-04-09 08:34 ID:QYv1f/9P [Del]

>>30

I tried the test script both outside cgi-bin and inside and it doesnt work. I get an internal server error both times.

I have contacted my host but they say they cant help with issues like this, that I (the administrator) should locate the problem and fix it, but my knowlage of cgi is limited.

33 Name: kai!oYghx6mQzU : 2006-04-09 09:44 ID:n/CVwfOs [Del]

>>32 I have the same issue my hosts don't make any attempt to help

34 Name: !WAHa.06x36 : 2006-04-09 12:44 ID:Heaven [Del]

>>32

So what does error_log say?

35 Post deleted by user.

36 Name: Anonymous : 2006-04-10 20:20 ID:q9vtTej5 [Del]

My error log gives me:
Premature end of script headers[My domain info/kareha.pl][client info]

37 Name: !WAHa.06x36 : 2006-04-10 20:24 ID:Heaven [Del]

And what else?

38 Name: Anonymous : 2006-04-11 06:46 ID:/7KxcVR+ [Del]

Thats actually pretty much it. The entire error is:
[Mon Apr 10 17:05:34 2006] [error] [client ..***.**] Premature end of script headers: /home/************/******.dreamhosters.com/a/kareha/kareha.pl
[Mon Apr 10 17:05:34 2006]

And thats it nothing else

39 Name: !WAHa.06x36 : 2006-04-11 08:11 ID:Heaven [Del]

There are usually two errors, first the real one, and then the "Premature end of script headers" that is caused by the previous error.

40 Name: Anonymous : 2006-04-11 09:55 ID:/7KxcVR+ [Del]

Yeah thats all i get in relation to executing the kareha.pl script, the only other error is that there is no html page like internal_server_error.html to display the fact that there is an Internal Server error.

41 Name: !WAHa.06x36 : 2006-04-11 11:57 ID:Heaven [Del]

What error does the test script give?

42 Name: Anonymous : 2006-04-11 12:39 ID:/7KxcVR+ [Del]

I get the exact some error with the perl test script, Premature end of script headers. I am with Dreamhost currently.

43 Name: !WAHa.06x36 : 2006-04-11 13:54 ID:Heaven [Del]

Well, then I have no idea except that something is severely broken.

44 Name: Anonymous : 2006-04-11 20:38 ID:Heaven [Del]

Ok thanks for your help anyway

45 Name: Anonymous : 2006-04-13 17:09 ID:foOVIXWQ [Del]

my hosting provider only allows .pl to be run from cgi-bin folder. test.pl runs well there and does not run outside.
But it does not allow html files to be read from cgi-bin. what can I do? I'm a programmer, so I'm willing to tweak kareha to write html files to another directory if that's the solution. thanks.

46 Name: !WAHa.06x36 : 2006-04-13 21:12 ID:duJ3R4Bl [Del]

I still haven't tried to do this, but a first guess for a solution would be:

  1. Add a chdir "/path/to/html/files"; at the top, possibly in a BEGIN statement.
  2. Edit the expand_filename() function to add the web-side path to your HTML files instead of the path used by the script.

47 Name: Anonymous : 2006-05-29 08:35 ID:Heaven [Del]

on dreamhost change the directory of kareha to 755, otherwise it won't run.

48 Name: Anonymous : 2006-06-05 23:05 ID:XP0iVwhl [Del]

Also try uploading your .pl files in ASCII mode. I have to, for some reason.

49 Name: Anonymous : 2006-06-06 00:30 ID:Heaven [Del]

I just

wget http://wakaba.c3.cx/releases/kareha_3.1.0.zip
unzip kareha_3.1.0.zip

on dreamhost. Easy!
Of course then you go on about copying shit from there to there changing permissions. blah.

50 Name: Anonymous : 2006-06-19 22:23 ID:eGcnT5NR [Del]

I'm trying to install Kareha. If I use mode image and run kareha.pl with a bad config file, I'll get the Software error page that says that no ADMINPASS has been specified. When I upload a good config file and run kareha.pl again, I get an Internal Server Error. A couple of HTML pages index.html and subback.html get created when I do that. That test script also gives me an Internal Server Error.

By the way, I got "Abnormal Reply" multiple times before being able to submit this post.

51 Name: !WAHa.06x36 : 2006-06-20 04:25 ID:xeIogjHJ [Del]

>>50

Your server setup is broken. I don't know how exactly, but if the test script does not work, that's pretty much the only option. Make sure that .pl files are handled by cgi-handler, and not something else.

Also, the "Abnormal Reply" is caused by an Opera bug. I'll try to get a workaround for that for the next version. Click "More options..." and select a formatting to work around it in the meantime.

52 Name: Dudeman : 2006-08-09 19:47 ID:i8+rV1Hi [Del]

I keep getting:
No ADMIN_PASS defined in the configuration at config_defaults.pl line 8.
BEGIN failed--compilation aborted at config_defaults.pl line 133.
Compilation failed in require at kareha.pl line 13.
BEGIN failed--compilation aborted at kareha.pl line 13.

After i've uploaded all the files(minus mode_image) since I'm doing the message board. I've also tried changing permissions to 755, that's what got me this far :P. I HAVE changed the admin pass and secret in the config.pl. The secret code is the result of me banging on the keyboard like a monkey.

Is somethign wrong with the config file?

53 Name: !WAHa.06x36 : 2006-08-10 08:26 ID:sQ1Tof14 [Del]

>>52

That's not a 500 Internal Server Error. Also, remove the # at the start of the lines you change in config.pl.

54 Name: Anonymous : 2006-08-15 09:40 ID:+irrqMmK [Del]

Adding "use lib '/var/www/localhost/htdocs/wakaba';" in wakaba.pl (adjust for whatever directory wakaba is located) helped to avoid the errors with 'require'.

55 Name: DRK : 2006-08-23 08:52 ID:EHXGGFLt [Del]

Ok, 500 Internal Server Error. The following is what I knows...

**Server is all local, on my box. Apache 2.0.59, ActivePerl 5.8.8, MySql 4.1, and PHP 5.1.5 are all that is installed and all functioning correctly.
**Test perl script anywhere on my domain works. I moved it to my wakaba directory just to be sure, still ok.
**Hashbang is copy/pasted from the test script which works to wakaba.pl so that should be set correctly.

**ONLY thing in my error.log (other than server boot up info) is..
[Wed Aug 23 11:49:53 2006] [error] [client 127.0.0.1] Premature end of script headers: wakaba.pl
[Wed Aug 23 11:49:53 2006] [error] [client 127.0.0.1] Can't locate object method "request" via package "Apache" at D:/Perl/lib/CGI/Carp.pm line 486.
**D:/Perl/lib/CGI/Carp.pm there is indeed a file at that location

Still get the 500 error when I try to open wakaba.pl. Any help appreciated greatly.

56 Name: !WAHa.06x36 : 2006-08-23 10:15 ID:Heaven [Del]

Sounds like a broken install. It's trying to use mod_perl files when mod_perl is not installed (I take it?). It's trying to print some other error message, and failing.

You can try removing the use CGI::Carp ... line at the start of the script, and then look at the error_log again, maybe.

57 Name: DRK : 2006-08-23 18:16 ID:EHXGGFLt [Del]

Same error with that line removed. Would installing mod_perl be a good idea at this point (no, it was not installed)

58 Name: !WAHa.06x36 : 2006-08-23 18:28 ID:sQ1Tof14 [Del]

Same error in the error_log too? That's pretty weird.

Wakaba doesn't work with mod_perl, but maybe if you installed it and didn't actually use it, just so that it could find that damn file... Hell, I dunno, that's all mighty strange.

59 Name: DRK : 2006-08-23 18:53 ID:EHXGGFLt [Del]

Ok, I slightly lied. Log file after that change shows...

[Wed Aug 23 21:15:48 2006] [error] [client 71.206.116.70] Premature end of script headers: wakaba.pl
[Wed Aug 23 21:15:48 2006] [error] [client 71.206.116.70] Can't locate object method "require_version" via package "DBI" at D:/Perl/lib/DBI.pm line 22.
[Wed Aug 23 21:15:48 2006] [error] [client 71.206.116.70] Compilation failed in require at C:/Web Root/HTTP Root/wakaba/wakaba.pl line 7.
[Wed Aug 23 21:15:48 2006] [error] [client 71.206.116.70] BEGIN failed--compilation aborted at C:/Web Root/HTTP Root/wakaba/wakaba.pl line 7.

60 Name: !WAHa.06x36 : 2006-08-24 03:30 ID:sQ1Tof14 [Del]

>>59

Ok, that's something I can work with: It seems you haven't installed DBI. Use ppm to install DBI and the mysql driver for it.

61 Name: DRK : 2006-08-24 05:34 ID:EHXGGFLt [Del]

Ok, thanks very mucho for your support so far. On that note...

I'm a bit of a newb to all this. I know my way around, but perl confuzzles me. I searched for a program called ppm on my computer, found it, and ran it. Tried typing 'install dbi' as that seemed to be what google instructed me to do. Got the following message:

ppm> install dbi
Error: No valid repositories: Error: 500 Can't connect to
ppm.ActiveState.com:80 (connect: Unknown error)

Perhaps I'm typing in something wrong or there is an easier way?

And as for mysql drivers I again must claim ignorance. I'll google it when I wake up, but if it's easy to explain, it'd be a tremendous help.

62 Name: !WAHa.06x36 : 2006-08-24 07:08 ID:xeIogjHJ [Del]

>>61

Sounds like you've firewalled off the machine or something. Try to get ppm to work, and then you should be able to just do install DBI and install DBD::mysql or something like that.

63 Name: DRK : 2006-08-24 07:39 ID:EHXGGFLt [Del]

Ok, turned of firewall in windows and on my router. Everything I expect to work works fine.

PPM started working. "Successfully installed DBD-mysql version 3.0002 in ActivePerl 5.8.8.817.". Same message for DBI. An attemt to install again shows that they are indeed both installed.

Error message remains the same as in >>59

Wow: update as I type this. I deleted the DBI.pm in my D:/perl/lib. Seems when it couldn't find it (long ago) I tried to manually copy it there. After I deleted it, and reinstalled DBI, it works fine. You my friend, are my hero.

64 Name: ForcedAnonymous : 2006-09-11 18:18 ID:hApkjRDk [Del]

Error message:
Bareword "CONVERT_CHARSETS" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 43. syntax error at E:/apache2triad/htdocs/bbs2/wakaba.pl line 121, at EOF Not enough arguments for ModPerl::ROOT::ModPerl::Registry::E_3a_apache2triad_htdocs_bbs2_wakaba_2epl::add_admin_entry at E:/apache2triad/htdocs/bbs2/wakaba.pl line 135, near "'')" Bareword "IMAGE_REPLIES_PER_THREAD" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 290. Bareword "ALLOW_TEXTONLY" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 331. Bareword "ALLOW_IMAGES" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 333. Bareword "ALLOW_TEXT_REPLIES" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 358. Bareword "USE_TEMPFILES" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 389. Bareword "ENABLE_CAPTCHA" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 484. Bareword "SPAM_TRAP" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 492. Bareword "FORCED_ANON" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 523. Bareword "DISPLAY_ID" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 548. Bareword "ENABLE_WAKABAMARK" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 820. Bareword "ENABLE_WAKABAMARK" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 843. Bareword "ENABLE_WAKABAMARK" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 843. Bareword "SILLY_ANONYMOUS" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 863. Bareword "ALLOW_UNKNOWN" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 963. Bareword "ALLOW_UNKNOWN" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 963. Bareword "MAX_IMAGE_WIDTH" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 965. Bareword "MAX_IMAGE_HEIGHT" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 966. Bareword "MAX_IMAGE_PIXELS" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 967. Bareword "STUPID_THUMBNAILING" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 1059. Bareword "ENABLE_LOAD" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 1095. Bareword "ENABLE_LOAD" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 1152. Bareword "ENABLE_LOAD" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 1176. Bareword "ENABLE_LOAD" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 1210. Bareword "ENABLE_CAPTCHA" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 1211. Bareword "ERRORLOG" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 1570. Bareword "USE_SECURE_ADMIN" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 1580. Bareword "ENABLE_LOAD" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 1588. Bareword "MAX_AGE" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 1764. Bareword "MAX_THREADS" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 1766. Bareword "MAX_POSTS" not allowed while "strict subs" in use at E:/apache2triad/htdocs/bbs2/wakaba.pl line 1767. ,

Essentially the "strict subs" line is fuggering my installation. Any ideas?

65 Name: !WAHa.06x36 : 2006-09-12 02:44 ID:sQ1Tof14 [Del]

>>64

That's not a 500 Internal Server Error.

Also, that references mod_perl, which Wakaba does not support, and also sounds sort of like all files are not in place.

66 Name: wii : 2006-09-15 09:37 ID:oO6+tovD [Del]

I have several imagebaords set up on my server, but recently i attempted to set up a japanese imageboard using strings_jp and rules_jp, i have everything set up perfectly the same as my other boards but i still get an internal server error.

67 Name: Anonymous : 2006-09-22 09:40 ID:FY/K7zvt [Del]

Hi, i recently installed a board with the purpose of making a oekaki board for my web. i installed all and set 755 the .pl files but i got the 500 internal error, i tried seting the ./wakaba/ directory to 755 as well and the script works but the oekaki script cannot write the images to directories (i get a error in getpic.pl in line 20). Any clue what can i do?

Thanks

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:

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