Re: [WebDNA] Installing WebDNA 7 on OSX Mavericks Server - Instructions

This WebDNA talk-list message is from

2014


It keeps the original formatting.
numero = 111162
interpreted = N
texte = --Apple-Mail-408925CE-0E20-4A49-9189-38C27EDE8AF3 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I cheated. I changed the permissions on the conf file to read only. You can s= till edit the file later with vi using the overwrite command. (wq!) Hope that helps.=20 Email me at=20 Frank > On Feb 24, 2014, at 9:44 PM, Palle Bo Nielsen w= rote: >=20 > C.Frank Wolfe, >=20 > How did you manage to stop the server from rewriting the config file? This= is my problem right now. >=20 > /Palle >=20 >=20 >=20 >> On 25/02/2014, at 07.57, C. Frank Wolfe wrote: >>=20 >> Brian, >>=20 >> Thanks for all your hard work and documentation. >> After I got the server to stop rewriting the app config file, this worked= perfectly. >>=20 >> Frank >>=20 >>> On Jan 4, 2014, at 12:48 PM, Brian Wachter wrot= e: >>>=20 >>> I just went through the process of upgrading my Mac Mini server from OS X= 10.8 Mtn Lion Server to 10.9 Mavericks Server, which broke my WebDNA instal= lation, so I wanted to bring this to the attention of anyone else who may be= wanting to do the same thing. The two main culprits were: >>> My Java Runtime installation was deleted with the Mavericks installation= >>> My mod_fastcgi.so file got deleted with the Mavericks installation >>>=20 >>> I created detailed instructions for installing WebDNA 7 FastCGI under OS= X 10.9 Mavericks Server, which are posted below. Please note that this appli= es specifically to Mavericks SERVER. The process is similar if you=E2=80=99r= e using client, but the apache config files names and locations are a bit di= fferent. Hopefully this information is helpful to someone. >>>=20 >>> Brian Wachter >>>=20 >>> ------------------------------------------------------------------------= --------------- >>> Date: January 4, 2014 >>> Topic: WebDNA 7 FastCGI installation process for OSX Mavericks SERVER: >>>=20 >>> Step 1: >>> If you=E2=80=99re UPGRADING from an earlier version of OSX, first copy m= od_fastcgi.so located at /usr/libexec/apache2 since the Mavericks install wi= ll delete this file if it exists. >>>=20 >>> Step 2: >>> Install mod_fastcgi.so by placing a copy of the file at /usr/libexec/apa= che2/ >>> Set permissions on mod_fastcgi.so to be the same as other .so files in t= hat directory. >>> (i.e., system=3Dread/write,wheel=3Dreadonly,everyone=3Dreadonly)=20 >>>=20 >>> Step 3: >>> Install JAVA for OS X 2013-005 >>> This is Java Runtime Edition 6 (v1.6.0_65) >>> Verify the install by typing =E2=80=9Cjava -version=E2=80=9D at the term= inal command line >>> More information at: http://support.apple.com/kb/DL1572 >>> NOTE: At the time of this writing, Java Runtime 7 Update 45 is the lates= t version available from the Oracle web site. However, this did not work and= I reverted to version 6. I=E2=80=99m not sure why, but I suspect it is an i= ssue with where Java is installed. >>>=20 >>> Step 4: >>> For EACH web site domain (i.e., virtual host), place a copy of the /WebD= NA folder here: >>> /Library/Server/Web/Data/Sites// >>>=20 >>> Step 5: >>> Place a copy of WebDNA.fcgi executable inside each of the /WebDNA folder= s >>> chmod 755 WebDNA.fcgi >>>=20 >>> Step 6: >>> Open your httpd_server_app.conf (/Library/Server/Web/Config/apache2/http= d_server_app.conf) and make sure that both of the following modules are load= ed. The mod_rewrite.so should be loaded by default, but you will need to add= the entry for loading mod_fastcgi.so >>>=20 >>> LoadModule rewrite_module libexec/apache2/mod_rewrite.so >>> LoadModule fastcgi_module libexec/apache2/mod_fastcgi.so >>>=20 >>> Step 7: >>> Open your httpd_server_app.conf and add these lines... >>>=20 >>> <#----------------------- >>> >>> FastCGIServer /Library/Server/Web/Data/Sites//WebDNA= /WebDNA.fcgi -idle-timeout 60 -processes 1 >>> FastCGIServer /Library/Server/Web/Data/Sites//WebDNA= /WebDNA.fcgi -idle-timeout 60 -processes 1 >>> FastCGIServer /Library/Server/Web/Data/Sites//WebDNA= /WebDNA.fcgi -idle-timeout 60 -processes 1 >>> >>> #----------------------- >>>=20 >>> =E2=80=A6 I did this just after the following directive: >>>=20 >>> >>> =E2=80=A6 >>> >>>=20 >>> Step 8: >>> To hide some specific WebDNA-related files, add these lines in the httpd= _server_app.conf, just below the lines you added in Step 7. >>>=20 >>> #----------------------- >>> >>> Deny from all = =20 >>> >>> #----------------------- >>>=20 >>> Step 9: >>> Create a file to be included by your virtual hosts. To do this, follow t= hese steps: >>> 1. Create a directory called =E2=80=9Cwebdna_includes=E2=80=9D located a= t /Library/Server/Web/Config/apache2/ >>> 2. Set permissions on this directory to be system=3Dread/write,wheel=3Dr= eadonly,everyone=3Dreadonly >>> 3. Create a plain text file named =E2=80=9Cwebdna_vhost.conf=E2=80=9D in= side this directory with the following contents: >>>=20 >>> >>> Action webdna-fastcgi /WebDNA/WebDNA.fcgi >>> AddHandler webdna-fastcgi .dna >>> AddHandler webdna-fastcgi .html >>> >>>=20 >>> >>> RewriteEngine on >>> RewriteRule .* - [E=3DHTTP_AUTHORIZATION:%{HTTP:Authorization},L= ] >>> >>>=20 >>> NOTE: The reason you make the include file rather than put the directive= s directly in your virtual host configuration file is that Server.app will s= ometimes wipe these directives when reconfiguring web services. If you use t= he include file, Server.app will not touch the include call. >>>=20 >>> Step 10: >>> Edit each configuration file for your virtual hosts to include the call t= o the file you created in Step 9. The virtual host config files are located a= t /Library/Server/Web/Config/apache2/Sites/ and they take the form shown bel= ow for non-SSL sites and SSL-enabled sites, respectively. >>>=20 >>> 0000_X.X.X.X_80_.conf >>> 0000_X.X.X.X_443_.conf >>>=20 >>> So, open the virtual host config file and add the following line at the v= ery end just before the closing tag. >>>=20 >>> Include /Library/Server/Web/Config/apache2/webdna_includes/webdna_vh= ost.conf >>>=20 >>> Step 11: >>> Make sure that you add index.dna as a default index type for each WebDNA= -enabled site you host. Do this in Mavericks by opening Server.app, selectin= g Websites under Services in the left-side pane, open your domain to edit an= d then select the "edit" button next to "Index Files:". In the drop-down she= et, select + and add "index.dna" to the list. >>>=20 >>> Step 12: >>> Make sure =E2=80=9Cdna=E2=80=9D is included in your MIME types. To do th= is, edit the file =E2=80=9Cmime.types=E2=80=9D located at /private/etc/apach= e2/ and add the following line: >>>=20 >>> application/vnd.dna dna >>>=20 >>> Step 13: >>> Restart apache by toggling the Websites service Off/On or by typing the f= ollowing command in terminal.app >>>=20 >>> apachectl restart >>>=20 >>> Step 14: >>> Connect your browser to http://www.domain1.com/WebDNA/Admin/AdminPrefs.d= na to manage site1, >>> http://www.domain2.com/WebDNA/Admin/AdminPrefs.dna to manage site2 etc..= . >>>=20 >>> The default login is =E2=80=9Cadmin=E2=80=9D and the default password is= =E2=80=9Cadmin=E2=80=9D >>>=20 >>> If the login fails, verify that you have the following lines in your vir= tual host configuration file (either directly or via an include file): >>>=20 >>> >>> RewriteEngine on >>> RewriteRule .* - [E=3DHTTP_AUTHORIZATION:%{HTTP:Authorization},L= ] >>> >>>=20 >>> That should do it. >>>=20 >>> ------------------------------------------------------------------------= --------------- >>> --------------------------------------------------------- This message i= s sent to you because you are subscribed to the mailing list . To unsubscrib= e, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Report= ing: support@webdna.us >>=20 >> --------------------------------------------------------- This message is= sent to you because you are subscribed to the mailing list . To unsubscribe= , E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporti= ng: support@webdna.us >=20 > --------------------------------------------------------- This message is s= ent to you because you are subscribed to the mailing list . To unsubscribe, E= -mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting:= support@webdna.us --Apple-Mail-408925CE-0E20-4A49-9189-38C27EDE8AF3 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
I cheated. I changed the permissions o= n the conf file to read only. You can still edit the file later with vi usin= g the overwrite command. (wq!)

