Home page‎ > ‎NAS4Free‎ > ‎Webserver‎ > ‎


For Freenas 7.2-xxx
I found a very nice and fast CMS for installation does not require any additional package phpSQLiteCMS

Since in FREENAS Web server and GUI are built from CML files, for some reason, the expression builder kills "$ 1", which is necessary for compiling rewrite rules but there is always a curve path:

Step 1 - Download and install it as wrote in documentation tab
I put CMS into /mnt/data/www folder - My webserver root directory.

Step 2 - Create a webserv.inc.conf anywhere. I put it into /mnt/data/
content it 
url.rewrite-once = ( "^/cms/([^?.]*)/?$" => "/cms/index.php?qs=$1", "^/([^?.]*)/?$" => "/index.php?qs=$1" )

Step 3
Need only add module rewrite to webserver. Module rewrite_mod placed in folder /usr/local/lib/lighttpd/
with gui editor add to /etc/rc.d/websrv module mod_rewrite 
server.modules = (
"mod_cgi" )

and after mime part of config add next rows

# default mime type
"" => "application/octet-stream",

# include rewrite rule for main config file
include "/mnt/data/webserv.inc.conf" 

url.access-deny = ( "~", ".inc", ".websrv_htpasswd" )

CMS is ready to use now.  Fire your browser and explore it on http://<your_Freenas_ip_adress>

On Freenas 0.7.5 (revision 9S-9896) and Nas4Free worked fine.
No need edit /etc/rc.d/websrv, only 
1. add rewrite rule into Auxiliary parameters window
url.rewrite-once = ( "^/cms/([^?.]*)/?$" => "/cms/index.php?qs=$1", "^/([^?.]*)/?$" => "/index.php?qs=$1" )

2 Add line into /usr/local/etc/php.ini 
date.timezone = <Region/Town>

From php timezone list

CMS ready for use