problems with FastCGI in XAMPP + Ruby on Rails

Problems with the Windows version of XAMPP, questions, comments, and anything related.

problems with FastCGI in XAMPP + Ruby on Rails

Postby Irix » 01. February 2006 13:02

first...
i've the latest version of XAMPP with the perl addon...

for the install of the ruby on rails i've follow this link: http://mpcon.org/apacheguide/ruby.php;
and the link for install ruby on rails that i was follow is:
http://electricvisions.com/rails.html.

but... when i've enable the following code in the httpd.conf

#LoadModule fastcgi_module modules/mod_fastcgi.so
(or #LoadModule fastcgi_module modules/mod_fastcgi.dll of the project page)

and then, i'm refresh in the XAMPP control panel... automaticaly the apache server was stopped!

can any person help me with this thread! (installing the fastcgi module or if have more information in how i can install the mod_ruby in XAMPP).

more info...

i'm create two instances or config in the httpd.conf and look like this...

# Note: use only one of the two environment!
##
# for the fastcgi development environment configuration
# Include conf/extra/httpd-decgi.conf
##
# Development Environment
# FastCGI, by default, starts up several processes. This means you'll
# see several copies of rubyw.exe running in Task Manager. For development,
# to save memory and startup time you may wish to force FastCGI and
# to only start with one ruby process.
##
# for the extended and fast cgi production environment confiiguration
# Include conf/extra/httpd-pecgi.conf
##
# Production Environment
# If you are setting this up in a production enironment you will need to tell rails
# to use the production database (set in the database.yml file). Also, the -restart
# option will restart rails if something goes wrong.
#

in my httpd-pecgi.conf is:
FastCgiConfig -initial-env RAILS_ENV=production -restart

in my httpd-decgi.conf is:
FastCgiConfig -maxClassProcesses 1 -maxProcesses 1 -minProcesses 1 -processSlack 1

in my httpd-vhost.conf i've the following code:
<VirtualHost *:80>
ServerName rails
DocumentRoot "C:/Archivos de programa/xampp/htdocs/rails/test/public"
ErrorLog "C:/Archivos de programa/xampp/htdocs/rails/rails.log"
<Directory "C:/Archivos de programa/xampp/htdocs/rails/test/public/">
Options ExecCGI FollowSymLinks
AllowOverride all
Allow from all
Order allow,deny
AddHandler cgi-script .cgi
AddHandler fastcgi-script .fcg .fcgi .fpl
</Directory>
</VirtualHost>


I've made more changes in the code of XAMPP files, but in this cases didn't causes conflicts with the WEBrick Server (Ruby on Rails).
Irix
 
Posts: 3
Joined: 01. February 2006 12:21

Postby alucard01 » 01. February 2006 17:16

what is your apache error.log shown?
alucard01
 
Posts: 122
Joined: 15. May 2005 13:51

in my error log...

Postby Irix » 03. February 2006 11:00

Warning: DocumentRoot [C:/Archivos de programa/xampp/htdocs/rails/test/public] does not exist
[Wed Feb 01 04:20:29 2006] [notice] Child 3660: Child process is running
[Wed Feb 01 04:20:30 2006] [notice] Child 3660: Acquired the start mutex.
[Wed Feb 01 04:20:30 2006] [notice] Child 3660: Starting 250 worker threads.
[Wed Feb 01 04:20:30 2006] [notice] Child 3660: Starting thread to listen on port 443.
[Wed Feb 01 04:20:30 2006] [notice] Child 3660: Starting thread to listen on port 80.
[Wed Feb 01 04:48:46 2006] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Wed Feb 01 04:48:47 2006] [notice] Child 3660: Exit event signaled. Child process is ending.
[Wed Feb 01 04:48:48 2006] [notice] Child 3660: Released the start mutex
[Wed Feb 01 04:48:49 2006] [notice] Child 3660: Waiting for 250 worker threads to exit.
[Wed Feb 01 04:48:49 2006] [notice] Child 3660: All worker threads have exited.
[Wed Feb 01 04:48:49 2006] [notice] Child 3660: Child process is exiting
[Wed Feb 01 04:48:49 2006] [notice] Parent: Child process exited successfully.
[Wed Feb 01 04:49:35 2006] [notice] Apache/2.2.0 (Win32) DAV/2 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_autoindex_color PHP/5.1.1 mod_perl/2.0.2 Perl/v5.8.7 configured -- resuming normal operations
[Wed Feb 01 04:49:35 2006] [notice] Server built: Dec 1 2005 18:36:53
[Wed Feb 01 04:49:35 2006] [notice] Parent: Created child process 424
Warning: DocumentRoot [C:/Archivos de programa/xampp/htdocs/rails/test/public] does not exist
[Wed Feb 01 04:49:39 2006] [crit] master_main: create child process failed. Exiting.
[Wed Feb 01 04:49:39 2006] [notice] Parent: Forcing termination of child process 36
[Wed Feb 01 04:50:37 2006] [notice] Apache/2.2.0 (Win32) DAV/2 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_autoindex_color PHP/5.1.1 mod_perl/2.0.2 Perl/v5.8.7 configured -- resuming normal operations
[Wed Feb 01 04:50:38 2006] [notice] Server built: Dec 1 2005 18:36:53
[Wed Feb 01 04:50:38 2006] [notice] Parent: Created child process 384

maybe... the problem is the root... but i don't believe this so... because...
the path exist... i have to check this again...
Irix
 
Posts: 3
Joined: 01. February 2006 12:21

Postby alucard01 » 03. February 2006 14:38

my suggestion is: don't use space in your path.

It seems that apache cannot find your document root:C:/Archivos de programa/xampp/htdocs/rails/test/public. And your path contain space...

Although you can find the path, the system cannot. Therefore, you can change the path by moving your directory into another place.

Hope it helps.
alucard01
 
Posts: 122
Joined: 15. May 2005 13:51

well...

Postby Irix » 07. February 2006 06:04

yeah! is the path that is wrong... because i used the following...
c:/Archivos de programa/xampp/rails/test/public

and is true that does no exist!
because is:
c://Archivos de programa/xampp/rails/public

The rubi on rails work finally in the two modes now...
with the RubyFcgiInstaler and with the mod_fastcgi.dll...
but...
only when you have started the apache with the module off, and refresh the server with the module on...
when you stop the server and start the server with the module on in the configuration... didn't work... and stop...

thanks for the help...

maybe i have to do a batch or something like this to enable this service in my server... :P
Irix
 
Posts: 3
Joined: 01. February 2006 12:21


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 26 guests