[WebDNA] Install LIghttpd and WebDNA v7.0 on Ubuntu 10.10

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105931
interpreted = N
texte = Here's how I just installed WebDNA v7.0 on my desktop development machine which is running Ubuntu 10.10. To install on your own desktop system simply change /home/ken to your own document root folder path: 1- Use Synaptic to remove Apache first (if installed) then install Lighttpd. 2- As root in /etc/lighttpd create folders: cacheFiles, logFiles, serverPID and socketFiles, then set the new folder permissions to drwxrwxrwx. 3- Put the WebDNA folder (which contains WebDNA.fcgi) into the /home/ken folder. 4- 10-access.conf and 10-fastcgi.conf reside in /etc/lighttpd/conf-avaiilable. Make symlinks of them, then put the links into /etc/lighttpd/conf-enabled. 5- Create custom error files in /home/ken that follow this naming convention: error-[errorNumber].html, for example "error-404.html". 6- Replace the contents of /etc/lighttpd/lighttpd.conf with this: # ------------------------------------------------------------- server.modules = ( "mod_access", "mod_cgi", "mod_fastcgi", "mod_status", "mod_accesslog" ) server.pid-file = "/etc/lighttpd/serverPID/lighttpd.pid" server.username = "www-data" server.groupname = "www-data" server.max-keep-alive-requests = 0 server.stat-cache-engine = "simple" server.max-worker = 2 server.event-handler = "linux-sysepoll" server.network-backend = "writev" server.document-root = "/home/ken/" dir-listing.activate = "enable" server.errorlog = "/etc/lighttpd/logFiles/error.log" accesslog.filename = "/etc/lighttpd/logFiles/access.log" index-file.names = ( "index.dna", "index.tpl", "index.htm", "index.html" ) server.errorfile-prefix = "/home/ken/error-" url.access-deny = ( "~", ".inc", ".db", ".ini" ) $HTTP["url"] =~ "\.pdf$" { server.range-requests = "disable" } static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".cgi", ".dna", ".tpl", ".htm", ".html" ) cgi.assign = ( ".pl" => "/usr/bin/perl", ".cgi" => "/usr/bin/perl" ) # mimetype mapping mimetype.assign = ( ".pdf" => "application/pdf", ".gif" => "image/gif", ".jpg" => "image/jpeg", ".jpeg" => "image/jpeg", ".png" => "image/png", ".css" => "text/css", ".dna" => "text/html", ".tpl" => "text/html", ".htm" => "text/html", ".html" => "text/html", ".js" => "text/javascript", "" => "text/plain", ) # Use the "Content-Type" extended attribute to obtain mime type if possible mimetype.use-xattr = "enable" status.status-url = "/status" status.config-url = "/config" status.statistics-url = "/statistics" fastcgi.map-extensions = ( ".tpl" => ".dna", ".htm" => ".dna", ".html" => ".dna" ) fastcgi.server = ( ".dna" => ( "localhost" => ( "socket" => "/etc/lighttpd/socketFiles/dna-fastcgi-1.socket", "bin-path" => "/home/ken/WebDNA/WebDNA.fcgi", "max-procs" => 1, "broken-scriptfilename" => "enable", ) ) ) # ------------------------------------------------------------- 7- Reboot the computer and visit this URL to see if it works: http://localhost/WebDNA/Admin/AdminPrefs.dna 8- Set WebDNA prefs to make WebDNA serve .tpl, .dns, .htm and .html files, then make other changes to the WebDNA prefs as required. And don't blame me if I forgot something! I didn't write this down while I was doing it so I'm writing this from memory and I may have forgotten something. If you have a problem with these instructions just post an explanation so I can figure out if it's you or me who made a mistake ... :) Sincerely, Kenneth Grome Associated Messages, from the most recent to the oldest:

    
  1. [WebDNA] Install LIghttpd and WebDNA v7.0 on Ubuntu 10.10 (christophe.billiottet@webdna.us 2011)
  2. [WebDNA] Install LIghttpd and WebDNA v7.0 on Ubuntu 10.10 (Kenneth Grome 2010)
