Support #242
closedcentos and apache2
0%
Description
Hello:
I'm having difficulty following the instructions for using wt in combination with apache and fastcgi on a centos desktop. I am hoping that you can provide some advice on this issue.
I've configured wt using
cmake -DCONNECTOR_FCGI=ON -DCONNECTOR_HTTP=OFF -DWEBUSER=www -DWEBGROUP=www ../wt-3.0.0/
and have installed using make install. I built the examples as well, and have used deploy.sh to deploy the hello.wt example into /var/www/html/wt/hello.
I then installed mod_fastcgi v2.4.6 and modified my httpd.conf file to include the following lines:
LoadModule fastcgi_module modules/mod_fastcgi.so
FastCgiIpcDir /tmp/fastcgi
AddHandler cgi-script .pl
AddHandler fcgi-script .wt
Options ExecCGI
Allow from all
I created the file /etc/http/conf.d/20_mod_fastcgi.conf with contents
FastCgiServer /var/www/html/wt/hello/hello.wt
I then restarted httpd using /usr/sbin/apachectl. When I direct my local browser to
http://elgar.tosc.com/wt/hello/hello.wt
I receive an internal server error over the browser. The tail of my apache error log is appended at the bottom of this email.
To me, it seems as though apache has attempted to start the service, but that there are required arguments to hello.wt that aren't being passed at invocation. Specifically, when I run it off the command line, I get the same error messages that are embedded in the apache error_log:
stat: No such file or directory
Document root ("") not valid.
These seem to suggest that the docroot should be specified as an arg to the executable hello.wt.
Have I done something incorrect in the installation process that would lead to this condition?
Sincerely yours
Matthew Britton
* Apache error_log*
*
[Tue Dec 15 14:17:33 2009] [notice] caught SIGTERM, shutting down
[Tue Dec 15 14:17:34 2009] [notice] Digest: generating secret for digest authentication ...
[Tue Dec 15 14:17:34 2009] [notice] Digest: done
[Tue Dec 15 14:17:34 2009] [notice] FastCGI: process manager initialized (pid 16906)
stat: No such file or directory
Document root ("") not valid.
[Tue Dec 15 14:17:34 2009] [warn] FastCGI: server "/var/www/html/wt/hello/hello.wt" started (pid 16907)
[Tue Dec 15 14:17:34 2009] [warn] FastCGI: server "/var/www/html/wt/hello/hello.wt" (pid 16907) terminated by calling exit with status '1'
[Tue Dec 15 14:17:34 2009] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue Dec 15 14:17:34 2009] [notice] Apache/2.2.3 (CentOS) configured --- resuming normal operations
[Tue Dec 15 14:17:39 2009] [warn] FastCGI: server "/var/www/html/wt/hello/hello.wt" restarted (pid 16918)
stat: No such file or directory
Document root ("") not valid.
[Tue Dec 15 14:17:39 2009] [warn] FastCGI: server "/var/www/html/wt/hello/hello.wt" (pid 16918) terminated by calling exit with status '1'
[Tue Dec 15 14:17:44 2009] [warn] FastCGI: server "/var/www/html/wt/hello/hello.wt" restarted (pid 16919)
stat: No such file or directory
Document root ("") not valid.
[Tue Dec 15 14:17:44 2009] [warn] FastCGI: server "/var/www/html/wt/hello/hello.wt" (pid 16919) terminated by calling exit with status '1'
[Tue Dec 15 14:17:49 2009] [warn] FastCGI: server "/var/www/html/wt/hello/hello.wt" restarted (pid 16921)
stat: No such file or directory
Document root ("") not valid.
[Tue Dec 15 14:17:49 2009] [warn] FastCGI: server "/var/www/html/wt/hello/hello.wt" (pid 16921) terminated by calling exit with status '1'
[Tue Dec 15 14:17:49 2009] [warn] FastCGI: server "/var/www/html/wt/hello/hello.wt" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Tue Dec 15 14:18:18 2009] [error] [client 127.0.0.1] FastCGI: comm with server "/var/www/html/wt/hello/hello.wt" aborted: idle timeout (30 sec), referer: http://elgar.tosc.com/
[Tue Dec 15 14:18:18 2009] [error] [client 127.0.0.1] FastCGI: incomplete headers (0 bytes) received from server "/var/www/html/wt/hello/hello.wt", referer: http://elgar.tosc.com/
[Tue Dec 15 14:22:49 2009] [warn] FastCGI: server "/var/www/html/wt/hello/hello.wt" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
Updated by Koen Deforche over 15 years ago
- Status changed from New to Resolved
Hey,
You need to also have EXAMPLES_CONNECTOR=wtfcgi.
From your logs its seems that your application was linked against the standalone httpd (meaning it is a standalone application).
Updated by Koen Deforche over 15 years ago
- Status changed from Resolved to Closed