[WebDNA] fastcgi on Centos 64bit

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105485
interpreted = N
texte = Trying to use fastcgi on a 64bit Centos setup I have over at VPN.net I've done this so far: 1) Download the http://www.webdna.us/download/WebCatalogEngine.zip and move it to your /cgi-bin The /WebCatalog directory does not exist anymore. Everything is inside /WebCatalogEngine 2) Move the WebDNA.fcgi you want inside the WebCatalogEngine folder. Chmod 755. Linux glibcv2 64bits for RH, Fedora, and Centos http://www.webdna.us/download/WebDNA-centos64.zip (actually it was emailed to me because I kept getting timeouts on downloads.....) 3) I then try and load the webdna admin page: http://www.domain.com/cgi-bin/WebCatalogEngine/Admin/AdminPrefs.dna (with my domain in the url of course.....) but I keep getting a "500 internal server error" I've always had the Windows version of webdna so being on centos with it is sorta new to me.... Should I be doing any of the following steps? I'd rather ask first before I dig deeper..... ==================================== 1.- If your page keeps requesting a login and password, though you are using the default admin / admin This is a redirect problem solved by adding this to you httpd.conf (of course, the rewrite module must be active) #--------------------------------- RewriteEngine on RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] #--------------------------------- 2.- If your webdna administration page does not load the images This problem is due to the ScriptAlias, that makes apache consider all the files in /cgi-bin as script. ScriptAlias is not needed anymore if you move your cgi-bin inside the vhost hierarchy. 3.- you can add this for security purpose; it will disallow apache display some files #--------------------------------- Deny from all #--------------------------------- 4.- These are several configuration suggestions: 4.1.- httpd.conf will load the FastCGI module with this line #--------------------------------- LoadModule fcgid_module modules/mod_fcgid.so #--------------------------------- 4.2.- you will also have had to add this line for a CentOS: #--------------------------------- SocketPath run/mod_fcgid #--------------------------------- Here the .htaccess on a CentOS server: #--------------------------------- Options All +ExecCGI AddHandler fcgid-script .dna FCGIWrapper /your-path-to/cgi-bin/WebCatalogEngine/WebDNA.fcgi .dna #--------------------------------- 4.3.- you will have this line in a FreeBSD: #--------------------------------- AllowOverrride All #--------------------------------- Here the .htaccess on a FreeBSD server: #--------------------------------- AddHandler fcgid-script .dna Action fcigd-script /cgi-bin/WebCatalogEngine/WebDNA.fcgi Options +ExecCGI FCGIWrapper /your-path-to/cgi-bin/WebCatalogEngine/WebDNA.fcgi .dna #--------------------------------- 4.5- OSX will just need this in the httpd.conf #----------------------- FastCGIServer /Library/WebServer/CGI-Executables/WebCatalogEngine/WebDNA.fcgi -idle-timeout 60 -processes 1 Action webdna-fastcgi /cgi-bin/WebCatalogEngine/WebDNA.fcgi AddHandler webdna-fastcgi .dna .tpl .zarc RewriteEngine on RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] #----------------------- 5.- SuExec If your server runs more than a single copy, then you should use SuExec to secure your installation: SuExec will make each WebDNA copy run under the UID:GID of the vhost it is installed in, and therefore, will have limited permissions. Here an example of how to setup suexec under cPanel; It might be a matter of doing this: 5.1.- Install WebDNA on the server in some location such as /opt/WebDNA . Make sure it is readable and executable by all users. 5.2.- Go into EasyApache in WHM. Click the button to "Start customizing based on profile". Be sure the following two options are selected, and then rebuild Apache: Apache 2.2 Mod FCGID 5.3.- Go into Apache Configuration in WHM. Click on "PHP and SuExec Configuration". Make sure that Apache suEXEC is set to "On". 5.4.- Go into Apache Configuration in WHM. Click on "Include Editor". Click "I wish to edit the Post VirtualHost configuration for" and then "All versions". Add the following line: FcgidWrapper /opt/WebDNA/WebDNA.fcgi .dna Then click Update. 5.5.- Go into Apache Configuration in WHM. Click on DirectoryIndex Priority. Click "Add". Type in "index.dna". Then click "Save". That might be it, although we have not tested yet. 6.- cPanel vhost install Here if you want to run one copy per vhost: 6.1.- Go into EasyApache in WHM. Click the button to "Start customizing based on profile". Be sure the following two options are selected, and then rebuild Apache: Apache 2.2 Mod FCGID 6.2.- Go into Apache Configuration in WHM. Click on "PHP and SuExec Configuration". Make sure that Apache suEXEC is set to "On". 6.3.- Go into Apache Configuration in WHM. Click on DirectoryIndex Priority. Click "Add". Type in "index.dna". Then click "Save". 6.4.) Install WebDNA on the server in the home directory of the user who wants to use it. As an example, if this is for user "testuser" who owns "testdomain.com", we would install it in: /home/testuser/WebDNA Make sure the files are owned by "testuser". 6.5.- As root, create two new files called: /usr/local/apache/conf/userdata/std/2/testuser/testdomain.com/webdna.conf /usr/local/apache/conf/userdata/ssl/2/testuser/testdomain.com/webdna.conf Put the following text into both files: FcgidWrapper /home/testuser/WebDNA/WebDNA.fcgi .dna 6.6.- Execute the following command as root: /scripts/ensure_vhost_includes --all-users 6.7.- Repeat steps 4-6 for any additional users who want to use WebDNA. Thanks Associated Messages, from the most recent to the oldest:

    
  1. [WebDNA] fastcgi on Centos 64bit (Rich Kwas 2010)
