Re: [WebDNA] Apache configuration fail when...

This WebDNA talk-list message is from

2013


It keeps the original formatting.
numero = 110267
interpreted = N
texte = --Apple-Mail=_2E02C700-31EE-47C7-91E9-DD3839BA7B77 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=windows-1252 It was not in the ReadMe file, as far as i can see: --Apple-Mail=_2E02C700-31EE-47C7-91E9-DD3839BA7B77 Content-Disposition: attachment; filename=README.txt Content-Type: text/plain; name="README.txt" Content-Transfer-Encoding: quoted-printable Here the installation process for OSX Snow Leopard (1), OSX Snow Leopard = Server (2), LION (3), LION server (4) with a lighttpd configuration = example (5). 1.- OSX Snow Leopard Move the /WebDNA folder inside /Library/WebServer/Documents/ (this is = the root of your webserver under OSX) Move WebDNA.fcgi executable inside /Library/WebServer/Documents/WebDNA chmod 755 /Library/WebServer/Documents/WebDNA/WebDNA.fcgi Make sure all your WebDNA files are running under you apache UID and GID (User and Group ID)" in your terminal (as root) type cd /Library/WebServer/Documents/WebDNA/ chown -R _www:_www * Then check 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 Then add these lines: #----------------------- FastCGIServer /Library/WebServer/Documents/WebDNA/WebDNA.fcgi = -idle-timeout 60 -processes 1 Action webdna-fastcgi /WebDNA/WebDNA.fcgi=20 AddHandler webdna-fastcgi .dna RewriteEngine on RewriteRule .* - [E=3DHTTP_AUTHORIZATION:%{HTTP:Authorization},L] Deny from all = =20 #----------------------- Restart, using your System Prederences > Sharing > Web Sharing (this = stops and starts both apache AND WebDNA.fcgi) connect your browser to http://localhost/WebDNA/Admin/AdminPrefs.dna login and pass admin/admin That's it! 2.- OSX Snow Leopard 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 Make sure all your WebDNA files are running under you apache UID and GID (User and Group ID)" in your terminal (as root) type cd /Library/WebServer/Documents/WebDNA/ chown -R _www:_www * 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 why we do not need anymore the WebDNAMonitor from the previous = versions) either with apachectl restart or using your administration GUI. 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! 3.- OSX Lion Lion is missing mod_fastcgi.so It can be recovered from Snow Leopard Put 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=3Dread/write,wheel=3Dreadonly,everyone=3Dreadonly)=20 Move the /WebDNA folder inside /Library/WebServer/Documents/ (this is = the root of your webserver under OSX) Move WebDNA.fcgi executable inside /Library/WebServer/Documents/WebDNA chmod 755 /Library/WebServer/Documents/WebDNA/WebDNA.fcgi Make sure all your WebDNA files are running under you apache UID and GID (User and Group ID)" in your terminal (as root) type cd /Library/WebServer/Documents/WebDNA/ chown -R _www:_www * Then check 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 Then add these lines: #----------------------- FastCGIServer /Library/WebServer/Documents/WebDNA/WebDNA.fcgi = -idle-timeout 60 -processes 1 Action webdna-fastcgi /WebDNA/WebDNA.fcgi=20 AddHandler webdna-fastcgi .dna RewriteEngine on RewriteRule .* - [E=3DHTTP_AUTHORIZATION:%{HTTP:Authorization},L] Deny from all = =20 #----------------------- Restart, using your System Prederences > Sharing > Web Sharing (this = stops and starts both apache AND WebDNA.fcgi) connect your browser to http://localhost/WebDNA/Admin/AdminPrefs.dna login and pass admin/admin That's it! 4.- OSX Lion Server Lion is missing mod_fastcgi.so It can be recovered from Snow Leopard Put 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=3Dread/write,wheel=3Dreadonly,everyone=3Dreadonly)=20 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 a copy of WebDNA.fcgi executable inside the /WebDNA folders chmod 755 WebDNA.fcgi Make sure all your WebDNA files are running under you apache UID and GID (User and Group ID)" in your terminal (as root) type cd /Library/WebServer/Documents/WebDNA/ chown -R _www:_www * 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) Setup your websites through the server admin tool: you must specify your = domain names and the path to the directory folders (ie: = /Library/WebServer/Documents/www.domain1.com) and check "webserver on". = Then you have to restart apache from your "System Preferences > web = sharing" - edit /etc/apache2/httpd.conf, add these lines. If you do not want to = setup your vhosts in the LION admin tool, then write it 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. Be careful that OSX Lion Server will disable what you have done if = WebSharing is not "on": it will place your configuration within and the configuration settings are completely ineffective. So, turn it = "on"... 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/0000_X.X.X.X_80_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 why we do not need anymore the WebDNAMonitor from the previous = versions) either with apachectl restart or using your administration GUI. 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! 5.- OS X LIGHTTPD version /Library/LightTPD/lighttpd.conf server.modules =3D ( "mod_access", "mod_cgi", "mod_fastcgi", "mod_compress", "mod_accesslog"=20 ) server.port =3D 80 server.username =3D "www" server.groupname =3D "www" server.pid-file =3D "/var/run/lighttpd.pid" server.document-root =3D "/Library/WebServer/Documents/www.domain1.com/" server.errorlog =3D "/Library/Logs/LightTPD/domain1-error.log" accesslog.format =3D "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" = \"%{User-Agent}i\"" accesslog.filename =3D "/Library/Logs/LightTPD/domain1-access.log" index-file.names =3D ( "index.html", "index.htm" ) mimetype.assign =3D ( ".pdf" =3D> "application/pdf", ".sig" =3D> "application/pgp-signature", ".spl" =3D> "application/futuresplash", ".class" =3D> "application/octet-stream", ".ps" =3D> "application/postscript", ".torrent" =3D> "application/x-bittorrent", ".dvi" =3D> "application/x-dvi", ".gz" =3D> "application/x-gzip", ".pac" =3D> "application/x-ns-proxy-autoconfig", ".swf" =3D> "application/x-shockwave-flash", ".tar.gz" =3D> "application/x-tgz", ".tgz" =3D> "application/x-tgz", ".tar" =3D> "application/x-tar", ".zip" =3D> "application/zip", ".mp3" =3D> "audio/mpeg", ".m3u" =3D> "audio/x-mpegurl", ".wma" =3D> "audio/x-ms-wma", ".wax" =3D> "audio/x-ms-wax", ".ogg" =3D> "application/ogg", ".wav" =3D> "audio/x-wav", ".gif" =3D> "image/gif", ".jpg" =3D> "image/jpeg", ".jpeg" =3D> "image/jpeg", ".png" =3D> "image/png", ".xbm" =3D> "image/x-xbitmap", ".xpm" =3D> "image/x-xpixmap", ".xwd" =3D> "image/x-xwindowdump", ".css" =3D> "text/css", ".html" =3D> "text/html", ".htm" =3D> "text/html", ".dna" =3D> "text/html", ".js" =3D> "text/javascript", ".asc" =3D> "text/plain", ".c" =3D> "text/plain", ".cpp" =3D> "text/plain", ".log" =3D> "text/plain", ".conf" =3D> "text/plain", ".text" =3D> "text/plain", ".txt" =3D> "text/plain", ".dtd" =3D> "text/xml", ".xml" =3D> "text/xml", ".mpeg" =3D> "video/mpeg", ".mpg" =3D> "video/mpeg", ".mov" =3D> "video/quicktime", ".qt" =3D> "video/quicktime", ".avi" =3D> "video/x-msvideo", ".asf" =3D> "video/x-ms-asf", ".asx" =3D> "video/x-ms-asf", ".wmv" =3D> "video/x-ms-wmv", ".bz2" =3D> "application/x-bzip", ".tbz" =3D> "application/x-bzip-compressed-tar", ".tar.bz2" =3D> "application/x-bzip-compressed-tar" ) static-file.exclude-extensions =3D ( ".fcgi", ".php", ".dna", ".rb", "~", ".inc", ".dat", ".db", = ".conf", ".ini" ) url.access-deny =3D ( "~", ".inc", ".dat", ".db", ".conf", ".ini") fastcgi.server =3D ( ".dna" =3D> ( "localhost" =3D> ( "bin-path" =3D> = "/Library/WebServer/Documents/www.domain1.com/WebDNA/WebDNA.fcgi", "socket" =3D> "/tmp/dna-fastcgi-0.socket", "max-procs" =3D> 1, "broken-scriptfilename" =3D> "enable", "check-local" =3D> "disable", ) ) )=20 # DOMAIN2 = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D $HTTP["host"] =3D~ "www\.domain2\.com" { server.document-root =3D = "/Library/WebServer/Documents/www.domain2.com/" server.errorlog =3D "/Library/Logs/LightTPD/domain2-error.log" accesslog.filename =3D "/Library/Logs/LightTPD/domain2-access.log" fastcgi.server =3D ( ".dna" =3D> ( "localhost" =3D>=20 (=20 "bin-path" =3D> = "/Library/WebServer/Documents/www.domain2.com/WebDNA/WebDNA.fcgi", "socket" =3D> "/tmp/dna-fastcgi-1.socket", "max-procs" =3D> 1, "broken-scriptfilename" =3D> "enable", "check-local" =3D> "disable" ) ) ) } --Apple-Mail=_2E02C700-31EE-47C7-91E9-DD3839BA7B77 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 - chris On Mar 18, 2013, at 21:58, Palle Bo Nielsen = wrote: > You might want to remove this from your install doc to avoid any = future copy/paste Error 40 happenings :) >=20 > /Palle >=20 >=20 > On 18/03/2013, at 19.41, christophe.billiottet@webdna.us wrote: >=20 >> oh, right! it was the extra "<" before the first line. >>=20 >> - chris >>=20 >>=20 >> On Mar 18, 2013, at 21:31, Palle Bo Nielsen = wrote: >>=20 >>> Dear all, >>>=20 >>> Thanks for the feedback, but I managed to solve it ( I think )... >>>=20 >>> My original mission was to get this working, but it did not work. = Apache did not like it. >>>=20 >>> <#----------------------- >>> >>> FastCGIServer = /Library/Server/Web/Data/Sites/1.qt.dk/WebDNA/WebDNA.fcgi -idle-timeout = 60 -processes 1 >>> FastCGIServer = /Library/Server/Web/Data/Sites/2.qt.dk/WebDNA/WebDNA.fcgi -idle-timeout = 60 -processes 1 >>> Action webdna-fastcgi /WebDNA/WebDNA.fcgi >>> AddHandler webdna-fastcgi .dna >>> >>> #----------------------- >>>=20 >>> So after much analysis and getting around I removed the following = lines... >>>=20 >>> <#----------------------- >>> and >>> #----------------------- >>>=20 >>> and then, the remaining code worked. >>>=20 >>> >>> FastCGIServer = /Library/Server/Web/Data/Sites/1.qt.dk/WebDNA/WebDNA.fcgi -idle-timeout = 60 -processes 1 >>> FastCGIServer = /Library/Server/Web/Data/Sites/2.qt.dk/WebDNA/WebDNA.fcgi -idle-timeout = 60 -processes 1 >>> Action webdna-fastcgi /WebDNA/WebDNA.fcgi >>> AddHandler webdna-fastcgi .dna >>> >>>=20 >>> ...and WebDNA was interpreted as expected... >>>=20 >>> Just one of those things :) >>>=20 >>> /Palle >>>=20 >>>=20 >>>=20 >>> On 18/03/2013, at 11.18, christophe.billiottet@webdna.us wrote: >>>=20 >>>> Hi Palle, give us privately (support@webdna.us) a ssh access to = your server and we will fix it. It cannot be something complicated, = except if you use a personalized configuration (for instance external = drive for your websites=85) >>>>=20 >>>> - chris >>>>=20 >>>> On Mar 17, 2013, at 22:31, Palle Bo Nielsen = wrote: >>>>=20 >>>>> Hi all, >>>>>=20 >>>>> Looking for some help here... >>>>>=20 >>>>> Mac OS X Server 10.8.3 (Mountain Lion) with the most recent = FastCGI installed and using the Mac OS X Server App. >>>>>=20 >>>>> But every time i get to the place where this (see below) is = entered into the Apache configuration file the Apache server stops = responding... >>>>>=20 >>>>> <#----------------------- >>>>> >>>>> FastCGIServer = /Library/Server/Web/Data/Sites/1.qt.dk/WebDNA/WebDNA.fcgi -idle-timeout = 60 -processes 1 >>>>> FastCGIServer = /Library/Server/Web/Data/Sites/2.qt.dk/WebDNA/WebDNA.fcgi -idle-timeout = 60 -processes 1 >>>>> Action webdna-fastcgi /WebDNA/WebDNA.fcgi >>>>> AddHandler webdna-fastcgi .dna >>>>> >>>>> #----------------------- >>>>>=20 >>>>>=20 >>>>>=20 >>>>> Crossing my fingers ... >>>>>=20 >>>>> /Palle--------------------------------------------------------- >>>>> 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 >>>>=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 Reporting: 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 Reporting: = 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 Reporting: 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 Reporting: support@webdna.us --Apple-Mail=_2E02C700-31EE-47C7-91E9-DD3839BA7B77-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Apache configuration fail when... (Palle Bo Nielsen 2013)
  2. Re: [WebDNA] Apache configuration fail when... (christophe.billiottet@webdna.us 2013)
  3. Re: [WebDNA] Apache configuration fail when... (Palle Bo Nielsen 2013)
  4. Re: [WebDNA] Apache configuration fail when... (christophe.billiottet@webdna.us 2013)
  5. Re: [WebDNA] Apache configuration fail when... (Palle Bo Nielsen 2013)
  6. Re: [WebDNA] Apache configuration fail when... (christophe.billiottet@webdna.us 2013)
  7. [WebDNA] Apache configuration fail when... (Palle Bo Nielsen 2013)