Hope that helps.&nbs= p;
Email me at 
Frank

On Feb 24, 2014= , at 9:44 PM, Palle Bo Nielsen <powerpalle@powerpalle.dk> wrote:

C.Frank Wolfe,

How did you manag= e to stop the server from rewriting the config file? This is my problem righ= t now.

/Palle


On 25/02/2014, at 07.57, C. Frank Wolfe <frank@cwolfe.com> wrote:

Bri= an,

Thanks for all your hard work and documentation.
= After I got the server to stop rewriting the app config file, this worked pe= rfectly.

Frank

On Jan 4, 20= 14, at 12:48 PM, Brian Wachter <bwachter@stoneport.com> wrote:

Installing WebDNA 7 on OSX Mavericks Server - Instructions
I just went through the process of upgrading my Mac Mini server from OS= X 10.8 Mtn Lion Server to 10.9 Mavericks Server, which broke my WebDNA inst= allation, so I wanted to bring this to the attention of anyone else who may b= e wanting to do the same thing. The two main culprits were:
  1. My Java Runtime installation was deleted with the= Mavericks installation
  2. My mod_fastcgi.so file got deleted with the Mave= ricks installation

I created detailed instructions for installing WebDNA 7 FastCGI under OSX 10= .9 Mavericks Server, which are posted below. Please note that this applies s= pecifically to Mavericks SERVER. The process is similar if you=E2=80=99re us= ing client, but the apache config files names and locations are a bit differ= ent. Hopefully this information is helpful to someone.

