500 Internal Server Error



I had to set up Mokuji 0.26.1-beta for testing purposes on FreeBSD 6.4 shared hosting.

Apache/1.3.42 PHP Version: 5.4.14

[14/Sep/2013:10:13:36 +0000] [alert] [client] /usr/home/bgamers/www/htdocs/main/.htaccess: RewriteRule: cannot compile regular expression '^/?(\d+)/?([a-zA-Z0-9-_]*)(\.html|/)?$'\n



 Mokuji developer Posted

First: great that you try out Mokuji! We love Mokuji to develop on, so I'm sure you will like it too :)

I'll do some more research, but as a first reaction I ask you to try this: Some servers require the usage of RewriteBase. Try declaring it after the RewriteEngine, like this:

RewriteEngine On
RewriteBase /
 Mokuji developer Posted

Hello foo!

I see you're using Apache 1.3, good thing you noticed because we have been developing for Apache 2.x. If the above fix does not work, the easiest way to get it up and running would be to upgrade Apache (if your hosting allows this).

But to get this bug fixed for 1.3 I'll try and reproduce it in a VM. We should be able to give you and update on that tomorrow.



Thanks for the reply. Hope this link helps you.


 Mokuji developer Posted

Nice, anubhava answered your question. We will test the solution and -if it works- include it in the next beta version of Mokuji. Thank you.

 Mokuji developer Posted

Sorry for the delay with the promised update.

A new version has been released that solves this issue. Mokuji version 0.26.3 Beta

Please note though that Apache 2.0 was released in 2002. The majority of server distributions upgraded to version 2.x around 2007. Apache 1.3 reached "End of life" status with version 1.3.42 in 2010. Therefore Apache 1.3 won't officially be supported by Mokuji.

FreeBSD 6.4 provides an official update to Apache 2.2.9 (called the httpd package). We recommend that you send a friendly suggestion to your hosting provider to upgrade their software, just to remind them that their software hasn't seen any new features in 11 years.

I hope this solves your problem and you're enjoying Mokuji :]