PDA

View Full Version : Ruby / RoR / FastCGI


jpetrov
08-12-2005, 12:47 AM
Hi,

does anyone know what Ruby on Rails is? Do you by any chance have it on your VPS? I am thinking about this for quite some time and I might take the plunge - but a fellow ruby-VPS-owner could shed some light...

Starchild
08-12-2005, 02:06 AM
This is part of the reason I'm thinking of getting a VPS. Rails is an open source Ruby framework for developing database-backed web applications. It's supposed to make our web development life easier (and the process much faster).

Take a look at this article it should give you a good overview: http://www.onlamp.com/lpt/a/5546

And the official site: http://www.rubyonrails.org/

Also you might want to take a look at django: http://www.djangoproject.com/

jpetrov
08-12-2005, 07:03 AM
I know all these...

it seems that there are three options:

1. install ruby+rails+FastCGI+mod_fastcgi on apahce (as DSO) - for some reasons I can't build the DSO module (some errors showing)

2. install lighttpd+ruby+rails+FastCGI on different port (i.e. testing purposes)

3. install (2) + mod_proxy and link it somehow to apache. I can't find a HOWTO on this for CPanel - and this way is the recommended one for speed of applications and stability...

Ehm... I guess it's growing pains... One day we will see modrails on Cpanel Pro... ;)

Hvu
08-12-2005, 01:16 PM
Offtopic but Lighttpd blows Apache away with its performance and lightweight footprint. I'll max out my dedicated 20mbps line. wooh I love it

jpetrov
08-12-2005, 03:24 PM
but how does it work with control panels? even if you have lighttpd i guess you still need apache for some common scripts and users?

Hvu
08-12-2005, 06:52 PM
Yeah lighttpd will not support cpanel or any other control panel at this point. SInce the configuration file is totally different from apache maybe somebody will write a CP with support for lighttpd and apache. Lighttpd supports all the php/cgi/perl stuff, it also has compression and rewrite if you need.

jpetrov
08-12-2005, 10:04 PM
the testing solution is to have lighttpd at port e.g. 10080. and leave cpanel/apache beaurocracy apart.

but for production - only thing that i can see is either fcgi+apache or fcgi+light -> mod_proxy ->apache.

well i've bumped into a problem... apxs commands for mod_fastcgi compile give me errors. here is the info on how to install mod_fastcgi:
And mod_fastcgi for Apache 1.3+
I installed mod_fastcgi as a DSO.
Because cPanel uses Easy Apache
the location of apxs is different so these
instructions deviate somewhat from the INSTALL
docs. (ymmv!)

$ cd /usr/local/src
$ curl fastcgi.com/dist/mod_fastcgi-2.4.2.tar.gz
$ tar -xvzf mod_fastcgi-2.4.2.tar.gz
$ cd mod_fastcgi-2.4.2
$ /usr/local/apache/bin/apxs -o mod_fastcgi.so -c *.c
$ /usr/local/apache/bin/apxs -i -a -n fastcgi mod_fastcgi.so


I am banging my head now don't disturb me! ;) :confused:

Starchild
08-27-2005, 07:06 AM
Any luck with that install jpetrov? Please stop banging your head and let us know what happened ;)

I'm interested in installing this as well (or django).

jpetrov
08-28-2005, 08:27 PM
Well all compiled well, I had some problems with some paths but support gave me a hint. All parts are compiled, but it's still not integrated fully and not tested since I have 2 urgent projects to finish. When I will have some time I will continue with tweaking.

LordMerlin
04-03-2006, 04:37 PM
Hey jpegtrov

I realise this thread was posted some time ago, but being new to VPS, and PowerVPS for that matter, I saw the post, and it interested me, as I need to install ROR as well. Getting it to work on Ubuntu Linux alone was a pain, but it now works. I don't want to "break" my VPS however, thus, do you have a HOWTO on howto install ROR on the PVPS VPS setups?

tia :)