500 Internal Server Error (309)

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.

260 Name: reaven : 2009-03-25 07:10 ID:YNhzPQrF [Del]

Hi, i have the same problem that >>245 had, but without mod_perl, apache just shows the files as plain text. And in the hashbang im directing to the active perl executable

261 Name: !WAHa.06x36 : 2009-03-26 07:56 ID:Heaven [Del]

>>260

Then your Apache config is wrong, and you need to figure out how to configure it right. I'm no Apache expert, I can't help much there.

262 Name: Errored : 2009-05-04 19:34 ID:Rcyj9W/N [Del]

Hai. This is the errors I'm getting:

Software error:
Bad name after privlibexp' at C:/wamp/perl/lib/Config.pm line 1219.
Compilation failed in require at C:/wamp/perl/lib/lib.pm line 6.
BEGIN failed--compilation aborted at C:/wamp/perl/lib/lib.pm line 6.
Compilation failed in require at C:/wamp/www/imageboard/kareha.pl line 11.
BEGIN failed--compilation aborted at C:/wamp/www/imageboard/kareha.pl line 11.

I'm using WAMP5 (V. 1.7.2) with a Perl AddOn. I don't get any 500 internal server errors, just these software errors. I'll display each line listed in the errors.

Error 1: 'privlibexp' => 'c:\wamp\perl\\lib',
Error 2: use Config;
Error 3: use Config;
Error 4: use lib '.';
Error 5: use lib '.';

Tried doing several things, like changing the use lib to use lib 'C:/wamp/perl/bin/', removing the extra slash on c:\wamp\perl\\lib. All my files are readable and executable since they are on my PC and not on the internet, so I guess no permissions are needed. I did all the necessary changes to my httpd.conf file. I'm using #!C:\wamp\perl\bin\perl.exe as my hashbang. I'm all out of ideas. Help, please.

263 Name: Anonymous : 2009-05-04 19:54 ID:Heaven [Del]

>>262
did you try the test script (>>4)?

264 Name: Errored : 2009-05-04 20:25 ID:Rcyj9W/N [Del]

>>263
I just tried it. It is working.

265 Name: !WAHa.06x36 : 2009-05-05 13:40 ID:QQDcZrvU [Del]

> I don't get any 500 internal server errors, just these software errors.

Then you shouldn't post in the thread about 500 Internal Server Errors.

Looks like you've got a hosed Perl install, though. Take it up with the people who made the addon.

266 Name: Anonymous : 2009-05-05 14:26 ID:kyj0lujZ [Del]

Hey, when I try to access "localhost/cgi-bin/wakaba.pl" I get an internal server error.

I checked my error log and it says:

c:/apache/cgi-bin/wakaba.html is not executable; ensure interpreted scripts have "#!" first line
[Tue May 05 17:19:22 2009] [error] [client 127.0.0.1] couldn't spawn child process: c:/apache/cgi-bin/wakaba.html

I checked each file that has the hashbang, and in both files they're correct, so I cant seem to figure out what the problem is. I also get a similar error with wakaba3.js when I try a different method. Not sure what im doing wrong, as im pretty new to this. Thanks in advanced.

267 Name: Anonymous : 2009-05-05 16:14 ID:Heaven [Del]

>>266
search for "cgi-bin" in this thread.

268 Name: Anonymous : 2009-05-05 18:27 ID:kyj0lujZ [Del]

Ok, so I've determined that theres something wrong with perl.

When I try to run the test script, it comes up with the code in my browser. Im positive I've done everything right though. I've done all the things in httpd.conf that I read to do, and ive pointed my .pl scripts hashbangs to "c:/perl/bin/perl.exe"

I also dont have a .htaccess file running. Is this the cause, or should I try reinstalling perl or something?

269 Post deleted by moderator.

270 Name: !WAHa.06x36 : 2009-05-08 09:17 ID:Heaven [Del]

>>268

Like >>267 tried to hint, you shouldn't be running in cgi-bin. It's trying to run your html files as scripts.

271 Post deleted by moderator.

272 Name: Anonymous : 2009-07-17 01:17 ID:rjMLadaY [Del]

No ADMIN_PASS or NUKE_PASS defined in the configuration at config_defaults.pl line 8.
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.

i do have everything set up correctly, help?

273 Name: Anonymous : 2009-07-17 13:52 ID:Heaven [Del]

>>272

  • That's not an internal server error, that's a broken configuration.
  • No, it's not set up correctly.

274 Name: Anonymous : 2009-09-10 05:38 ID:9EA3Q94H [Del]

How do you install perl?
I downloaded perl-5.10.0.tar.gz from perl.org, and exracted it into program files using winrar. What do I do next? I can't find anything to run to install it ect ect.

