[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.netI've done this so far:1)Download the http://www.webdna.us/download/WebCatalogEngine.zip and move it to your /cgi-binThe /WebCatalog directory does not exist anymore. Everything is inside /WebCatalogEngine2)Move the WebDNA.fcgi you want inside the WebCatalogEngine folder. Chmod 755.Linux glibcv2 64bits for RH, Fedora, and Centoshttp://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 / adminThis is a redirect problem solved by adding this to you httpd.conf(of course, the rewrite module must be active)#---------------------------------
RewriteEngine onRewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]#---------------------------------2.- If your webdna administration page does not load the imagesThis 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 +ExecCGIAddHandler fcgid-script .dnaFCGIWrapper /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 1Action webdna-fastcgi /cgi-bin/WebCatalogEngine/WebDNA.fcgiAddHandler webdna-fastcgi .dna .tpl .zarcRewriteEngine onRewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]#-----------------------5.- SuExecIf 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.2Mod FCGID5.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 .dnaThen 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 installHere 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.2Mod FCGID6.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/WebDNAMake 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.confPut the following text into both files:FcgidWrapper /home/testuser/WebDNA/WebDNA.fcgi .dna6.6.- Execute the following command as root:/scripts/ensure_vhost_includes --all-users6.7.- Repeat steps 4-6 for any additional users who want to use WebDNA.Thanks
Associated Messages, from the most recent to the oldest:
|
- [WebDNA] fastcgi on Centos 64bit (Rich Kwas 2010)
|
Trying to use fastcgi on a 64bit Centos setup I have over at VPN.netI've done this so far:1)Download the http://www.webdna.us/download/WebCatalogEngine.zip and move it to your /cgi-binThe /WebCatalog directory does not exist anymore. Everything is inside /WebCatalogEngine2)Move the WebDNA.fcgi you want inside the WebCatalogEngine folder. Chmod 755.Linux glibcv2 64bits for RH, Fedora, and Centoshttp://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 / adminThis is a redirect problem solved by adding this to you httpd.conf(of course, the rewrite module must be active)#---------------------------------
RewriteEngine onRewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]#---------------------------------2.- If your webdna administration page does not load the imagesThis 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 +ExecCGIAddHandler fcgid-script .dnaFCGIWrapper /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 1Action webdna-fastcgi /cgi-bin/WebCatalogEngine/WebDNA.fcgiAddHandler webdna-fastcgi .dna .tpl .zarcRewriteEngine onRewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]#-----------------------5.- SuExecIf 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.2Mod FCGID5.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 .dnaThen 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 installHere 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.2Mod FCGID6.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/WebDNAMake 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.confPut the following text into both files:FcgidWrapper /home/testuser/WebDNA/WebDNA.fcgi .dna6.6.- Execute the following command as root:/scripts/ensure_vhost_includes --all-users6.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:
Mac v. NT (1998)
Webcat and other cgi (2000)
WebCat2b15MacPlugin - showing [math] (1997)
credit card - Revised (1997)
SKU (1997)
Formating found categories (1997)
NEWBIE ? help with link (1998)
Follow-up to listfiles bug report ... (2003)
Help with getting rpm file (2002)
Mac 2.1b4 unknown error: BadSuffix (1997)
[WebDNA] Extracting contents of a div (2012)
Database Helper (1998)
Beta (?) version of WebCatalog 2.1 (1998)
WebCat2b15MacPlugin - [protect] (1997)
WebCatalog seems to choke on large (2meg) html files. (1998)
WebCat2final1 crashes (1997)
Extended [Convertchars] needed (1997)
Email Newsletters (2003)
This Code Kills My WebCatalog Dead (2003)
[WebDNA] making all fields on a form mandatory (2013)