We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39159
    • 23 Posts
    OK Here's my lighty config

    $HTTP["host"] =~ "^(www.myurl.com|myurl.com)" {
    
    alias.url    = ("/__kloxo" => "/home/admin/kloxoscript")
    url.redirect = ("/webmail" => "http://webmail.myurl.com")
    url.redirect += ("^kloxo$" => "https://cp.myurl.com:7777")
    url.redirect += ("/kloxononssl" => "http://cp.myurl.com:7778")
    url.redirect   += ("/stats/" => "http://myurl.com/awstats/awstats.pl")
    url.redirect   += ("/stats" => "http://myurl.com/awstats/awstats.pl")
    server.document-root =  "/home/admin/myurl/www/"
    url.rewrite-once = ( "^/(assets|cms|connect|images|scripts|core)(.*)$" => "/$1/$2",
                             "^/(?!index(?:-ajax)?\.php)(.*)\?(.*)$" => "/index.php?q=$1&$2",
                             "^/(?!index(?:-ajax)?\.php)(.*)$" => "/index.php?q=$1"
                       )
    index-file.names =  ("index.php", "index.html", "index.shtml", "index.htm", "default.htm", "Default.aspx", "Default.asp", "index.pl")
    alias.url += ( "/awstatsicons" => "/home/kloxo/httpd/awstats/wwwroot/icon/" )
    alias.url += ( "/awstatscss" => "/home/kloxo/httpd/awstats/wwwroot/css/" )
    alias.url     += ("/awstats/" => "/home/kloxo/httpd/awstats/wwwroot/cgi-bin/")
    $HTTP["url"] =~ "^/awstats" {
        cgi.assign = ( ".pl" => "//home/httpd/myurl.com/perlsuexec.sh" )
    }
    alias.url += ( "/cgi-bin" => "/home/admin/myurl/www/cgi-bin/")
    $HTTP["url"] =~ "^/cgi-bin" {
        cgi.assign = ( "" => "//home/httpd/myurl.com/shsuexec.sh" )
    }
    
    accesslog.filename  =   "/home/httpd/myurl.com/stats/myurl.com-custom_log"
    server.errorlog    =  "/home/httpd/myurl.com/stats/myurl.com-error_log"
    fastcgi.server  = (".php" =>(( "socket" => "/var/tmp/lighttpd/php.socket.myurl.com." + var.PID,
       "bin-path" => "/usr/bin/lxsuexec",
       "min-procs" => 0,
       "max-procs" => 1,
       "bin-environment" => (
           "MUID" => "1006",
           "GID" => "1006",
           "PHPRC" => "/home/httpd/myurl.com",
           "TARGET" => "/usr/bin/php-cgi",
           "NON_RESIDENT" => "0",
           "PHP_FCGI_CHILDREN" => "0",
           "PHP_FCGI_MAX_REQUESTS" => "100000000" ),
       "max-load-per-proc" => 1000,
       "idle-timeout" => 3
     ))
    )
    $HTTP["url"] =~ "^/stats" {
    dir-listing.activate = "enable"


    Does that show anything? I'm not terribly savvy with setting up a server so I'm wondering if you see anything wrong there...

    Greg
      • 39159
      • 23 Posts
      For what it's worth I'm also getting the following errors in my log

      [2013-01-18 01:53:50] (ERROR @ /index.php) Could not get table name for class: modFileMediaSource
      [2013-01-18 01:53:50] (ERROR @ /index.php) Could not get table name for class: modFileMediaSource
      [2013-01-18 01:53:50] (ERROR @ /index.php) Could not get table name for class: modFileMediaSource
      [2013-01-18 01:53:50] (ERROR @ /index.php) Could not get table name for class: modFileMediaSource
      [2013-01-18 01:53:50] (ERROR @ /index.php) Could not get table name for class: modFileMediaSource

      Which I am now looking up.
        • 34084 ☆ A M B ☆
        • 756 Posts
        sounds more like the setup didn't get 100% done, that shouldn't have anything to do with your actual lighttpd config; try re-running the setup and ensure all your folder permissions and owners are correct.

        Cheers
          Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
          Visit CharlesMx.com for latest news and status updates.