Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th June 2008, 07:40
antun antun is offline
Member
 
Join Date: Oct 2006
Location: San Francisco, CA
Posts: 38
Thanks: 7
Thanked 0 Times in 0 Posts
Default ISPConfig and Ruby

I'm trying to enable my ISPConfig (on Ubuntu) to run Rails apps. I just updated ISPConfig to 2.2.7, and followed this HowTo:

http://www.howtoforge.com/apache2-mo...2.20-and-above

When I run the test, it doesn't work; I just see the Ruby source displayed.

Step 5 of the instructions says:
Quote:
If you enable Ruby for that web site, ISPConfig adds something like this to the web site's Apache vhost configuration:
How do I "enable Ruby" for a web site? I don't see any options in the ISPConfig panel.

Should I have the ruby executable installed? I just installed the mod_ruby module as described in the instructions above. I'm using Ubuntu 6.06.2 LTS.

Thanks for any help in advance!

-Antun
Reply With Quote
Sponsored Links
  #2  
Old 30th June 2008, 08:28
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Default

On the basis tab of the website in ISPConfig you should see a checkbox "Ruby".
__________________
Hans

MrHostman | Master in managed hosting
Reply With Quote
  #3  
Old 30th June 2008, 17:26
antun antun is offline
Member
 
Join Date: Oct 2006
Location: San Francisco, CA
Posts: 38
Thanks: 7
Thanked 0 Times in 0 Posts
Default

Hi Hans,

I don't see a "Ruby" checkbox on the basis tab.

I've verified that ISPConfig 2.2.7 is successfully installed, by going to Tools>Software Version.

Is there anything else I have to install or update as far as Apache is concerned?

Thanks,

Antun
Reply With Quote
  #4  
Old 30th June 2008, 18:37
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,388 Times in 4,233 Posts
Default

Ruby is not supported by ISPConfig 2.2.7. Please update to the latest release (2.2.23).
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 30th June 2008, 19:24
antun antun is offline
Member
 
Join Date: Oct 2006
Location: San Francisco, CA
Posts: 38
Thanks: 7
Thanked 0 Times in 0 Posts
Default

Hi Till,

Ah - silly me! I downloaded 2.2.23, but then inadvertently re-installed 2.2.7 (which I still had in my downloads directory from before)! I've installed 2.2.23 correctly now, and I do get the Ruby option on the basis tab. I've checked it for a site, but my test .rb script still doesn't work.

Do I need to do anything else? After checking the Ruby checkbox, and restarting Apache, I don't see anything about Ruby in the vhosts file here:

/etc/apache2/vhosts/Vhosts_ispconfig.conf

Should there be something there?

Thanks,

Antun
Reply With Quote
  #6  
Old 30th June 2008, 19:27
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,388 Times in 4,233 Posts
Default

Did you install mod_ruby first? Otherwise it will lead to an error when you enable ruby in ISPConfig and ISPConfig will use a copy of the last working version of the Vhosts_ispconfig.conf file, the one without ruby enabled.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 30th June 2008, 19:31
antun antun is offline
Member
 
Join Date: Oct 2006
Location: San Francisco, CA
Posts: 38
Thanks: 7
Thanked 0 Times in 0 Posts
Default

Hi Till,

Yes, I had installed mod_ruby yesterday, using the following command:

apt-get install libapache2-mod-ruby

I did a phpinfo() to check whether it was installed, and mod_ruby is in the list of "Loaded Modules" under "apache2handler".

-Antun
Reply With Quote
  #8  
Old 30th June 2008, 19:34
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,388 Times in 4,233 Posts
Default

Please post the output of:

ls -la /etc/apache2/vhosts/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
antun (2nd July 2008)
  #9  
Old 30th June 2008, 19:44
antun antun is offline
Member
 
Join Date: Oct 2006
Location: San Francisco, CA
Posts: 38
Thanks: 7
Thanked 0 Times in 0 Posts
Default

Hi Till,

Thanks for your time:

root@www:~/downloads/ispconfig# ls -la /etc/apache2/vhosts/
total 92
drwxr-xr-x 2 root root 4096 2008-06-30 10:32 .
drwxr-xr-x 9 root root 4096 2008-06-29 22:26 ..
-rw-r--r-- 1 root root 10915 2008-06-30 10:27 Vhosts_ispconfig.conf
-rw-r--r-- 1 root root 10977 2008-06-19 22:25 Vhosts_ispconfig.conf_19-06-08_22-25-31
-rw-r--r-- 1 root root 10975 2008-06-20 10:01 Vhosts_ispconfig.conf_20-06-08_10-01-31
-rw-r--r-- 1 root root 10975 2008-06-29 22:15 Vhosts_ispconfig.conf_29-06-08_22-15-55
-rw-r--r-- 1 root root 10975 2008-06-30 10:10 Vhosts_ispconfig.conf_30-06-08_10-10-36
-rw-r--r-- 1 root root 10933 2008-06-30 10:25 Vhosts_ispconfig.conf_30-06-08_10-25-50
-rw-r--r-- 1 root root 11273 2008-06-30 10:27 Vhosts_ispconfig.conf_30-06-08_10-27-34

Regards,

Antun
Reply With Quote
  #10  
Old 1st July 2008, 21:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

http://www.howtoforge.com/forums/showthread.php?t=7719
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ruby and autosignup Gimly Installation/Configuration 3 14th March 2008 16:17
ISPConfig 2.2.20 released till General 31 13th February 2008 16:17
ISPConfig 2.2.20 Beta 1 available for testing till Developers' Forum 7 9th February 2008 18:48
Change Document Root for Ruby on Rails vhost Delphinus General 12 8th September 2007 11:31
Ruby on Ispconfig? city General 2 22nd March 2006 02:09


All times are GMT +2. The time now is 22:09.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.