If you have problems with Mod Security (more precisely editing contents and sometimes getting URL Not found) or you would like to run jCore using Lighttpd the following instructions should help.
Problem with Mod Security
Lately we noticed problems when editing contents or even sending any form and getting URL not found messages, the reason was that a new Mod Security rule was interfering with jCore and more precisely it didn't allow any form to be submitted that had http:// in it. This rules seems to be denying posting contents to a site with links that point outside of your site.
If you have a shared hosting just open up a new ticket and ask them to add your site/domain to the white list for these modsecurity rules, please also provide them with this info so they know immediately what to do. I wasn't able to find out which are these rules but it seems they have to do with SecFilterScanPOST On. As I have the hosting at Hostgator I have provided them with these info and they fixed the problem/whitelisted my domains within a few minutes, their support is great!
If you have a dedicated server and are using WHM/Cpanel you can configure Mod Security rules under "WHM -> Plugins -> Mod Security", just have a look at the rules that are interfering with your site and change them or drop them. As I don't have a dedicated server with these rules I can't give you more info but if it's a managed dedicated server just ask your hosting company for help as I'm sure they will help.
If you have some more information on this new rule(s) please let me know.
Setup jCore using Lighttpd
A few days ago I got a letter from Giulio who was trying jCore using Lighttpd and he came back with some good news as everything was working except the SEO friendly links. I didn't have any thoughts till then to run it using Lighttpd but why not support it if it's already almost working right :) so if you have problems with Lighttpd here is a few information that should help you get everything up and running.
SEO Friendly links
As .htaccess rules won't work on Lighttpd to activate/have seo friendly links you will have to edit lighttpd.conf and add the following lines:
For lighttpd 1.4.24 or above:
---------------------------------
url.rewrite-if-not-file = (
"^/(admin|lib|locale|rss|sitefiles|template)(.*)$" => "$0",
"^/(.*?)(?(.*)|$)" => "/index.php?path=$1&$3"
)
For lighttpd below 1.4.24:
-------------------------------
url.rewrite-once = (
"^/(admin|lib|locale|rss|sitefiles|template)(.*)$" => "$0",
"^/(.*?)(?(.*)|$)" => "/index.php?path=$1&$3"
)
If you have Lighttpd below 1.4.24 add these changes only after you have jCore installed as these will rewrite all links (even existing ones) so you won't be able to access links like install.php.
If you have jCore in a subdirectory for e.g. yourdomain.com/jcore/ then the rules have to be changed to something like this:
url.rewrite-once = (
"^/jcore/(admin|lib|locale|rss|sitefiles|template)(.*)$" => "$0",
"^/jcore/(.*?)(?(.*)|$)" => "/jcore/index.php?path=$1&$3"
)
Also if you have multiple domains on running Lighttpd and the other sites aren't using jCore you can limit this rule to only your jCore domain for e.g. like this:
$HTTP["host"] =~ ".*yourdomain.com" {
url.rewrite-once = (
"^/(admin|lib|locale|rss|sitefiles|template)(.*)$" => "$0",
"^/(.*?)(?(.*)|$)" => "/index.php?path=$1&$3"
)
}
this will then only redirect the links if the yourdomain.com is loaded so your other sites will work just fine.
There are a few things you will have to activate for jCore to work on Lighttpd.
Activate mod_rewrite for lighttpd by adding or uncommenting the following line in your lighttpd.conf file:
server.modules += ("mod_rewrite", "")
For php you will have to activate gettext by adding or uncommenting the following line in your php.ini file:
extension=php_gettext.dll
extension=php_gd2.dll
Other notes
While I was making the tests for Lighttpd I noticed a few things, first the installer needs more then 16MB memory which is the standard for Lighttpd so consider editing php.ini and change memory_limit = 16M to memory_limit = 32M.
If for some reason the installer is downloading the files slowly and it gets stop without completing the installation please edit the install.php and right after
Hope these will be helpful, if you have any other information that would be helpful please don't hesitate to let me know.
Comments (0)