275 Name: Anonymous : 2009-09-11 18:21 ID:Heaven [Del]

>>274
That really has nothing to do with this thread. Better to ask elsewhere.
But since you asked here: try reading the text on perl.org.

276 Name: Anonymous : 2009-09-12 11:22 ID:9EA3Q94H [Del]

>>275

Yeah I know that, It wouldn't let me delete my post after I solved it, sorry.

277 Name: Anonymous : 2009-09-24 20:21 ID:dCpRBMjt [Del]

Is

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

A valid Hashbang?

278 Post deleted by user.

279 Name: Anonymous : 2009-09-25 17:38 ID:dCpRBMjt [Del]

>>277
ignore that..
again.

280 Name: Anonymous : 2009-09-27 17:24 ID:dCpRBMjt [Del]

I had everything on my board working fine...
But then out of seemingly no where, I get a internal server error If Anyone tries to post something, or if I try to do anything from the management panel. I re-installed perl, but it didn't fix anything. I'm completely clueless to what caused this.. It didn't happen after I changed anything. The Error log says:

[Sun Sep 27 17:15:38 2009] config.pl: Constant subroutine main::SQL_DBI_SOURCE redefined at /usr/lib/perl5/5.8.8/constant.pm line 103.
[Sun Sep 27 17:15:38 2009] config.pl: Constant subroutine main::SQL_USERNAME redefined at /usr/lib/perl5/5.8.8/constant.pm line 103.
[Sun Sep 27 17:15:38 2009] config.pl: Constant subroutine main::DISPLAY_ID redefined at /usr/lib/perl5/5.8.8/constant.pm line 103.
Malformed UTF-8 character (fatal) at /usr/lib/perl5/5.8.8/Carp/Heavy.pm line 55.
[Sun Sep 27 17:15:38 2009] [error] [client 70.251.74.93] Premature end of script headers: /var/chroot/home/content/u/s/e/username/html/cgi/ra/wakaba.pl
[Sun Sep 27 17:15:41 2009] config.pl: Constant subroutine main::SQL_DBI_SOURCE redefined at /usr/lib/perl5/5.8.8/constant.pm line 103.
[Sun Sep 27 17:15:41 2009] config.pl: Constant subroutine main::SQL_USERNAME redefined at /usr/lib/perl5/5.8.8/constant.pm line 103.
[Sun Sep 27 17:15:41 2009] config.pl: Constant subroutine main::DISPLAY_ID redefined at /usr/lib/perl5/5.8.8/constant.pm line 103.
[Sun Sep 27 17:15:47 2009] config.pl: Constant subroutine main::SQL_DBI_SOURCE redefined at /usr/lib/perl5/5.8.8/constant.pm line 103.
[Sun Sep 27 17:15:47 2009] config.pl: Constant subroutine main::SQL_USERNAME redefined at /usr/lib/perl5/5.8.8/constant.pm line 103.
[Sun Sep 27 17:15:47 2009] config.pl: Constant subroutine main::DISPLAY_ID redefined at /usr/lib/perl5/5.8.8/constant.pm line 103.
[Sun Sep 27 17:15:47 2009] config.pl: Constant subroutine main::SQL_DBI_SOURCE redefined at /usr/lib/perl5/5.8.8/constant.pm line 103.
[Sun Sep 27 17:15:47 2009] config.pl: Constant subroutine main::SQL_USERNAME redefined at /usr/lib/perl5/5.8.8/constant.pm line 103.
[Sun Sep 27 17:15:47 2009] config.pl: Constant subroutine main::DISPLAY_ID redefined at /usr/lib/perl5/5.8.8/constant.pm line 103.

From what I can tell There must be something wrong with config.pl, But it is just as it was before I was getting the error.

Any help would be awesome!

281 Name: 0x000BLAh : 2009-10-12 15:27 ID:jHiCCAjO [Del]

Always got this:

>Server error!

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

