Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Unable to use under Lighttpd

#162

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.

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

State: new
Milestone: none
Assigned to: lux lux

Activity

  1. lux
    lux

    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.

    June 25th, 2010 @ 07:06 PM

  2. Iván Campaña
    Iván Campaña

    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...

    June 27th, 2010 @ 05:21 PM

  3. Iván Campaña
    Iván Campaña

    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)

    June 27th, 2010 @ 06:24 PM

  4. Iván Campaña
    Iván Campaña

    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.

    June 27th, 2010 @ 07:00 PM

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.