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.
Alright, so I've just chmodded my Kareha directory to 777, all the subdirectories to 777, and my scripts to 755. When I run kareha.pl, It generates index.html, index.rss, and subback.html, but it spits out a 500 error afterwords.
In my Apache log, there were these two lines that generated any time I made a request for index.html or kareha.pl:
[Wed Jan 27 12:48:26.628422 2016] [cgid:error] [pid 16453] (13)Permission denied: AH01241: exec of '/var/cgi-bin/kareha/index.html' failed
[Wed Jan 27 12:48:26.631729 2016] [cgid:error] [pid 1029] [client 192.168.1.243:57408] End of script output before headers: index.html
Now, as you may notice, I'm running cgi-bin out of /var/cgi-bin/ instead of /var/www/html/cgi-bin/. Could this have something to do with my problem? Basic hello world scripts work fine.
This is driving me crazy. What's even the problem here?
cgi-bin directories are usually set to try and execute every file. This is not compatible with how kareha works, it needs to be run from a directory where only .pl files are set to use cgi-handler.
>>408
I see. So would the standard /var/www/html suffice?
You'll have to enable cgi-handler for pl files, but other than that, yes.
Use mod_cgi.
While running Wakaba on my apache server I was unable to even get a proper page.
Browser page:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
ERROR LOG:
[Sun Jul 23 05:16:02.667311 2017] [cgi:error] [pid 2024:tid 1076] (OS 2)The system cannot find the file specified. : [client 98.29.204.188:47451] couldn't create child process: 720002: wakaba.pl
What can I do to fix this?