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.

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?

310 Name: Anonymous : 2010-03-29 11:59 ID:TtDhyEr2 [Del]

I can only run perl on cgi-bin, and can't run any other thing not there. Admin.pl works but Kareha.pl and test.pl do not, they give me 500 errors. What can I do?

311 Name: Anonymous : 2010-03-29 21:08 ID:Heaven [Del]

>>310
Get a better host. You get what you pay for.

312 Post deleted by user.

313 Name: Anonymous : 2010-04-17 11:45 ID:EAYxQp7l [Del]

[Sat Apr 17 13:13:20 2010] [error] Can't locate config.pl in @INC (@INC contains: . /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 /etc/httpd) at /var/www/vhosts/mysite.com/wakaba.pl line 16.\nBEGIN failed--compilation aborted at /var/www/vhosts/mysite.com/httpdocs/wakaba.pl line 16.\n

314 Post deleted by moderator.

315 Name: Ryo : 2010-06-22 23:08 ID:NRkVg090 [Del]

I'm trying to run wakaba from my win7 system. I've got Apache Perl PHP and MySQL and they seem to be getting along with each other but I'm running into the Error 500 problem which is almost certainly because of my permissions but I made an observation which confuses me.

Why are there html files in the cgi-bin folder and why does wakaba link directly to them instead of placing or redirecting or including that content from HTML files in the htdocs folder?

I know that its some sort of permissions problem but more like an apache setting that I either can't change or I really don't want to for security reasons. Everything in the cgi-bin folder is treated like a server script and not sent to the client but since wakaba puts them in the cgi folder it manifests as a permission problem.

I did find a variable in the internal paths section of the config.pl file that looked promising but I have found that changing the values prevents it from giving me a 500 error but it won't update the html files.[variable called HTML_SELF]

I know I'm doing something wrong but hopefully someone can point me in the rite direction...

-Ryo

p.s. help =(

316 Name: Anonymous : 2010-06-23 09:33 ID:Heaven [Del]

>>315
There is no "cgi-bin folder". You are definitely doing it wrong.

317 Name: Ryo : 2010-06-23 10:13 ID:ULYGDqK9 (Image: 508x431 jpg, 73 kb) [Del]

src/1277313212285.jpg: 508x431, 73 kb

>>316
Excuse me but, yes, there is. Dir folder what ever you want to call it, its there. It's part of the default instillation of Apache. You just have to activate it to use any cgi like perl

318 Name: Ryo!8NBuQ4l6uQ : 2010-06-23 15:55 ID:MC+qFKNQ [Del]

I'd like to apologize for sounding snippy with >>316. I think i understand what you mean but you could have gone into a bit more detail. there should be no cgi-bin folder because the scripts shouldn't be executed from that directory on the server. since the cgi generates HTML local to the scripts in sub directories if the files are in the cgi-bin folder any referenced files are assumed to be server script and not sent to the client.

that said the cgi has to be in the htdocs folder and the question then becomes how do i set up apache to execute the cgi from there without getting 403(forbidden)/500(permission) errors?

319 Name: Anonymous : 2010-06-24 00:36 ID:Heaven [Del]

>>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)

320 Name: Ryo!8NBuQ4l6uQ : 2010-06-24 09:12 ID:pVB5+bm8 [Del]

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!

321 Name: Anonymous : 2010-07-02 19:04 ID:lHjIJTMc [Del]

>>313
I'm getting this same error.. :(

322 Name: Anonymous : 2010-07-05 21:43 ID:rMF9HbVK [Del]

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??

323 Name: Anonymous : 2010-07-06 04:47 ID:rMF9HbVK [Del]

[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

324 Name: Anonymous : 2010-07-06 20:11 ID:rMF9HbVK [Del]

even when i set the permissions to 755 i still get the could not write to directory error

325 Name: Jaysn : 2010-08-31 01:40 ID:M06O8hR9 [Del]

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

326 Name: !WAHa.06x36 : 2010-08-31 08:18 ID:xeIogjHJ [Del]

> xampp

Just don't use xampp. It seems to be horribly broken.

327 Name: Anonymous : 2010-08-31 08:21 ID:Heaven [Del]

>>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)

328 Name: dd : 2010-09-18 14:43 ID:3y3nXyKn (Image: 479x600 jpg, 51 kb) [Del]

src/1284846237903.jpg: 479x600, 51 kb

dfg

329 Name: Real person : 2010-10-19 10:25 ID:PFWH0l7M [Del]

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

330 Name: Anonymous : 2010-10-19 20:03 ID:Heaven [Del]

>>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.

331 Name: Anonymous : 2011-01-18 19:04 ID:fMgaIdRf [Del]

