[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 server Move 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 /WebDNA chmod 755 WebDNA.fcgi Then open your httpd.conf (/private/etc/apache2/httpd.conf) and check = both of these modules are loaded: LoadModule rewrite_module libexec/apache2/mod_rewrite.so LoadModule 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 1 and 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.conf and add #----------------------- RewriteEngine on RewriteRule .* - [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/admin That's it! Associated Messages, from the most recent to the oldest:

    
  1. [BULK] Re: [WebDNA] WebDNA Snow Leopard Server installation process (Palle Bo Nielsen 2011)
  2. [WebDNA] WebDNA Snow Leopard Server installation process (christophe.billiottet@webdna.us 2011)
Installation process on a Snow Leopard OSX server Move 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 /WebDNA chmod 755 WebDNA.fcgi Then open your httpd.conf (/private/etc/apache2/httpd.conf) and check = both of these modules are loaded: LoadModule rewrite_module libexec/apache2/mod_rewrite.so LoadModule 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 1 and 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.conf and add #----------------------- RewriteEngine on RewriteRule .* - [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/admin That'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:

WCf2 and nested tags (1997) Does not begin with.... (2003) Where has WebDNA shown up in your life? (2003) Repeating Fields (1997) PCS Customer submissions ? (1997) Multi-User Security on *nix using mod_rewrite (2002) Dropdown menus (2006) Security Question (1997) Add to a field (1998) SuperFlush stumped on simple sort (1999) emailer w/F2 (1997) Command=FlushDatabases Question... (2001) Using Cookie for client specific info? (1997) Webcatalog 2.1* and Personal Web Server 4.0 (1998) WC2.0 Memory Requirements (1997) credit card authorization question (1997) Using WC for Bulk Emailings (1997) Setting up shop (1997) Is this google friendly? (2003) listfiles sort by moddate (2002)