Brian Wachter

----------------------------------------------------------------------------= -----------
Date: January 4, 2014
Topic: WebDNA 7 FastCGI installation process for OSX Mavericks SERVER:

Step 1:
If you=E2=80=99re UPGRADING from an earlier version of OSX, first copy mod_f= astcgi.so located at /usr/libexec/apache2 since the Mavericks install will d= elete this file if it exists.

Step 2:
Install mod_fastcgi.so by placing a copy of the file at /usr/libexec/apache2= /
Set permissions on mod_fastcgi.so to be the same as other .so files in that d= irectory.
(i.e., system=3Dread/write,wheel=3Dreadonly,everyone=3Dreadonly)

Step 3:
Install JAVA for OS X 2013-005
This is Java Runtime Edition 6 (v1.6.0_65)
Verify the install by typing =E2=80=9Cjava -version=E2=80=9D at the terminal= command line
More information at: http://s= upport.apple.com/kb/DL1572
NOTE: At the time of this writing, Java Runtime 7 Update 45 is the latest ve= rsion available from the Oracle web site. However, this did not work and I r= everted to version 6. I=E2=80=99m not sure why, but I suspect it is an issue= with where Java is installed.

Step 4:
For EACH web site domain (i.e., virtual host), place a copy of the /WebDNA f= older here:
/Library/Server/Web/Data/Sites/<myDomainDirectory>/

Step 5:
Place a copy of WebDNA.fcgi executable inside each of the /WebDNA folders chmod 755 WebDNA.fcgi

Step 6:
Open your httpd_server_app.conf (/Library/Server/Web/Config/apache2/httpd_se= rver_app.conf) and make sure that both of the following modules are loaded. T= he mod_rewrite.so should be loaded by default, but you will need to add the e= ntry for loading mod_fastcgi.so

LoadModule rewrite_module     libexec/apache2/mod_rewrit= e.so
LoadModule fastcgi_module     libexec/apache2/mod_fastcg= i.so

Step 7:
Open your httpd_server_app.conf and add these lines...

<#-----------------------
<IfModule mod_fastcgi.c>
FastCGIServer /Library/Server/Web/Data/Sites/<myDomainDirectory1>/WebD= NA/WebDNA.fcgi -idle-timeout 60 -processes 1
FastCGIServer /Library/Server/Web/Data/Sites/<myDomainDirectory2>/WebD= NA/WebDNA.fcgi -idle-timeout 60 -processes 1
FastCGIServer /Library/Server/Web/Data/Sites/<myDomainDirectory3>/WebD= NA/WebDNA.fcgi -idle-timeout 60 -processes 1
</IfModule>
#-----------------------

=E2=80=A6 I did this just after the following directive:

<IfModule mime_module>
=E2=80=A6
</IfDefine>