Error message:
Not enough arguments for ModPerl::ROOT::ModPerl::PerlRunPrefork::opt_lampp_htdocs_wakaba_wakaba_2epl::delete_all at /opt/lampp/htdocs/wakaba/wakaba.pl line 121, near "))" Not enough arguments for ModPerl::ROOT::ModPerl::PerlRunPrefork::opt_lampp_htdocs_wakaba_wakaba_2epl::add_admin_entry at /opt/lampp/htdocs/wakaba/wakaba.pl line 135, near "'')" Global symbol "$parent_res" requires explicit package name at /opt/lampp/htdocs/wakaba/wakaba.pl line 489. Global symbol "$lasthit" requires explicit package name at /opt/lampp/htdocs/wakaba/wakaba.pl line 489. Global symbol "$parent_res" requires explicit package name at /opt/lampp/htdocs/wakaba/wakaba.pl line 489. Global symbol "$lasthit" requires explicit package name at /opt/lampp/htdocs/wakaba/wakaba.pl line 489. Global symbol "$parent_res" requires explicit package name at /opt/lampp/htdocs/wakaba/wakaba.pl line 489. Global symbol "$lasthit" requires explicit package name at /opt/lampp/htdocs/wakaba/wakaba.pl line 489. syntax error at /opt/lampp/htdocs/wakaba/wakaba.pl line 546, near "# generate date my " Global symbol "$date" requires explicit package name at /opt/lampp/htdocs/wakaba/wakaba.pl line 546. Global symbol "$date" requires explicit package name at /opt/lampp/htdocs/wakaba/wakaba.pl line 549. Global symbol "$lasthit" requires explicit package name at /opt/lampp/htdocs/wakaba/wakaba.pl line 556. Global symbol "$date" requires explicit package name at /opt/lampp/htdocs/wakaba/wakaba.pl line 557. Global symbol "$parent_res" requires explicit package name at /opt/lampp/htdocs/wakaba/wakaba.pl line 563. ,

282 Name: Anonymous : 2009-10-12 19:36 ID:Heaven [Del]

>>281
Don't use mod_perl.

283 Name: Anonymous : 2009-10-14 16:41 ID:jHiCCAjO [Del]

>>282 So, I have to use CGI?

284 Name: !WAHa.06x36 : 2009-10-15 06:48 ID:Heaven [Del]

>>283

Yes.

285 Name: freedom4651 : 2009-10-18 22:20 ID:+f/Uv9Sk [Del]

i tried to install kareha in my windows machine and it always get internal server error with following log entries:
[Mon Oct 19 12:15:49 2009] [error] [client 127.0.0.1] C:/Program Files/Apache Group/Apache2/cgi-bin/kareha/index.html is not executable; ensure interpreted scripts have "#!" first line
[Mon Oct 19 12:15:49 2009] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: C:/Program Files/Apache Group/Apache2/cgi-bin/kareha/index.html

"index.html" is still original created by kareha script

help please

286 Name: !WAHa.06x36 : 2009-10-19 05:45 ID:Heaven [Del]

>>285

Don't install in cgi-bin, configure your web server properly to run CGI scripts elsewhere.

287 Post deleted by moderator.

288 Name: Disappointed <-- Testing person : 2009-12-13 01:31 ID:XA7LpvO6 [Del]

Kareha always gives me an "Internal Server Error" on my webspace. When I locally opened kareha.pl in Notepad, I noticed that there are no line breaks shown (which is quite shitty on the part of the coder). I hit return after the first line "#!/usr/bin/perl", saved and uploaded it again, but Kareha still won't work.

Kareha is in its own folder called "kareha" and I want it to run in message mode. The server of the webhoster is running on a *nix machine I guess.

What else do I need to adjust?

289 Name: !WAHa.06x36 : 2009-12-13 05:27 ID:Heaven [Del]

> When I locally opened kareha.pl in Notepad, I noticed that there are no line breaks shown (which is quite shitty on the part of the coder).

How about opening it in a real text editor, instead of slinging insults at others?

290 Name: Anonymous : 2009-12-19 06:44 ID:Heaven [Del]

>>289
i doubt anything from someone as ignorant as that could be considered an insult.

291 Name: MeeP : 2010-01-04 15:49 ID:b5+fPy1+ [Del]

As a favor to a friend, I'm attempting to install Wakaba on one of my servers so he can have an imageboard to play with. But alas, i seem to be having the dreaded 500's as well. I've seen several references on using CGI instead of mod_perl to run the perl scripts (that part just seems odd to me) But I've yet to find a valid solution for doing so.

The server in question uses Plesk Panel 9.2.x and has the following applicable packages installed:

CentOS 5.4 (Final)
------------------
mysql-5.0.77-3.el5
perl-5.8.8-27.el5
ImageMagick-6.2.8.0-4.el5_1.1
httpd-2.2.3-31.el5.centos.2 (apache 2 equivalent)
|_[Sub-Packages]- CGI, Fast-CGI, mod_perl, mod_rewrite etc..

I have set all *.pl files with the permissions: 755, and all directories with the permissions 777.

As noted by someone else, Plesk uses a cgi-bin that is outside of the root directory for the website.
example:
site URL: www.mysite.com
site directory: /var/www/vhost/www.mysite.com/httpdocs/
site CGI-BIN: /var/www/vhost/www.mysite.com/CGI-BIN/

