Lawrence Banahan
Mobile: 06.80.71.99.02
Skype: lbanahan
Courriel: lawrence@banahan.fr
www.banahan.fr
--------------060204090200000304020706-- Associated Messages, from the most recent to the oldest:Steve,I'm not sure this is a DEFINITIVE guide, but it may help. I started with the WebDNA 7 installation instructions and updated them for LION SERVER and MOUNTAIN LION SERVER specific instructions. I'll attach the text file as well as include the text below. Best of luck with your install and keep us posted!Regards,Brian#------------------------------------------------------------------------------------------------------------Here's the WebDNA 7 FastCGI installation process for OSX Lion SERVER and Mountain Lion SERVER:STEP 1:Install JAVA for OS X LionMore information at: http://support.apple.com/kb/DL1421 and http://support.apple.com/kb/HT5267To test if Java is installed, open Terminal.app and type "java".To check which version of Java is installed, open Terminal.app and type "java -version".STEP 2:Install mod_fastcgi.soLion/MtnLion is missing mod_fastcgi.soIt can be recovered from Snow LeopardPut a copy of mod_fastcgi.so at /usr/libexec/apache2/Set permissions on mod_fastcgi.so to be the same as other .so files in that directory.(i.e., system=read/write,wheel=readonly,everyone=readonly) STEP 3:For EACH web site domain (i.e., vhost), place a copy of the /WebDNA folder here:/Library/Server/Web/Data/Sites/<myDomainDirectory>/STEP 4:Move a copy of WebDNA.fcgi executable inside each of the /WebDNA folderschmod 755 WebDNA.fcgiSTEP 5:Then open your primary apache2 configuration file and make sure that both therewrite and fastcgi modules are loaded. The mod_rewrite.so should be loaded by default,but you will need to add the entry for loading mod_fastcgi.soFor OS X Lion SERVER (10.7), the file to edit is: /private/etc/apache2/httpd.confFor OS X Mtn Lion SERVER (10.8), the file to edit is: /Library/Server/Web/Config/apache2/httpd_server_app.confLoadModule rewrite_module libexec/apache2/mod_rewrite.soLoadModule fastcgi_module libexec/apache2/mod_fastcgi.soSTEP 6:- edit httpd_server_app.conf (10.8) or httpd.conf (10.7) to add the following lines...<#-----------------------<IfModule mod_fastcgi.c>FastCGIServer /Library/Server/Web/Data/Sites/<myDomainDirectory1>/WebDNA/WebDNA.fcgi -idle-timeout 60 -processes 1FastCGIServer /Library/Server/Web/Data/Sites/<myDomainDirectory2>/WebDNA/WebDNA.fcgi -idle-timeout 60 -processes 1FastCGIServer /Library/Server/Web/Data/Sites/<myDomainDirectory3>/WebDNA/WebDNA.fcgi -idle-timeout 60 -processes 1Action webdna-fastcgi /WebDNA/WebDNA.fcgiAddHandler webdna-fastcgi .dna</IfModule>#-----------------------Note it is very important to use "-processes 1" because if a website open several instancesaccessing the same databases, there will be conflicts. Also be sure to add an entry for eachWebDNA-enabled vhost web site that you have.Notes for Lion Server (10.7)I added the fastcgi directive lines just below the following directive:<IfDefine WEBSHARING_ON># Multi -language error messages#Include /private/etc/apache2/extra/httpd-multilang-errordoc.conf...#Include /private/etc/apache2/extra/httpd-dav.conf</IfDefine>Be careful that OSX Lion Server will disable what you have done if WebSharing is not "on":it will place your configuration within<IfDefine WEBSHARING_ON></IfDefine>and the configuration settings are completely ineffective.So, turn it "on" by opening the System Settings, then opening the "Sharing" control paneland checking the box for "Web Sharing".Notes for Mountain Lion Server (10.8)I added the fastcgi directive lines just below the following directive:<IfModule mime_module></IfModule>STEP 7:To hide some specific WebDNA-related files, add these lines in the httpd.conf orhttpd_server_app.conf, just below the lines you added in STEP 6.#-----------------------<FilesMatch ".*\.(db|inc|conf|ini)$">Deny from all </FilesMatch>#-----------------------STEP 8:Finally, if you want the WebDNA [protect] context to properly work, you will need thefollowing lines INSIDE the virtualhost configuration file, for every single site on your server.Open each virtualhost config file and add the following lines:#-----------------------<IfModule mod_rewrite.c>RewriteEngine onRewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]</IfModule>#-----------------------For Lion Server (10.7), the configuration files are located here:/etc/apache2/sites/0000_X.X.X.X_80_<myDomain>.conf (non-ssl domains)/etc/apache2/sites/0000_X.X.X.X_443_<myDomain>.conf (ssl domains)For Mountain Lion Server (10.8), the configuration files are located here:/Library/Server/Web/Config/apache2/sites/0000_X.X.X.X_80_<myDomain>.conf (non-ssl domains)/Library/Server/Web/Config/apache2/sites/0000_X.X.X.X_443_<myDomain>.conf (ssl domains)in the following file for non-SSL vhosts:STEP 9:Make sure that you add index.dna as a default index type for each WebDNA-enabled site you host.Do this in Lion & Mtn Lion SERVER by opening Server.app, selecting Web (10.7) or Websites (10.8)under SERVICES in the left-side pane, select your domain to edit and then select the "edit" buttonnext to "Index Files:". In the drop-down sheet, select + and add "index.dna" to the list.STEP 10:Restart apache (there is no need to start WebDNA, it is automatically done with the firstWebDNA request apache receives. This is also the reason why we do not need anymore theWebDNAMonitor from the previous versions) either withapachectl restartor using your administration GUI.STEP 11: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/adminIf your login fails, verify that STEP 8 has been done and try again.That should do it.#------------------------------------------------------------------------------------------------------------
Lawrence Banahan
Mobile: 06.80.71.99.02
Skype: lbanahan
Courriel: lawrence@banahan.fr
www.banahan.fr
--------------060204090200000304020706-- BanahanSteve,I'm not sure this is a DEFINITIVE guide, but it may help. I started with the WebDNA 7 installation instructions and updated them for LION SERVER and MOUNTAIN LION SERVER specific instructions. I'll attach the text file as well as include the text below. Best of luck with your install and keep us posted!Regards,Brian#------------------------------------------------------------------------------------------------------------Here's the WebDNA 7 FastCGI installation process for OSX Lion SERVER and Mountain Lion SERVER:STEP 1:Install JAVA for OS X LionMore information at: http://support.apple.com/kb/DL1421 and http://support.apple.com/kb/HT5267To test if Java is installed, open Terminal.app and type "java".To check which version of Java is installed, open Terminal.app and type "java -version".STEP 2:Install mod_fastcgi.soLion/MtnLion is missing mod_fastcgi.soIt can be recovered from Snow LeopardPut a copy of mod_fastcgi.so at /usr/libexec/apache2/Set permissions on mod_fastcgi.so to be the same as other .so files in that directory.(i.e., system=read/write,wheel=readonly,everyone=readonly) STEP 3:For EACH web site domain (i.e., vhost), place a copy of the /WebDNA folder here:/Library/Server/Web/Data/Sites/<myDomainDirectory>/STEP 4:Move a copy of WebDNA.fcgi executable inside each of the /WebDNA folderschmod 755 WebDNA.fcgiSTEP 5:Then open your primary apache2 configuration file and make sure that both therewrite and fastcgi modules are loaded. The mod_rewrite.so should be loaded by default,but you will need to add the entry for loading mod_fastcgi.soFor OS X Lion SERVER (10.7), the file to edit is: /private/etc/apache2/httpd.confFor OS X Mtn Lion SERVER (10.8), the file to edit is: /Library/Server/Web/Config/apache2/httpd_server_app.confLoadModule rewrite_module libexec/apache2/mod_rewrite.soLoadModule fastcgi_module libexec/apache2/mod_fastcgi.soSTEP 6:- edit httpd_server_app.conf (10.8) or httpd.conf (10.7) to add the following lines...<#-----------------------<IfModule mod_fastcgi.c>FastCGIServer /Library/Server/Web/Data/Sites/<myDomainDirectory1>/WebDNA/WebDNA.fcgi -idle-timeout 60 -processes 1FastCGIServer /Library/Server/Web/Data/Sites/<myDomainDirectory2>/WebDNA/WebDNA.fcgi -idle-timeout 60 -processes 1FastCGIServer /Library/Server/Web/Data/Sites/<myDomainDirectory3>/WebDNA/WebDNA.fcgi -idle-timeout 60 -processes 1Action webdna-fastcgi /WebDNA/WebDNA.fcgiAddHandler webdna-fastcgi .dna</IfModule>#-----------------------Note it is very important to use "-processes 1" because if a website open several instancesaccessing the same databases, there will be conflicts. Also be sure to add an entry for eachWebDNA-enabled vhost web site that you have.Notes for Lion Server (10.7)I added the fastcgi directive lines just below the following directive:<IfDefine WEBSHARING_ON># Multi -language error messages#Include /private/etc/apache2/extra/httpd-multilang-errordoc.conf...#Include /private/etc/apache2/extra/httpd-dav.conf</IfDefine>Be careful that OSX Lion Server will disable what you have done if WebSharing is not "on":it will place your configuration within<IfDefine WEBSHARING_ON></IfDefine>and the configuration settings are completely ineffective.So, turn it "on" by opening the System Settings, then opening the "Sharing" control paneland checking the box for "Web Sharing".Notes for Mountain Lion Server (10.8)I added the fastcgi directive lines just below the following directive:<IfModule mime_module></IfModule>STEP 7:To hide some specific WebDNA-related files, add these lines in the httpd.conf orhttpd_server_app.conf, just below the lines you added in STEP 6.#-----------------------<FilesMatch ".*\.(db|inc|conf|ini)$">Deny from all </FilesMatch>#-----------------------STEP 8:Finally, if you want the WebDNA [protect] context to properly work, you will need thefollowing lines INSIDE the virtualhost configuration file, for every single site on your server.Open each virtualhost config file and add the following lines:#-----------------------<IfModule mod_rewrite.c>RewriteEngine onRewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]</IfModule>#-----------------------For Lion Server (10.7), the configuration files are located here:/etc/apache2/sites/0000_X.X.X.X_80_<myDomain>.conf (non-ssl domains)/etc/apache2/sites/0000_X.X.X.X_443_<myDomain>.conf (ssl domains)For Mountain Lion Server (10.8), the configuration files are located here:/Library/Server/Web/Config/apache2/sites/0000_X.X.X.X_80_<myDomain>.conf (non-ssl domains)/Library/Server/Web/Config/apache2/sites/0000_X.X.X.X_443_<myDomain>.conf (ssl domains)in the following file for non-SSL vhosts:STEP 9:Make sure that you add index.dna as a default index type for each WebDNA-enabled site you host.Do this in Lion & Mtn Lion SERVER by opening Server.app, selecting Web (10.7) or Websites (10.8)under SERVICES in the left-side pane, select your domain to edit and then select the "edit" buttonnext to "Index Files:". In the drop-down sheet, select + and add "index.dna" to the list.STEP 10:Restart apache (there is no need to start WebDNA, it is automatically done with the firstWebDNA request apache receives. This is also the reason why we do not need anymore theWebDNAMonitor from the previous versions) either withapachectl restartor using your administration GUI.STEP 11: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/adminIf your login fails, verify that STEP 8 has been done and try again.That should do it.#------------------------------------------------------------------------------------------------------------
DOWNLOAD WEBDNA NOW!
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...