Step 8:
To hide some specific WebDNA-related files, add these lines in the httpd_ser= ver_app.conf, just below the lines you added in Step 7.

#-----------------------
<FilesMatch  ".*\.(db|inc|conf|ini)$">
Deny from all           &n= bsp;            =             &nbs= p;            &n= bsp;            =   
</FilesMatch>
#-----------------------

Step 9:
Create a file to be included by your virtual hosts. To do this, follow these= steps:
1. Create a directory called =E2=80=9Cwebdna_includes=E2=80=9D located at /L= ibrary/Server/Web/Config/apache2/
2. Set permissions on this directory to be system=3Dread/write,wheel=3Dreado= nly,everyone=3Dreadonly
3. Create a plain text file named =E2=80=9Cwebdna_vhost.conf=E2=80=9D inside= this directory with the following contents:

    <IfModule mod_fastcgi.c>
        Action webdna-fastcgi /WebDN= A/WebDNA.fcgi
        AddHandler webdna-fastcgi .d= na
        AddHandler webdna-fastcgi .h= tml
    </IfModule>

    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteRule .* - [E=3DHTTP_A= UTHORIZATION:%{HTTP:Authorization},L]<= br>     </IfModule>

NOTE: The reason you make the include file rather than put the directives di= rectly in your virtual host configuration file is that Server.app will somet= imes wipe these directives when reconfiguring web services. If you use the i= nclude file, Server.app will not touch the include call.

Step 10:
Edit each configuration file for your virtual hosts to include the call to t= he file you created in Step 9. The virtual host config files are located at /= Library/Server/Web/Config/apache2/Sites/ and they take the form shown below f= or non-SSL sites and SSL-enabled sites, respectively.

0000_X.X.X.X_80_<myDomainDirectory>.conf
0000_X.X.X.X_443_<myDomainDirectory>.conf

So, open the virtual host config file and add the following line at the very= end just before the closing </VirtualHost> tag.

    Include /Library/Server/Web/Config/apache2/webdna_in= cludes/webdna_vhost.conf

Step 11:
Make sure that you add index.dna as a default index type for each WebDNA-ena= bled site you host. Do this in Mavericks by opening Server.app, selecting We= bsites under Services in the left-side pane, open your domain to edit and th= en select the "edit" button next to "Index Files:". In the drop-down sheet, s= elect + and add "index.dna" to the list.

Step 12:
Make sure =E2=80=9Cdna=E2=80=9D is included in your MIME types. To do this, e= dit the file =E2=80=9Cmime.types=E2=80=9D located at /private/etc/apache2/ a= nd add the following line:

application/vnd.dna    dna

Step 13:
Restart apache by toggling the Websites service Off/On or by typing the foll= owing command in terminal.app

apachectl restart

Step 14:
Connect your browser to http://www.domain1.com/WebDNA/Admin/AdminPrefs.dna to manage s= ite1,
http://www.do= main2.com/WebDNA/Admin/AdminPrefs.dna to manage site2 etc...

The default login is =E2=80=9Cadmin=E2=80=9D and the default password is =E2= =80=9Cadmin=E2=80=9D

If the login fails, verify that you have the following lines in your virtual= host configuration file (either directly or via an include file):

    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteRule .* - [E=3DHTTP_A= UTHORIZATION:%{HTTP:Authorization},L]<= br>     </IfModule>

That should do it.

----------------------------------------------------------------------------= -----------
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.= webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.= webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.= webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us
= --Apple-Mail-408925CE-0E20-4A49-9189-38C27EDE8AF3-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Installing WebDNA 7 on OSX Mavericks Server - Instructions ("C. Frank Wolfe" 2014)
  2. Re: [WebDNA] Installing WebDNA 7 on OSX Mavericks Server - Instructions (frank@cwolfe.com 2014)
  3. Re: [WebDNA] Installing WebDNA 7 on OSX Mavericks Server - Instructions (Palle Bo Nielsen 2014)
  4. Re: [WebDNA] Installing WebDNA 7 on OSX Mavericks Server - Instructions ("C. Frank Wolfe" 2014)
  5. Re: [WebDNA] Installing WebDNA 7 on OSX Mavericks Server - Instructions ("C. Frank Wolfe" 2014)
  6. Re: [WebDNA] Installing WebDNA 7 on OSX Mavericks Server - Instructions (Palle Bo Nielsen 2014)
  7. Re: [WebDNA] Installing WebDNA 7 on OSX Mavericks Server - Instructions (Palle Bo Nielsen 2014)
  8. Re: [WebDNA] Installing WebDNA 7 on OSX Mavericks Server - Instructions (Jim Lanford 2014)
  9. Re: [WebDNA] Installing WebDNA 7 on OSX Mavericks Server - Instructions (Palle Bo Nielsen 2014)
  10. [WebDNA] Installing WebDNA 7 on OSX Mavericks Server - Instructions (Brian Wachter 2014)
