#162 new
Iván Campaña

Unable to use under Lighttpd

Reported by Iván Campaña | June 25th, 2010 @ 03:45 PM

I know it has been designed to be used under Apache, but since lighttpd provides de same configuration options as apache it should work, I managed to get it running, but once I try to login, it shows me the default options but logs me out just as I try to click any option.

Been Playing with the configuration, not still seems to be unable to run.. After too much trouble I decided to install Apache on a virtual machine to give it a try, but the result was the same, at the beginning the main problem was the installer not recognizing that it was being installed under a prefix.

I enabled all the necesary modules in Apache, mod_rewrite, mod_php5 and allowed all changes in .htaccess, so either I'm missing something or it is not behaving well.. I even activated the doc_root to see if anything changed, and disabled the remove index option.

Comments and changes to this ticket

  • lux

    lux June 25th, 2010 @ 07:06 PM

    Are you using a URL like http://localhost/ or http://127.0.0.1/ by any chance? It sounds like the cookie is failing to be set. If you check the install guide for OSX there's some info on setting up your local hosts file to create aliases like http://www.dev.lo/ to point to your local Apache or lighttpd server. Hope that helps.

  • Iván Campaña

    Iván Campaña June 27th, 2010 @ 05:21 PM

    Thanks for the help, I managed to get it running creating an alias to my computer name, even though that might be considered as a complication, I had to make some adjustements so that everything could work witch Lighttpd (I can contribute those changes so that installing it on lighttpd can be easy), now, everything seems allright except for one thing, when I go to the Add new page option or anywhere I need to be able to choose between easy and advanced mode there is a Javascript error saying :"rpc is not defined" I searched through the files and thats defined in js/rpc.js

    But the code where it is trying to use that object is not including it, is that normal or is it a bug?

    If I can be of any help I'll be glad to give a hand in solving problems, I've been looking for a decent replacement for joomla for long time...

  • Iván Campaña

    Iván Campaña June 27th, 2010 @ 06:24 PM

    Just in case anyone would like to give it a try on lighttpd:
    You need to load this module:
    "mod_rewrite" and "mod_fastcgi"

    I'm not going to cover how to enable php with fastcgi since it has already been done tons of times

    After setting up your regular hostname alias you need to add this to your lighttpd.conf to set a virtual host:

    $HTTP["host"] =~ "(^|.)yourlocaldomain.com$" {

    server.document-root = "/home/User/Sites/sitellite"
    server.errorlog = "/home/User/Sites/error.log"
    accesslog.filename = "/home/User/Sites/access.log"
    
    mimetype.assign   += ( ".tpl"  => "text/html")
    
    fastcgi.map-extensions = ( "/index" => ".php",
                   "/sitellite" => ".php"   
                )
    url.rewrite-once = (
            "^/(index|sitellite|js|pix|docs|inc/html)/.*" => "$0",
            "^/([^?]*)(?:\?(.*))?" => "index?_rewrite_sticky=$1&$2"
            )
    

    }

    I choose to use a folder inside muy User home just to make it easy to edit, the rewrite-once option is needed if you are planning to use the remove index option, so that it can redirect properly to the index page.. That's it, you get a working Sitellite installation (except for the rpc problem that I still haven't figure out)

  • Iván Campaña

    Iván Campaña June 27th, 2010 @ 07:00 PM

    Little mistake, the url rewrite should be:
    url.rewrite-once = (

        "^/(js|pix|docs)/.*" => "$0",
        "^/inc/(.*).(gif|png|jpg|js|css)" => "$0",
        "^/([^?]*)(?:\?(.*))?" => "index?_rewrite_sticky=$1&$2"
        )
    

    That way we don't expose php files in the inc folder and still we get the same behavior.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The Sitellite web content management system.

People watching this ticket

Pages