#!/usr/bin/perl

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

332 Name: Anonymous : 2011-03-24 22:09 ID:6+zFsiKT [Del]

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?

333 Name: Anonymous : 2011-03-25 04:43 ID:Heaven [Del]

>>332
Is your base directory - with wakaba.pl in it - writable?

334 Name: Anonymous : 2011-04-10 07:44 ID:1GHIHyMY [Del]

When I set permissions to 777, I get a 500 Internal Server Error, when I set permissions to 755, I get "Error: Cannot write to directory" Help please?

335 Name: Anonymous : 2011-06-02 09:57 ID:X/rd9FN2 [Del]

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?

336 Name: Anonymous : 2011-06-08 20:30 ID:Heaven [Del]

>>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.

337 Name: Anonymous : 2011-06-13 10:52 ID:xDaRHwdI [Del]

>>336
I did, I think it's just a shitty server, I've switched hosts.

338 Name: S : 2011-07-08 02:02 ID:nhMMu5s+ [Del]

why is it forbiden?
what should i do?

339 Name: Anonymous : 2011-07-08 10:11 ID:Heaven [Del]

>>338
Set the permissions for directories wakaba, src, thumb, and res to 755.

340 Name: login : 2011-08-08 23:59 ID:57vac+dk (Image: 0x0 ico, 363 kb) [Del]

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

341 Post deleted by moderator.

342 Post deleted by moderator.

343 Post deleted by moderator.

344 Name: i can not acces admin page : 2011-09-27 06:08 ID:a+zas0Yk [Del]

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.

345 Name: FIX 80% OF THE TIME FOR LINUX : 2011-12-08 22:34 ID:gZ4lNI/g [Del]

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

346 Name: Anonymous : 2012-01-24 06:41 ID:v2xvYwcE [Del]

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?

347 Name: !WAHa.06x36 : 2012-01-24 09:22 ID:Heaven [Del]

>>346

Turn off the security, or configure things to run as the correct user.

348 Name: Anonymous : 2012-01-24 11:10 ID:yPNEDK7j [Del]

>>347
I've always wondered how shared hosting does that. Do they run their webserver software as root or something?

350 Name: Anonymous : 2012-01-24 12:50 ID:Heaven [Del]

>>349
Is there anything like this in nginx?

351 Name: Anonymous : 2012-01-24 14:25 ID:Heaven [Del]

>>350
>>349
And is there any reason not to use this?

352 Name: Anonymous : 2012-01-24 16:25 ID:Heaven [Del]

>>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.

353 Name: Anonymous : 2012-01-24 16:28 ID:Heaven [Del]

Err, I meant 755, not 777.

354 Name: Anonymous : 2012-01-24 20:36 ID:Heaven [Del]

355 Name: Anonymous : 2012-02-06 20:43 ID:OF0rkLn0 [Del]

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..

356 Name: Anonymous : 2012-02-06 21:10 ID:Heaven [Del]

>>355
Can't really help with the first problem, but to create new boards you just install Wakaba in another directory.

357 Name: Anonymous : 2012-02-06 23:06 ID:OF0rkLn0 [Del]

Okay well, here can you help me about this.. http://www.flizzop.net/forum.html and try to reply.. How do I fix this?

358 Name: Anonymous : 2012-02-06 23:19 ID:Heaven [Del]

>>357
Check your nginx config. I think you aren't forwarding the pages to fastcgi or whatever properly.

359 Name: Anonymous : 2012-02-06 23:30 ID:OF0rkLn0 [Del]

Where do I access that? I don't see it on my cPanel.. :/

360 Name: Anonymous : 2012-02-06 23:36 ID:Heaven [Del]

>>359
Does your host support Perl?

361 Name: Anonymous : 2012-02-06 23:38 ID:Heaven [Del]

>>360
...Well, they obviously do if you were able to make threads in the first place... Maybe its a permissions error?

362 Name: Anonymous : 2012-02-06 23:43 ID:OF0rkLn0 [Del]

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.

363 Name: Anonymous : 2012-02-06 23:49 ID:Heaven [Del]

>>362
It might need to be 775 depending on what fastcgi is running as. Don't blame yourself; its your host's fault.

364 Name: Anonymous : 2012-02-06 23:53 ID:OF0rkLn0 [Del]

I will try it, I will report back in a few minutes.

365 Name: Anonymous : 2012-02-06 23:56 ID:OF0rkLn0 [Del]

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.

366 Name: Anonymous : 2012-02-07 01:03 ID:OF0rkLn0 [Del]

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..

367 Name: Anonymous : 2012-02-07 06:24 ID:Heaven [Del]

>>366
Could it be that the webserver is configured to block large uploads?

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