--Apple-Mail-408925CE-0E20-4A49-9189-38C27EDE8AF3 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I cheated. I changed the permissions on the conf file to read only. You can s= till edit the file later with vi using the overwrite command. (wq!) Hope that helps.=20 Email me at=20 Frank > On Feb 24, 2014, at 9:44 PM, Palle Bo Nielsen w= rote: >=20 > C.Frank Wolfe, >=20 > How did you manage to stop the server from rewriting the config file? This= is my problem right now. >=20 > /Palle >=20 >=20 >=20 >> On 25/02/2014, at 07.57, C. Frank Wolfe wrote: >>=20 >> Brian, >>=20 >> Thanks for all your hard work and documentation. >> After I got the server to stop rewriting the app config file, this worked= perfectly. >>=20 >> Frank >>=20 >>> On Jan 4, 2014, at 12:48 PM, Brian Wachter wrot= e: >>>=20 >>> I just went through the process of upgrading my Mac Mini server from OS X= 10.8 Mtn Lion Server to 10.9 Mavericks Server, which broke my WebDNA instal= lation, so I wanted to bring this to the attention of anyone else who may be= wanting to do the same thing. The two main culprits were: >>> My Java Runtime installation was deleted with the Mavericks installation= >>> My mod_fastcgi.so file got deleted with the Mavericks installation >>>=20 >>> I created detailed instructions for installing WebDNA 7 FastCGI under OS= X 10.9 Mavericks Server, which are posted below. Please note that this appli= es specifically to Mavericks SERVER. The process is similar if you=E2=80=99r= e using client, but the apache config files names and locations are a bit di= fferent. Hopefully this information is helpful to someone. >>>=20 >>> Brian Wachter >>>=20 >>> ------------------------------------------------------------------------= --------------- >>> Date: January 4, 2014 >>> Topic: WebDNA 7 FastCGI installation process for OSX Mavericks SERVER: >>>=20 >>> Step 1: >>> If you=E2=80=99re UPGRADING from an earlier version of OSX, first copy m= od_fastcgi.so located at /usr/libexec/apache2 since the Mavericks install wi= ll delete this file if it exists. >>>=20 >>> Step 2: >>> Install mod_fastcgi.so by placing a copy of the file at /usr/libexec/apa= che2/ >>> Set permissions on mod_fastcgi.so to be the same as other .so files in t= hat directory. >>> (i.e., system=3Dread/write,wheel=3Dreadonly,everyone=3Dreadonly)=20 >>>=20 >>> Step 3: >>> Install JAVA for OS X 2013-005 >>> This is Java Runtime Edition 6 (v1.6.0_65) >>> Verify the install by typing =E2=80=9Cjava -version=E2=80=9D at the term= inal command line >>> More information at: http://support.apple.com/kb/DL1572 >>> NOTE: At the time of this writing, Java Runtime 7 Update 45 is the lates= t version available from the Oracle web site. However, this did not work and= I reverted to version 6. I=E2=80=99m not sure why, but I suspect it is an i= ssue with where Java is installed. >>>=20 >>> Step 4: >>> For EACH web site domain (i.e., virtual host), place a copy of the /WebD= NA folder here: >>> /Library/Server/Web/Data/Sites// >>>=20 >>> Step 5: >>> Place a copy of WebDNA.fcgi executable inside each of the /WebDNA folder= s >>> chmod 755 WebDNA.fcgi >>>=20 >>> Step 6: >>> Open your httpd_server_app.conf (/Library/Server/Web/Config/apache2/http= d_server_app.conf) and make sure that both of the following modules are load= ed. The mod_rewrite.so should be loaded by default, but you will need to add= the entry for loading mod_fastcgi.so >>>=20 >>> LoadModule rewrite_module libexec/apache2/mod_rewrite.so >>> LoadModule fastcgi_module libexec/apache2/mod_fastcgi.so >>>=20 >>> Step 7: >>> Open your httpd_server_app.conf and add these lines... >>>=20 >>> <#----------------------- >>> >>> FastCGIServer /Library/Server/Web/Data/Sites//WebDNA= /WebDNA.fcgi -idle-timeout 60 -processes 1 >>> FastCGIServer /Library/Server/Web/Data/Sites//WebDNA= /WebDNA.fcgi -idle-timeout 60 -processes 1 >>> FastCGIServer /Library/Server/Web/Data/Sites//WebDNA= /WebDNA.fcgi -idle-timeout 60 -processes 1 >>> >>> #----------------------- >>>=20 >>> =E2=80=A6 I did this just after the following directive: >>>=20 >>> >>> =E2=80=A6 >>> >>>=20 >>> Step 8: >>> To hide some specific WebDNA-related files, add these lines in the httpd= _server_app.conf, just below the lines you added in Step 7. >>>=20 >>> #----------------------- >>> >>> Deny from all = =20 >>> >>> #----------------------- >>>=20 >>> Step 9: >>> Create a file to be included by your virtual hosts. To do this, follow t= hese steps: >>> 1. Create a directory called =E2=80=9Cwebdna_includes=E2=80=9D located a= t /Library/Server/Web/Config/apache2/ >>> 2. Set permissions on this directory to be system=3Dread/write,wheel=3Dr= eadonly,everyone=3Dreadonly >>> 3. Create a plain text file named =E2=80=9Cwebdna_vhost.conf=E2=80=9D in= side this directory with the following contents: >>>=20 >>> >>> Action webdna-fastcgi /WebDNA/WebDNA.fcgi >>> AddHandler webdna-fastcgi .dna >>> AddHandler webdna-fastcgi .html >>> >>>=20 >>> >>> RewriteEngine on >>> RewriteRule .* - [E=3DHTTP_AUTHORIZATION:%{HTTP:Authorization},L= ] >>> >>>=20 >>> NOTE: The reason you make the include file rather than put the directive= s directly in your virtual host configuration file is that Server.app will s= ometimes wipe these directives when reconfiguring web services. If you use t= he include file, Server.app will not touch the include call. >>>=20 >>> Step 10: >>> Edit each configuration file for your virtual hosts to include the call t= o the file you created in Step 9. The virtual host config files are located a= t /Library/Server/Web/Config/apache2/Sites/ and they take the form shown bel= ow for non-SSL sites and SSL-enabled sites, respectively. >>>=20 >>> 0000_X.X.X.X_80_.conf >>> 0000_X.X.X.X_443_.conf >>>=20 >>> So, open the virtual host config file and add the following line at the v= ery end just before the closing tag. >>>=20 >>> Include /Library/Server/Web/Config/apache2/webdna_includes/webdna_vh= ost.conf >>>=20 >>> Step 11: >>> Make sure that you add index.dna as a default index type for each WebDNA= -enabled site you host. Do this in Mavericks by opening Server.app, selectin= g Websites under Services in the left-side pane, open your domain to edit an= d then select the "edit" button next to "Index Files:". In the drop-down she= et, select + and add "index.dna" to the list. >>>=20 >>> Step 12: >>> Make sure =E2=80=9Cdna=E2=80=9D is included in your MIME types. To do th= is, edit the file =E2=80=9Cmime.types=E2=80=9D located at /private/etc/apach= e2/ and add the following line: >>>=20 >>> application/vnd.dna dna >>>=20 >>> Step 13: >>> Restart apache by toggling the Websites service Off/On or by typing the f= ollowing command in terminal.app >>>=20 >>> apachectl restart >>>=20 >>> Step 14: >>> Connect your browser to http://www.domain1.com/WebDNA/Admin/AdminPrefs.d= na to manage site1, >>> http://www.domain2.com/WebDNA/Admin/AdminPrefs.dna to manage site2 etc..= . >>>=20 >>> The default login is =E2=80=9Cadmin=E2=80=9D and the default password is= =E2=80=9Cadmin=E2=80=9D >>>=20 >>> If the login fails, verify that you have the following lines in your vir= tual host configuration file (either directly or via an include file): >>>=20 >>> >>> RewriteEngine on >>> RewriteRule .* - [E=3DHTTP_AUTHORIZATION:%{HTTP:Authorization},L= ] >>> >>>=20 >>> That should do it. >>>=20 >>> ------------------------------------------------------------------------= --------------- >>> --------------------------------------------------------- This message i= s sent to you because you are subscribed to the mailing list . To unsubscrib= e, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Report= ing: support@webdna.us >>=20 >> --------------------------------------------------------- This message is= sent to you because you are subscribed to the mailing list . To unsubscribe= , E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporti= ng: support@webdna.us >=20 > --------------------------------------------------------- This message is s= ent to you because you are subscribed to the mailing list . To unsubscribe, E= -mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting:= support@webdna.us --Apple-Mail-408925CE-0E20-4A49-9189-38C27EDE8AF3 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
I cheated. I changed the permissions o= n the conf file to read only. You can still edit the file later with vi usin= g the overwrite command. (wq!)