Here's how I just installed WebDNA v7.0 on my desktop development machine which is running Ubuntu 10.10. To install on your own desktop system simply change /home/ken to your own document root folder path: 1- Use Synaptic to remove Apache first (if installed) then install Lighttpd. 2- As root in /etc/lighttpd create folders: cacheFiles, logFiles, serverPID and socketFiles, then set the new folder permissions to drwxrwxrwx. 3- Put the WebDNA folder (which contains WebDNA.fcgi) into the /home/ken folder. 4- 10-access.conf and 10-fastcgi.conf reside in /etc/lighttpd/conf-avaiilable. Make symlinks of them, then put the links into /etc/lighttpd/conf-enabled. 5- Create custom error files in /home/ken that follow this naming convention: error-[errorNumber].html, for example "error-404.html". 6- Replace the contents of /etc/lighttpd/lighttpd.conf with this: # ------------------------------------------------------------- server.modules = ( "mod_access", "mod_cgi", "mod_fastcgi", "mod_status", "mod_accesslog" ) server.pid-file = "/etc/lighttpd/serverPID/lighttpd.pid" server.username = "www-data" server.groupname = "www-data" server.max-keep-alive-requests = 0 server.stat-cache-engine = "simple" server.max-worker = 2 server.event-handler = "linux-sysepoll" server.network-backend = "writev" server.document-root = "/home/ken/" dir-listing.activate = "enable" server.errorlog = "/etc/lighttpd/logFiles/error.log" accesslog.filename = "/etc/lighttpd/logFiles/access.log" index-file.names = ( "index.dna", "index.tpl", "index.htm", "index.html" ) server.errorfile-prefix = "/home/ken/error-" url.access-deny = ( "~", ".inc", ".db", ".ini" ) $HTTP["url"] =~ "\.pdf$" { server.range-requests = "disable" } static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".cgi", ".dna", ".tpl", ".htm", ".html" ) cgi.assign = ( ".pl" => "/usr/bin/perl", ".cgi" => "/usr/bin/perl" ) # mimetype mapping mimetype.assign = ( ".pdf" => "application/pdf", ".gif" => "image/gif", ".jpg" => "image/jpeg", ".jpeg" => "image/jpeg", ".png" => "image/png", ".css" => "text/css", ".dna" => "text/html", ".tpl" => "text/html", ".htm" => "text/html", ".html" => "text/html", ".js" => "text/javascript", "" => "text/plain", ) # Use the "Content-Type" extended attribute to obtain mime type if possible mimetype.use-xattr = "enable" status.status-url = "/status" status.config-url = "/config" status.statistics-url = "/statistics" fastcgi.map-extensions = ( ".tpl" => ".dna", ".htm" => ".dna", ".html" => ".dna" ) fastcgi.server = ( ".dna" => ( "localhost" => ( "socket" => "/etc/lighttpd/socketFiles/dna-fastcgi-1.socket", "bin-path" => "/home/ken/WebDNA/WebDNA.fcgi", "max-procs" => 1, "broken-scriptfilename" => "enable", ) ) ) # ------------------------------------------------------------- 7- Reboot the computer and visit this URL to see if it works: http://localhost/WebDNA/Admin/AdminPrefs.dna 8- Set WebDNA prefs to make WebDNA serve .tpl, .dns, .htm and .html files, then make other changes to the WebDNA prefs as required. And don't blame me if I forgot something! I didn't write this down while I was doing it so I'm writing this from memory and I may have forgotten something. If you have a problem with these instructions just post an explanation so I can figure out if it's you or me who made a mistake ... :) Sincerely, Kenneth Grome Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCat2b13MacPlugIn - More limits on [include] (1997) BreadCrumb Trails (2001) Multiple Ad databases? (1997) purchase.log file (1997) How do I get Google to crawl a WebCat site? (2003) PIXO support (1997) Re:listfiles-looking for slick solution (1997) SiteGuard Use Question (1997) OT: Unix question (2003) OT: javascript help (2003) Expert tech support -- a fast and simple solution (long) ... (2000) Discounts (1998) Do search engines index .tpl pages? (2006) [WebDNA] What is lateset ver. of Apache supported? (2008) Multi-processor Mac info ... (1997) Multiple fields on 1 input (1997) Robots fill event log (1997) DataBaseHelper Flawed (1997) Multiple database stuff... (1999) Temp DBs (2007)