« Project home page

phpSQLiteCMS Forum

Back to the forum index
Linear

How to run phpSQLiteCMS on lighttpd [tip] (Technics)

by ryzhov_al, Friday, November 06, 2009, 12:02 (307 days ago)

Lighttpd web-server doesn't have Apaches' .htaccess file support.
To run phpSQLiteCMS on lighttpd edit lighttpd.conf.

For phpSQLiteCMS 1.0:


...
### url handling modules (rewrite, redirect, access)
        url.rewrite-once = (
                "^/phpSQLiteCMS/(.*.php|cms/|data/|lang/|images/|files/|smarty/|templates/|templates_c/|favicon.ico).*" => "$0",
                "^/phpSQLiteCMS/([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*)/?$" => "/phpSQLiteCMS/cms/parser.php?cms_page=$1&get_1=$2&get_2=$3&get_3=$4&get_4=$5&get_5=$6",
                "^/phpSQLiteCMS/([^,]*),([^,]*),([^,]*),([^,]*),([^,]*)/?$" => "/phpSQLiteCMS/cms/parser.php?cms_page=$1&get_1=$2&get_2=$3&get_3=$4&get_4=$5",
                "^/phpSQLiteCMS/([^,]*),([^,]*),([^,]*),([^,]*)/?$" => "/phpSQLiteCMS/cms/parser.php?cms_page=$1&get_1=$2&get_2=$3&get_3=$4",
                "^/phpSQLiteCMS/([^,]*),([^,]*),([^,]*)/?$" => "/phpSQLiteCMS/cms/parser.php?cms_page=$1&get_1=$2&get_2=$3",
                "^/phpSQLiteCMS/([^,]*),([^,]*)/?$" => "/phpSQLiteCMS/cms/parser.php?cms_page=$1&get_1=$2",
                "^/phpSQLiteCMS/([^,]*)/?$" => "/phpSQLiteCMS/cms/parser.php?cms_page=$1"
        )
...


For phpSQLiteCMS 2.0:


...
### url handling modules (rewrite, redirect, access)
        url.rewrite-once = (
    "^/phpsqlitecms/([^\?.]*)/?$" => "/phpsqlitecms/index.php?qs=$1",
        )
...

How to run phpSQLiteCMS on lighttpd [tip]

by nBVCXz @, Friday, November 13, 2009, 12:07 (300 days ago) @ ryzhov_al

Lighttpd web-server doesn't have Apaches' .htaccess file support.
To run phpSQLiteCMS on lighttpd edit lighttpd.conf.
For phpSQLiteCMS 2.0:


...
### url handling modules (rewrite, redirect, access)
url.rewrite-once = (
"^/phpsqlitecms/([^\?.]*)/?$" => "/phpsqlitecms/index.php?qs=$1",
)
...

Unfortunately still doesn't work - still 404 error page. The administration panel works OK.

Tested on:

Linux server 2.6.31-ARCH
lighttpd-1.4.24-1 (with modules fastcgi, rewrite, redirect and access enabled)
php-5.3.0-5 (with PDO and sqlite enabled)
phpSQLiteCMS v. 2.0 beta1 (2009-09-17)

How to run phpSQLiteCMS on lighttpd [tip]

by nBVCXz @, Thursday, December 10, 2009, 10:37 (273 days ago) @ nBVCXz

Sorry for little mess - all is working ok. The thing was that my cms is operating at the root http directory (not in /phpsqlitecms): so I need to remove '/phpsqlitecms' and mine is:

url.rewrite-once = ( "^/([^\?.]*)/?$" => "/index.php?qs=$1")

So thing is solved and cms operating like charm :-)

How to run phpSQLiteCMS on lighttpd [tip]

by Lighttpd tester, Monday, July 26, 2010, 20:38 (45 days ago) @ nBVCXz

I also tried this with lighttpd and I had to use two separate rewrite rules to get the content and management to work correctly. I use it in the root directory /

url.rewrite-once = (
^/cms/([^\?.]*)/?$" => "/cms/index.php?qs=$1",
"^/([^\?.]*)/?$" => "/index.php?qs=$1"
)

And here the order is important, ie. the /cms/ rule is before the / rule.

And I am also happy to report that this works like a charm with lighttpd and php fast-cgi run as a separate user.

RSS Feed of thread
192 Postings in 89 Threads, 63 registered users, 6 users online (0 registered, 6 guests)
Forum time: 2010-09-09, 15:22
RSS Postings  RSS Threads | Contact
powered by my little forum