Hope that helps.&nbs= p;
Email me at 
Frank

On Feb 24, 2014= , at 9:44 PM, Palle Bo Nielsen <powerpalle@powerpalle.dk> wrote:

C.Frank Wolfe,

How did you manag= e to stop the server from rewriting the config file? This is my problem righ= t now.

/Palle


On 25/02/2014, at 07.57, C. Frank Wolfe <frank@cwolfe.com> wrote:

Bri= an,

Thanks for all your hard work and documentation.
= After I got the server to stop rewriting the app config file, this worked pe= rfectly.

Frank

On Jan 4, 20= 14, at 12:48 PM, Brian Wachter <bwachter@stoneport.com> wrote:

Installing WebDNA 7 on OSX Mavericks Server - Instructions
I just went through the process of upgrading my Mac Mini server from OS= X 10.8 Mtn Lion Server to 10.9 Mavericks Server, which broke my WebDNA inst= allation, so I wanted to bring this to the attention of anyone else who may b= e wanting to do the same thing. The two main culprits were:
  1. My Java Runtime installation was deleted with the= Mavericks installation
  2. My mod_fastcgi.so file got deleted with the Mave= ricks installation

I created detailed instructions for installing WebDNA 7 FastCGI under OSX 10= .9 Mavericks Server, which are posted below. Please note that this applies s= pecifically to Mavericks SERVER. The process is similar if you=E2=80=99re us= ing client, but the apache config files names and locations are a bit differ= ent. Hopefully this information is helpful to someone.