Trying to use fastcgi on a 64bit Centos setup I have over at VPN.net I've done this so far: 1) Download the http://www.webdna.us/download/WebCatalogEngine.zip and move it to your /cgi-bin The /WebCatalog directory does not exist anymore. Everything is inside /WebCatalogEngine 2) Move the WebDNA.fcgi you want inside the WebCatalogEngine folder. Chmod 755. Linux glibcv2 64bits for RH, Fedora, and Centos http://www.webdna.us/download/WebDNA-centos64.zip (actually it was emailed to me because I kept getting timeouts on downloads.....) 3) I then try and load the webdna admin page: http://www.domain.com/cgi-bin/WebCatalogEngine/Admin/AdminPrefs.dna (with my domain in the url of course.....) but I keep getting a "500 internal server error" I've always had the Windows version of webdna so being on centos with it is sorta new to me.... Should I be doing any of the following steps? I'd rather ask first before I dig deeper..... ==================================== 1.- If your page keeps requesting a login and password, though you are using the default admin / admin This is a redirect problem solved by adding this to you httpd.conf (of course, the rewrite module must be active) #--------------------------------- RewriteEngine on RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] #--------------------------------- 2.- If your webdna administration page does not load the images This problem is due to the ScriptAlias, that makes apache consider all the files in /cgi-bin as script. ScriptAlias is not needed anymore if you move your cgi-bin inside the vhost hierarchy. 3.- you can add this for security purpose; it will disallow apache display some files #--------------------------------- Deny from all #--------------------------------- 4.- These are several configuration suggestions: 4.1.- httpd.conf will load the FastCGI module with this line #--------------------------------- LoadModule fcgid_module modules/mod_fcgid.so #--------------------------------- 4.2.- you will also have had to add this line for a CentOS: #--------------------------------- SocketPath run/mod_fcgid #--------------------------------- Here the .htaccess on a CentOS server: #--------------------------------- Options All +ExecCGI AddHandler fcgid-script .dna FCGIWrapper /your-path-to/cgi-bin/WebCatalogEngine/WebDNA.fcgi .dna #--------------------------------- 4.3.- you will have this line in a FreeBSD: #--------------------------------- AllowOverrride All #--------------------------------- Here the .htaccess on a FreeBSD server: #--------------------------------- AddHandler fcgid-script .dna Action fcigd-script /cgi-bin/WebCatalogEngine/WebDNA.fcgi Options +ExecCGI FCGIWrapper /your-path-to/cgi-bin/WebCatalogEngine/WebDNA.fcgi .dna #--------------------------------- 4.5- OSX will just need this in the httpd.conf #----------------------- FastCGIServer /Library/WebServer/CGI-Executables/WebCatalogEngine/WebDNA.fcgi -idle-timeout 60 -processes 1 Action webdna-fastcgi /cgi-bin/WebCatalogEngine/WebDNA.fcgi AddHandler webdna-fastcgi .dna .tpl .zarc RewriteEngine on RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] #----------------------- 5.- SuExec If your server runs more than a single copy, then you should use SuExec to secure your installation: SuExec will make each WebDNA copy run under the UID:GID of the vhost it is installed in, and therefore, will have limited permissions. Here an example of how to setup suexec under cPanel; It might be a matter of doing this: 5.1.- Install WebDNA on the server in some location such as /opt/WebDNA . Make sure it is readable and executable by all users. 5.2.- Go into EasyApache in WHM. Click the button to "Start customizing based on profile". Be sure the following two options are selected, and then rebuild Apache: Apache 2.2 Mod FCGID 5.3.- Go into Apache Configuration in WHM. Click on "PHP and SuExec Configuration". Make sure that Apache suEXEC is set to "On". 5.4.- Go into Apache Configuration in WHM. Click on "Include Editor". Click "I wish to edit the Post VirtualHost configuration for" and then "All versions". Add the following line: FcgidWrapper /opt/WebDNA/WebDNA.fcgi .dna Then click Update. 5.5.- Go into Apache Configuration in WHM. Click on DirectoryIndex Priority. Click "Add". Type in "index.dna". Then click "Save". That might be it, although we have not tested yet. 6.- cPanel vhost install Here if you want to run one copy per vhost: 6.1.- Go into EasyApache in WHM. Click the button to "Start customizing based on profile". Be sure the following two options are selected, and then rebuild Apache: Apache 2.2 Mod FCGID 6.2.- Go into Apache Configuration in WHM. Click on "PHP and SuExec Configuration". Make sure that Apache suEXEC is set to "On". 6.3.- Go into Apache Configuration in WHM. Click on DirectoryIndex Priority. Click "Add". Type in "index.dna". Then click "Save". 6.4.) Install WebDNA on the server in the home directory of the user who wants to use it. As an example, if this is for user "testuser" who owns "testdomain.com", we would install it in: /home/testuser/WebDNA Make sure the files are owned by "testuser". 6.5.- As root, create two new files called: /usr/local/apache/conf/userdata/std/2/testuser/testdomain.com/webdna.conf /usr/local/apache/conf/userdata/ssl/2/testuser/testdomain.com/webdna.conf Put the following text into both files: FcgidWrapper /home/testuser/WebDNA/WebDNA.fcgi .dna 6.6.- Execute the following command as root: /scripts/ensure_vhost_includes --all-users 6.7.- Repeat steps 4-6 for any additional users who want to use WebDNA. Thanks Rich Kwas

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:

Using Plug-In while running 1.6.1 (1997) So, does anyone have developer editon running on Win XP (2006) [OT] DOD again (2003) problem (1998) append db weirdness (1999) Searchtitle (2000) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Number searching/formats (1998) WC Database Format (1997) Multiple Passwords (1997) Multiple Newcarts (1996) pictures / referrer etc. (1998) RE: what characters are replaced for tab and CR? (1998) Showing unopened cart (1997) Calendar (1997) [BULK] [WebDNA] [BULK] looking for the holy grail of hosting still (2013) date (2002) E-mailer error codes (1997) Format of Required fields error message (1997) New Command prefs ... (1997)