My questions are as follows:

1) is it possible to run this imageboard given the hosting panels paranoia?

2) If possible, what spacificly needs to be changed in which files to allow the site to function properly.

3) How would one go about using CGI instead of Perl for perl scripts in this environment.

Any help would be appreciated.

Thank you for your time.

292 Name: Anonymous : 2010-01-04 16:56 ID:z8AQZcmy [Del]

o got this error

Can't locate config.pl in @INC (@INC contains: . C:/xampp/perl/site/lib/ C:/xampp/perl/lib C:/xampp/perl/site/lib C:/xampp/apache) at C:/xampp/htdocs/wakaba/wakaba.pl line 16. BEGIN failed--compilation aborted at C:/xampp/htdocs/wakaba/wakaba.pl line 16. ,

can any one help??

293 Name: Anonymous : 2010-01-04 21:30 ID:4iwlA0Gp [Del]

>>292
Your webserver needs to chdir to C:/xampp/htdocs/wakaba/, or you need to add it to the PERL5INC. I guess.

294 Name: !WAHa.06x36 : 2010-01-05 06:55 ID:Heaven [Del]

>>291

mod_perl is not "Perl". CGI uses plain Perl to run the scripts. Also, this isn't a Plesk or Apache support board, you'd probably be better off looking elsewhere for information about how to configure it to use CGI.

>>292

Seems a whole lot of problems are reported by people using XAMPP. It doesn't seem to be a very good choice.

295 Name: MeeP : 2010-01-07 01:45 ID:b5+fPy1+ [Del]

>>294

i agree mod_perl is not perl, i also have perl installed(it is mentioned), the problem isnt' a plesk related problem, it's the script that is having the issue, normal perl/cgi scripts run just fine. the information was given to help further narrow down a solution to the problematic script. I guess i'll just go with another solution that actually works under normal web-server environment conditions.

changing the entire structure of a webserver to suit the misguided needs of a poorly coded script is rediculous. Perhaps rather than flaming at the people asking for support, you should look into actually coding your script to work in more typical server / hosting environments.

296 Name: !WAHa.06x36 : 2010-01-07 10:00 ID:Heaven [Del]

>>295

You're not very good at this "asking other people for help" thing, are you?

297 Name: Anonymous : 2010-01-14 16:01 ID:Heaven [Del]

> Perhaps rather than flaming at the people asking for support, you should look into actually coding your script to work in more typical server / hosting environments.

XAMPP is not a typical server/hosting environment.

298 Name: Anonymous : 2010-01-29 15:37 ID:YUjgt2Kv [Del]

Error:
Attempt to reload config.pl aborted. Compilation failed in require at C:/xampp/htdocs/wakaba/wakaba.pl line 16. BEGIN failed--compilation aborted at C:/xampp/htdocs/wakaba/wakaba.pl line 16. ,
Anyone help?

299 Post deleted by moderator.

300 Name: Anonymous : 2010-02-10 02:18 ID:pHN7a0N9 [Del]

I am using Google Chrome and trying to get Wakaba working on my website. I have followed all the instructions, but when I navigate to the wakaba directory and click on "wakaba.pl" all that happens is that my browser downloads the file in notepad form. It doesn't run the script. What do I do?

301 Name: Anonymous : 2010-02-10 02:19 ID:pHN7a0N9 [Del]

>>300
300get :D

302 Post deleted by moderator.

303 Name: Fancycakes : 2010-03-03 21:57 ID:vRI+iiIk [Del]

At first, Wakaba was giving me an SQL error, but I solved that (took me a while to figure out that I did), but now it's giving me a 500 error. Apache2 works just fine, all my other CGI scripts and HTML pages work juuust fine. Permissions are at 755, all the hashbangs are intact, so all that leaves are the .htaccess junk (I don't have .htaccess) and mod_suexec.

I have no idea where the install put the mod_suexec stuff.

P.S. Using. Ubuntu 9.10

304 Post deleted by moderator.

305 Name: Fancycakes : 2010-03-03 22:48 ID:vRI+iiIk [Del]

>>303
I can access the Admin panel successfully and have made my first post, but it's fraught with 500 errors whenever I try to go to another page.

306 Name: Fancycakes : 2010-03-04 16:51 ID:FSwH/fmi [Del]

>>303
>>305

ZOMG! I found how to make this work! Yusss. . . Now then! Time to work more on it.

307 Post deleted by moderator.

308 Post deleted by moderator.

309 Name: Anonymous : 2010-03-05 06:13 ID:Heaven [Del]

>>307-308
why are you spamming this board with pictures of ugly women?

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