Brian Wachter

----------------------------------------------------------------------------= -----------
Date: January 4, 2014
Topic: WebDNA 7 FastCGI installation process for OSX Mavericks SERVER:

Step 1:
If you=E2=80=99re UPGRADING from an earlier version of OSX, first copy mod_f= astcgi.so located at /usr/libexec/apache2 since the Mavericks install will d= elete this file if it exists.

Step 2:
Install mod_fastcgi.so by placing a copy of the file at /usr/libexec/apache2= /
Set permissions on mod_fastcgi.so to be the same as other .so files in that d= irectory.
(i.e., system=3Dread/write,wheel=3Dreadonly,everyone=3Dreadonly)

Step 3:
Install JAVA for OS X 2013-005
This is Java Runtime Edition 6 (v1.6.0_65)
Verify the install by typing =E2=80=9Cjava -version=E2=80=9D at the terminal= command line
More information at: http://s= upport.apple.com/kb/DL1572
NOTE: At the time of this writing, Java Runtime 7 Update 45 is the latest ve= rsion available from the Oracle web site. However, this did not work and I r= everted to version 6. I=E2=80=99m not sure why, but I suspect it is an issue= with where Java is installed.

Step 4:
For EACH web site domain (i.e., virtual host), place a copy of the /WebDNA f= older here:
/Library/Server/Web/Data/Sites/<myDomainDirectory>/

Step 5:
Place a copy of WebDNA.fcgi executable inside each of the /WebDNA folders chmod 755 WebDNA.fcgi

Step 6:
Open your httpd_server_app.conf (/Library/Server/Web/Config/apache2/httpd_se= rver_app.conf) and make sure that both of the following modules are loaded. T= he mod_rewrite.so should be loaded by default, but you will need to add the e= ntry for loading mod_fastcgi.so

LoadModule rewrite_module     libexec/apache2/mod_rewrit= e.so
LoadModule fastcgi_module     libexec/apache2/mod_fastcg= i.so

Step 7:
Open your httpd_server_app.conf and add these lines...

<#-----------------------
<IfModule mod_fastcgi.c>
FastCGIServer /Library/Server/Web/Data/Sites/<myDomainDirectory1>/WebD= NA/WebDNA.fcgi -idle-timeout 60 -processes 1
FastCGIServer /Library/Server/Web/Data/Sites/<myDomainDirectory2>/WebD= NA/WebDNA.fcgi -idle-timeout 60 -processes 1
FastCGIServer /Library/Server/Web/Data/Sites/<myDomainDirectory3>/WebD= NA/WebDNA.fcgi -idle-timeout 60 -processes 1
</IfModule>
#-----------------------

