Skip to content

Commit 22ef488

Browse files
committed
Implemented: FS#461 - Add Ruby support
1 parent 813090c commit 22ef488

File tree

9 files changed

+41
-9
lines changed

9 files changed

+41
-9
lines changed

docs/INSTALL_DEBIAN_5.0_courier_mydns.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,14 @@ mkpop3dcert
118118

119119
3) Install apache, PHP5, phpmyadmin, better fastCGI, suexec, Pear and mcrypt (1 line!):
120120

121-
apt-get -y install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp libopenssl-ruby
121+
apt-get -y install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp libopenssl-ruby libapache2-mod-ruby
122122

123123

124124
# When phpMyAdmin is asking weather to configure itself automatically, select "Apache2"
125125

126126
# Then run the following to enable the Apache modules suexec, rewrite and ssl:
127127

128-
a2enmod suexec rewrite ssl actions include
128+
a2enmod suexec rewrite ssl actions include ruby
129129

130130
# If you want to use webdav then run the following to enable the Apache webdav modules:
131131

docs/INSTALL_DEBIAN_5.0_dovecot_bind.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ apt-get -y install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2
8686

8787
3) Install apache, PHP5, phpmyadmin, better fastCGI, suexec, Pear and mcrypt (1 line!):
8888

89-
apt-get -y install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp libopenssl-ruby
89+
apt-get -y install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp libopenssl-ruby libapache2-mod-ruby
9090

9191

9292
# When phpMyAdmin is asking weather to configure itself automatically, select "Apache2"
9393

9494
# Then run the following to enable the Apache modules suexec, rewrite and ssl:
9595

96-
a2enmod suexec rewrite ssl actions include
96+
a2enmod suexec rewrite ssl actions include ruby
9797

9898
# If you want webdav then run the following to enable the Apache webdav modules:
9999

docs/INSTALL_DEBIAN_6.0_courier_mydns.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,15 @@ mkpop3dcert
112112

113113
3) Install apache, PHP5, phpmyadmin, better fastCGI, suexec, Pear and mcrypt (1 line!):
114114

115-
apt-get install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt imagemagick libapache2-mod-suphp libopenssl-ruby
115+
apt-get install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt imagemagick libapache2-mod-suphp libopenssl-ruby libapache2-mod-ruby
116116

117117
#this package is actual missed on official squeeze repository: php5-imagick
118118

119119
# When phpMyAdmin is asking weather to configure itself automatically, select "Apache2"
120120

121121
# Then run the following to enable the Apache modules suexec, rewrite and ssl:
122122

123-
a2enmod suexec rewrite ssl actions include
123+
a2enmod suexec rewrite ssl actions include ruby
124124

125125
# If you want webdav then run the following to enable the Apache webdav modules:
126126

docs/INSTALL_DEBIAN_6.0_dovecot_bind.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ apt-get -y install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2
8484

8585
3) Install apache, PHP5, phpmyadmin, better fastCGI, suexec, Pear and mcrypt (1 line!):
8686

87-
apt-get -y install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt imagemagick libapache2-mod-suphp libopenssl-ruby
87+
apt-get -y install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt imagemagick libapache2-mod-suphp libopenssl-ruby libapache2-mod-ruby
8888

8989

9090
# When phpMyAdmin is asking weather to configure itself automatically, select "Apache2"
9191

9292
# Then run the following to enable the Apache modules suexec, rewrite and ssl:
9393

94-
a2enmod suexec rewrite ssl actions include
94+
a2enmod suexec rewrite ssl actions include ruby
9595

9696
# restart apache before continuing
9797

install/sql/ispconfig3.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,6 +1064,7 @@ CREATE TABLE `web_domain` (
10641064
`is_subdomainwww` tinyint(1) NOT NULL default '1',
10651065
`subdomain` enum('none','www','*') NOT NULL default 'none',
10661066
`php` varchar(32) NOT NULL default 'y',
1067+
`ruby` enum('n','y') NOT NULL default 'n',
10671068
`redirect_type` varchar(255) default NULL,
10681069
`redirect_path` varchar(255) default NULL,
10691070
`ssl` enum('n','y') NOT NULL default 'n',

interface/web/sites/form/web_domain.tform.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,12 @@
193193
'valuelimit' => 'client:web_php_options',
194194
'value' => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP')
195195
),
196+
'ruby' => array (
197+
'datatype' => 'VARCHAR',
198+
'formtype' => 'CHECKBOX',
199+
'default' => 'n',
200+
'value' => array(0 => 'n',1 => 'y')
201+
),
196202
'active' => array (
197203
'datatype' => 'VARCHAR',
198204
'formtype' => 'CHECKBOX',

interface/web/sites/lib/lang/en_web_domain.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,5 @@ $wb["limit_traffic_quota_free_txt"] = 'Max. available Traffic Quota';
5858
$wb["redirect_error_regex"] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/';
5959
$wb["php_open_basedir_txt"] = 'PHP open_basedir';
6060
$wb["traffic_quota_exceeded_txt"] = 'Traffic quota exceeded';
61+
$wb["ruby_txt"] = 'Ruby';
6162
?>

interface/web/sites/templates/web_domain_edit.htm

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,13 @@ <h2><tmpl_var name="list_head_txt"></h2>
7070
<div class="multiField">
7171
{tmpl_var name='ssi'}
7272
</div>
73-
</div>
73+
</div>
74+
<div class="ctrlHolder">
75+
<p class="label">{tmpl_var name='ruby_txt'}</p>
76+
<div class="multiField">
77+
{tmpl_var name='ruby'}
78+
</div>
79+
</div>
7480
<div class="ctrlHolder">
7581
<p class="label">{tmpl_var name='suexec_txt'}</p>
7682
<div class="multiField">

server/conf/vhost.conf.master

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,24 @@
6666
AddOutputFilter INCLUDES .shtml
6767
Options +Includes
6868
</tmpl_if>
69+
<tmpl_if name='ruby' op='==' value='y'>
70+
<IfModule mod_ruby.c>
71+
<Directory {tmpl_var name='web_document_root'}>
72+
Options +ExecCGI
73+
</Directory>
74+
RubyRequire apache/ruby-run
75+
#RubySafeLevel 0
76+
<Files *.rb>
77+
SetHandler ruby-object
78+
RubyHandler Apache::RubyRun.instance
79+
</Files>
80+
<Files *.rbx>
81+
SetHandler ruby-object
82+
RubyHandler Apache::RubyRun.instance
83+
</Files>
84+
</IfModule>
85+
</tmpl_if>
86+
6987
<tmpl_if name='php' op='==' value='no'>
7088
<Files ~ '.php[s3-6]{0,1}$'>
7189
Order allow,deny

0 commit comments

Comments
 (0)