--Apple-Mail=_2E02C700-31EE-47C7-91E9-DD3839BA7B77 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=windows-1252 It was not in the ReadMe file, as far as i can see: --Apple-Mail=_2E02C700-31EE-47C7-91E9-DD3839BA7B77 Content-Disposition: attachment; filename=README.txt Content-Type: text/plain; name="README.txt" Content-Transfer-Encoding: quoted-printable Here the installation process for OSX Snow Leopard (1), OSX Snow Leopard = Server (2), LION (3), LION server (4) with a lighttpd configuration = example (5). 1.- OSX Snow Leopard Move the /WebDNA folder inside /Library/WebServer/Documents/ (this is = the root of your webserver under OSX) Move WebDNA.fcgi executable inside /Library/WebServer/Documents/WebDNA chmod 755 /Library/WebServer/Documents/WebDNA/WebDNA.fcgi Make sure all your WebDNA files are running under you apache UID and GID (User and Group ID)" in your terminal (as root) type cd /Library/WebServer/Documents/WebDNA/ chown -R _www:_www * Then check 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 Then add these lines: #----------------------- FastCGIServer /Library/WebServer/Documents/WebDNA/WebDNA.fcgi = -idle-timeout 60 -processes 1 Action webdna-fastcgi /WebDNA/WebDNA.fcgi=20 AddHandler webdna-fastcgi .dna RewriteEngine on RewriteRule .* - [E=3DHTTP_AUTHORIZATION:%{HTTP:Authorization},L] Deny from all = =20 #----------------------- Restart, using your System Prederences > Sharing > Web Sharing (this = stops and starts both apache AND WebDNA.fcgi) connect your browser to http://localhost/WebDNA/Admin/AdminPrefs.dna login and pass admin/admin That's it! 2.- OSX Snow Leopard 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 Make sure all your WebDNA files are running under you apache UID and GID (User and Group ID)" in your terminal (as root) type cd /Library/WebServer/Documents/WebDNA/ chown -R _www:_www * 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 why we do not need anymore the WebDNAMonitor from the previous = versions) either with apachectl restart or using your administration GUI. 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! 3.- OSX Lion Lion is missing mod_fastcgi.so It can be recovered from Snow Leopard Put 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=3Dread/write,wheel=3Dreadonly,everyone=3Dreadonly)=20 Move the /WebDNA folder inside /Library/WebServer/Documents/ (this is = the root of your webserver under OSX) Move WebDNA.fcgi executable inside /Library/WebServer/Documents/WebDNA chmod 755 /Library/WebServer/Documents/WebDNA/WebDNA.fcgi Make sure all your WebDNA files are running under you apache UID and GID (User and Group ID)" in your terminal (as root) type cd /Library/WebServer/Documents/WebDNA/ chown -R _www:_www * Then check 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 Then add these lines: #----------------------- FastCGIServer /Library/WebServer/Documents/WebDNA/WebDNA.fcgi = -idle-timeout 60 -processes 1 Action webdna-fastcgi /WebDNA/WebDNA.fcgi=20 AddHandler webdna-fastcgi .dna RewriteEngine on RewriteRule .* - [E=3DHTTP_AUTHORIZATION:%{HTTP:Authorization},L] Deny from all = =20 #----------------------- Restart, using your System Prederences > Sharing > Web Sharing (this = stops and starts both apache AND WebDNA.fcgi) connect your browser to http://localhost/WebDNA/Admin/AdminPrefs.dna login and pass admin/admin That's it! 4.- OSX Lion Server Lion is missing mod_fastcgi.so It can be recovered from Snow Leopard Put 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=3Dread/write,wheel=3Dreadonly,everyone=3Dreadonly)=20 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 a copy of WebDNA.fcgi executable inside the /WebDNA folders chmod 755 WebDNA.fcgi Make sure all your WebDNA files are running under you apache UID and GID (User and Group ID)" in your terminal (as root) type cd /Library/WebServer/Documents/WebDNA/ chown -R _www:_www * 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) Setup your websites through the server admin tool: you must specify your = domain names and the path to the directory folders (ie: = /Library/WebServer/Documents/www.domain1.com) and check "webserver on". = Then you have to restart apache from your "System Preferences > web = sharing" - edit /etc/apache2/httpd.conf, add these lines. If you do not want to = setup your vhosts in the LION admin tool, then write it 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. Be careful that OSX Lion Server will disable what you have done if = WebSharing is not "on": it will place your configuration within and the configuration settings are completely ineffective. So, turn it = "on"... 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/0000_X.X.X.X_80_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 why we do not need anymore the WebDNAMonitor from the previous = versions) either with apachectl restart or using your administration GUI. 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! 5.- OS X LIGHTTPD version /Library/LightTPD/lighttpd.conf server.modules =3D ( "mod_access", "mod_cgi", "mod_fastcgi", "mod_compress", "mod_accesslog"=20 ) server.port =3D 80 server.username =3D "www" server.groupname =3D "www" server.pid-file =3D "/var/run/lighttpd.pid" server.document-root =3D "/Library/WebServer/Documents/www.domain1.com/" server.errorlog =3D "/Library/Logs/LightTPD/domain1-error.log" accesslog.format =3D "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" = \"%{User-Agent}i\"" accesslog.filename =3D "/Library/Logs/LightTPD/domain1-access.log" index-file.names =3D ( "index.html", "index.htm" ) mimetype.assign =3D ( ".pdf" =3D> "application/pdf", ".sig" =3D> "application/pgp-signature", ".spl" =3D> "application/futuresplash", ".class" =3D> "application/octet-stream", ".ps" =3D> "application/postscript", ".torrent" =3D> "application/x-bittorrent", ".dvi" =3D> "application/x-dvi", ".gz" =3D> "application/x-gzip", ".pac" =3D> "application/x-ns-proxy-autoconfig", ".swf" =3D> "application/x-shockwave-flash", ".tar.gz" =3D> "application/x-tgz", ".tgz" =3D> "application/x-tgz", ".tar" =3D> "application/x-tar", ".zip" =3D> "application/zip", ".mp3" =3D> "audio/mpeg", ".m3u" =3D> "audio/x-mpegurl", ".wma" =3D> "audio/x-ms-wma", ".wax" =3D> "audio/x-ms-wax", ".ogg" =3D> "application/ogg", ".wav" =3D> "audio/x-wav", ".gif" =3D> "image/gif", ".jpg" =3D> "image/jpeg", ".jpeg" =3D> "image/jpeg", ".png" =3D> "image/png", ".xbm" =3D> "image/x-xbitmap", ".xpm" =3D> "image/x-xpixmap", ".xwd" =3D> "image/x-xwindowdump", ".css" =3D> "text/css", ".html" =3D> "text/html", ".htm" =3D> "text/html", ".dna" =3D> "text/html", ".js" =3D> "text/javascript", ".asc" =3D> "text/plain", ".c" =3D> "text/plain", ".cpp" =3D> "text/plain", ".log" =3D> "text/plain", ".conf" =3D> "text/plain", ".text" =3D> "text/plain", ".txt" =3D> "text/plain", ".dtd" =3D> "text/xml", ".xml" =3D> "text/xml", ".mpeg" =3D> "video/mpeg", ".mpg" =3D> "video/mpeg", ".mov" =3D> "video/quicktime", ".qt" =3D> "video/quicktime", ".avi" =3D> "video/x-msvideo", ".asf" =3D> "video/x-ms-asf", ".asx" =3D> "video/x-ms-asf", ".wmv" =3D> "video/x-ms-wmv", ".bz2" =3D> "application/x-bzip", ".tbz" =3D> "application/x-bzip-compressed-tar", ".tar.bz2" =3D> "application/x-bzip-compressed-tar" ) static-file.exclude-extensions =3D ( ".fcgi", ".php", ".dna", ".rb", "~", ".inc", ".dat", ".db", = ".conf", ".ini" ) url.access-deny =3D ( "~", ".inc", ".dat", ".db", ".conf", ".ini") fastcgi.server =3D ( ".dna" =3D> ( "localhost" =3D> ( "bin-path" =3D> = "/Library/WebServer/Documents/www.domain1.com/WebDNA/WebDNA.fcgi", "socket" =3D> "/tmp/dna-fastcgi-0.socket", "max-procs" =3D> 1, "broken-scriptfilename" =3D> "enable", "check-local" =3D> "disable", ) ) )=20 # DOMAIN2 = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D $HTTP["host"] =3D~ "www\.domain2\.com" { server.document-root =3D = "/Library/WebServer/Documents/www.domain2.com/" server.errorlog =3D "/Library/Logs/LightTPD/domain2-error.log" accesslog.filename =3D "/Library/Logs/LightTPD/domain2-access.log" fastcgi.server =3D ( ".dna" =3D> ( "localhost" =3D>=20 (=20 "bin-path" =3D> = "/Library/WebServer/Documents/www.domain2.com/WebDNA/WebDNA.fcgi", "socket" =3D> "/tmp/dna-fastcgi-1.socket", "max-procs" =3D> 1, "broken-scriptfilename" =3D> "enable", "check-local" =3D> "disable" ) ) ) } --Apple-Mail=_2E02C700-31EE-47C7-91E9-DD3839BA7B77 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 - chris On Mar 18, 2013, at 21:58, Palle Bo Nielsen = wrote: > You might want to remove this from your install doc to avoid any = future copy/paste Error 40 happenings :) >=20 > /Palle >=20 >=20 > On 18/03/2013, at 19.41, christophe.billiottet@webdna.us wrote: >=20 >> oh, right! it was the extra "<" before the first line. >>=20 >> - chris >>=20 >>=20 >> On Mar 18, 2013, at 21:31, Palle Bo Nielsen = wrote: >>=20 >>> Dear all, >>>=20 >>> Thanks for the feedback, but I managed to solve it ( I think )... >>>=20 >>> My original mission was to get this working, but it did not work. = Apache did not like it. >>>=20 >>> <#----------------------- >>> >>> FastCGIServer = /Library/Server/Web/Data/Sites/1.qt.dk/WebDNA/WebDNA.fcgi -idle-timeout = 60 -processes 1 >>> FastCGIServer = /Library/Server/Web/Data/Sites/2.qt.dk/WebDNA/WebDNA.fcgi -idle-timeout = 60 -processes 1 >>> Action webdna-fastcgi /WebDNA/WebDNA.fcgi >>> AddHandler webdna-fastcgi .dna >>> >>> #----------------------- >>>=20 >>> So after much analysis and getting around I removed the following = lines... >>>=20 >>> <#----------------------- >>> and >>> #----------------------- >>>=20 >>> and then, the remaining code worked. >>>=20 >>> >>> FastCGIServer = /Library/Server/Web/Data/Sites/1.qt.dk/WebDNA/WebDNA.fcgi -idle-timeout = 60 -processes 1 >>> FastCGIServer = /Library/Server/Web/Data/Sites/2.qt.dk/WebDNA/WebDNA.fcgi -idle-timeout = 60 -processes 1 >>> Action webdna-fastcgi /WebDNA/WebDNA.fcgi >>> AddHandler webdna-fastcgi .dna >>> >>>=20 >>> ...and WebDNA was interpreted as expected... >>>=20 >>> Just one of those things :) >>>=20 >>> /Palle >>>=20 >>>=20 >>>=20 >>> On 18/03/2013, at 11.18, christophe.billiottet@webdna.us wrote: >>>=20 >>>> Hi Palle, give us privately (support@webdna.us) a ssh access to = your server and we will fix it. It cannot be something complicated, = except if you use a personalized configuration (for instance external = drive for your websites=85) >>>>=20 >>>> - chris >>>>=20 >>>> On Mar 17, 2013, at 22:31, Palle Bo Nielsen = wrote: >>>>=20 >>>>> Hi all, >>>>>=20 >>>>> Looking for some help here... >>>>>=20 >>>>> Mac OS X Server 10.8.3 (Mountain Lion) with the most recent = FastCGI installed and using the Mac OS X Server App. >>>>>=20 >>>>> But every time i get to the place where this (see below) is = entered into the Apache configuration file the Apache server stops = responding... >>>>>=20 >>>>> <#----------------------- >>>>> >>>>> FastCGIServer = /Library/Server/Web/Data/Sites/1.qt.dk/WebDNA/WebDNA.fcgi -idle-timeout = 60 -processes 1 >>>>> FastCGIServer = /Library/Server/Web/Data/Sites/2.qt.dk/WebDNA/WebDNA.fcgi -idle-timeout = 60 -processes 1 >>>>> Action webdna-fastcgi /WebDNA/WebDNA.fcgi >>>>> AddHandler webdna-fastcgi .dna >>>>> >>>>> #----------------------- >>>>>=20 >>>>>=20 >>>>>=20 >>>>> Crossing my fingers ... >>>>>=20 >>>>> /Palle--------------------------------------------------------- >>>>> 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 >>>>=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 Reporting: 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 Reporting: = 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 Reporting: 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 Reporting: support@webdna.us --Apple-Mail=_2E02C700-31EE-47C7-91E9-DD3839BA7B77-- 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:

Resume Catalog ? (1997) Cookies and webcat (1997) WebCat2final1 crashes (1997) Tuition - UK (2000) Configuring E-mail (1997) multiple search commands (1997) More on the email templates (1997) Unable to view next 101-200 (1997) select multiple (1997) More than one db with the same namn (was: WC2f3) (1997) Generating unique SKU from [cart] (1997) Setting up shop (1997) [Webcat 2]Next (1997) Are you an WC expert? (1997) users change an email address (2002) Relay link (2002) Help name our technology! I found it (1997) [ReturnRaw] and hiding FORM data (2003) WebCatalog for guestbook ? (1997) Summing fields (1997)