=E2=80=A6 I did this just after the following directive:

<IfModule mime_module>
=E2=80=A6
</IfDefine>

Step 8:
To hide some specific WebDNA-related files, add these lines in the httpd_ser= ver_app.conf, just below the lines you added in Step 7.

#-----------------------
<FilesMatch  ".*\.(db|inc|conf|ini)$">
Deny from all           &n= bsp;            =             &nbs= p;            &n= bsp;            =   
</FilesMatch>
#-----------------------

Step 9:
Create a file to be included by your virtual hosts. To do this, follow these= steps:
1. Create a directory called =E2=80=9Cwebdna_includes=E2=80=9D located at /L= ibrary/Server/Web/Config/apache2/
2. Set permissions on this directory to be system=3Dread/write,wheel=3Dreado= nly,everyone=3Dreadonly
3. Create a plain text file named =E2=80=9Cwebdna_vhost.conf=E2=80=9D inside= this directory with the following contents:

    <IfModule mod_fastcgi.c>
        Action webdna-fastcgi /WebDN= A/WebDNA.fcgi
        AddHandler webdna-fastcgi .d= na
        AddHandler webdna-fastcgi .h= tml
    </IfModule>

    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteRule .* - [E=3DHTTP_A= UTHORIZATION:%{HTTP:Authorization},L]<= br>     </IfModule>

NOTE: The reason you make the include file rather than put the directives di= rectly in your virtual host configuration file is that Server.app will somet= imes wipe these directives when reconfiguring web services. If you use the i= nclude file, Server.app will not touch the include call.

Step 10:
Edit each configuration file for your virtual hosts to include the call to t= he file you created in Step 9. The virtual host config files are located at /= Library/Server/Web/Config/apache2/Sites/ and they take the form shown below f= or non-SSL sites and SSL-enabled sites, respectively.

0000_X.X.X.X_80_<myDomainDirectory>.conf
0000_X.X.X.X_443_<myDomainDirectory>.conf

So, open the virtual host config file and add the following line at the very= end just before the closing </VirtualHost> tag.

    Include /Library/Server/Web/Config/apache2/webdna_in= cludes/webdna_vhost.conf

Step 11:
Make sure that you add index.dna as a default index type for each WebDNA-ena= bled site you host. Do this in Mavericks by opening Server.app, selecting We= bsites under Services in the left-side pane, open your domain to edit and th= en select the "edit" button next to "Index Files:". In the drop-down sheet, s= elect + and add "index.dna" to the list.

Step 12:
Make sure =E2=80=9Cdna=E2=80=9D is included in your MIME types. To do this, e= dit the file =E2=80=9Cmime.types=E2=80=9D located at /private/etc/apache2/ a= nd add the following line:

application/vnd.dna    dna

Step 13:
Restart apache by toggling the Websites service Off/On or by typing the foll= owing command in terminal.app

apachectl restart

Step 14:
Connect your browser to http://www.domain1.com/WebDNA/Admin/AdminPrefs.dna to manage s= ite1,
http://www.do= main2.com/WebDNA/Admin/AdminPrefs.dna to manage site2 etc...

The default login is =E2=80=9Cadmin=E2=80=9D and the default password is =E2= =80=9Cadmin=E2=80=9D

If the login fails, verify that you have the following lines in your virtual= host configuration file (either directly or via an include file):

    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteRule .* - [E=3DHTTP_A= UTHORIZATION:%{HTTP:Authorization},L]<= br>     </IfModule>

That should do it.

----------------------------------------------------------------------------= -----------
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.= webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.= webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.= webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us
= --Apple-Mail-408925CE-0E20-4A49-9189-38C27EDE8AF3-- frank@cwolfe.com

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:

How to show via drop down menu? (2000) Denying access by IP address (2000) WebDNA > IM Client? (2004) Card clearance, problems - solutions? (1997) emailer don't work (1998) [OT] (waaaay OT) (2004) emptying shopping carts and orders folder (2004) Hiding Email Addresses (2003) WebCatalog2 Feature Feedback (1996) webdelivery.tmpl???? (1997) &FieldNametype=time unnecessary? (2000) Protect (1997) Image maps/Webcat (1997) emailer w/F2 (1997) WebSite and *NO* Authentication Dialog Box!!? (1998) WebDNA-Talk Digest mode broken (1997) Buying sans cart (1997) [Webcat 2]Next (1997) Formvariables and Sendmail? (2000) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)