[WebDNA] WebDNA Snow Leopard Server installation process
This WebDNA talk-list message is from 2011
It keeps the original formatting.
numero = 106841
interpreted = N
texte = Installation process on a Snow Leopard OSX serverMove the /WebDNA folder inside =/Library/WebServer/Documents/www.domain1.com/as well as in /Library/WebServer/Documents/www.domain2.com/ and as many =vhosts you need.Move WebDNA.fcgi executable inside /WebDNAchmod 755 WebDNA.fcgiThen open your httpd.conf (/private/etc/apache2/httpd.conf) and check =both of these modules are loaded:LoadModule rewrite_module libexec/apache2/mod_rewrite.soLoadModule fastcgi_module libexec/apache2/mod_fastcgi.so- If you are using the server admin, you can also enable mod_fastcgi by =clicking the check box for it (open OSX admin tool, go to web, go to =settings, then modules, enable fastcgi_module)- create your virtual host(s)- enable your virtual host(s)- edit /etc/apache2/httpd.conf, add these lines above the line that =reads "#### The following Include directive is essential for the virtual =hosts to be usable."#-----------------------
Action webdna-fastcgi /WebDNA/WebDNA.fcgi AddHandler webdna-fastcgi .dna FastCGIServer =/Library/WebServer/Documents/www.domain1.com/WebDNA/WebDNA.fcgi =-idle-timeout 60 -processes 1 FastCGIServer =/Library/WebServer/Documents/www.domain2.com/WebDNA/WebDNA.fcgi =-idle-timeout 60 -processes 1#-----------------------Note it is very important to use "-processes 1" because if a website =open several instances accessing the same databases, there will be =conflicts.And if you had a 3rd one, you'd add: FastCGIServer =/Library/WebServer/Documents/www.domain3.com/WebDNA/WebDNA.fcgi =-idle-timeout 60 -processes 1and so forth.To hide some specific files, just add these lines in the httpd.conf#-----------------------
Deny from all = =20#-----------------------Finally, if you want the [protect] context to properly work, you will =need the following lines INSIDE the vhost.conf, for every single site on =your server.Open the virtualhost config in /etc/apache2/sites/www.domain1.com.confand add#-----------------------
RewriteEngine onRewriteRule .* - [E=3DHTTP_AUTHORIZATION:%{HTTP:Authorization},L]#-----------------------Restart apache (there is no need to start WebDNA, it is automatically =done with the first WebDNA request apache receives. This is also the =reason wht we do not need anymore the WebDNAMonitor from the previous =versions)connect your browser to =http://www.domain1.com/WebDNA/Admin/AdminPrefs.dna to manage site1,http://www.domain2.com/WebDNA/Admin/AdminPrefs.dna to manage site2 =etc...login and pass admin/adminThat's it!
Associated Messages, from the most recent to the oldest:
Installation process on a Snow Leopard OSX serverMove the /WebDNA folder inside =/Library/WebServer/Documents/www.domain1.com/as well as in /Library/WebServer/Documents/www.domain2.com/ and as many =vhosts you need.Move WebDNA.fcgi executable inside /WebDNAchmod 755 WebDNA.fcgiThen open your httpd.conf (/private/etc/apache2/httpd.conf) and check =both of these modules are loaded:LoadModule rewrite_module libexec/apache2/mod_rewrite.soLoadModule fastcgi_module libexec/apache2/mod_fastcgi.so- If you are using the server admin, you can also enable mod_fastcgi by =clicking the check box for it (open OSX admin tool, go to web, go to =settings, then modules, enable fastcgi_module)- create your virtual host(s)- enable your virtual host(s)- edit /etc/apache2/httpd.conf, add these lines above the line that =reads "#### The following Include directive is essential for the virtual =hosts to be usable."#-----------------------
Action webdna-fastcgi /WebDNA/WebDNA.fcgi AddHandler webdna-fastcgi .dna FastCGIServer =/Library/WebServer/Documents/www.domain1.com/WebDNA/WebDNA.fcgi =-idle-timeout 60 -processes 1 FastCGIServer =/Library/WebServer/Documents/www.domain2.com/WebDNA/WebDNA.fcgi =-idle-timeout 60 -processes 1#-----------------------Note it is very important to use "-processes 1" because if a website =open several instances accessing the same databases, there will be =conflicts.And if you had a 3rd one, you'd add: FastCGIServer =/Library/WebServer/Documents/www.domain3.com/WebDNA/WebDNA.fcgi =-idle-timeout 60 -processes 1and so forth.To hide some specific files, just add these lines in the httpd.conf#-----------------------
Deny from all = =20#-----------------------Finally, if you want the
[protect] context to properly work, you will =need the following lines INSIDE the vhost.conf, for every single site on =your server.Open the virtualhost config in /etc/apache2/sites/www.domain1.com.confand add#-----------------------
RewriteEngine onRewriteRule .* - [E=3DHTTP_AUTHORIZATION:%{HTTP:Authorization},L]#-----------------------Restart apache (there is no need to start WebDNA, it is automatically =done with the first WebDNA request apache receives. This is also the =reason wht we do not need anymore the WebDNAMonitor from the previous =versions)connect your browser to =http://www.domain1.com/WebDNA/Admin/AdminPrefs.dna to manage site1,http://www.domain2.com/WebDNA/Admin/AdminPrefs.dna to manage site2 =etc...login and pass admin/adminThat's it!
christophe.billiottet@webdna.us
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:
Protect (1997)
[BULK] [WebDNA] Authorize.net SIM, Server Integration Method (2011)
return missing item (was:WebCat Sales) (1997)
multiple databases (1997)
A multi-processor savvy WebCatalog? (1997)
searchable list archive (1997)
syntax question, not in online refernce (1997)
Searchable WebCat (etc.) Docs ? (1997)
New command suggestion (was Modifying databasesmanually) (1997)
Reload adding to cart (2001)
Not really WebCat (1997)
NY State Zip Codes & Tax percent (2002)
emailer on Windows Beta 18 (1997)
Re:listfiles-looking for slick solution (1997)
Speed Admin? (Was FlushDatabases) (1997)
WebCat b13 CGI -shownext- (1997)
WebCatalog vs WebDNA (2002)
Smith Micro - no competition (2000)
WebCat2: Master Counter snippet (1997)
Moment of Thanks (1997)