Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
22ef4880
Commit
22ef4880
authored
Jun 15, 2010
by
tbrehm
Browse files
Implemented: FS#461 - Add Ruby support
parent
813090c9
Changes
9
Hide whitespace changes
Inline
Side-by-side
docs/INSTALL_DEBIAN_5.0_courier_mydns.txt
View file @
22ef4880
...
...
@@ -118,14 +118,14 @@ mkpop3dcert
3) Install apache, PHP5, phpmyadmin, better fastCGI, suexec, Pear and mcrypt (1 line!):
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
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
# When phpMyAdmin is asking weather to configure itself automatically, select "Apache2"
# Then run the following to enable the Apache modules suexec, rewrite and ssl:
a2enmod suexec rewrite ssl actions include
a2enmod suexec rewrite ssl actions include
ruby
# If you want to use webdav then run the following to enable the Apache webdav modules:
...
...
docs/INSTALL_DEBIAN_5.0_dovecot_bind.txt
View file @
22ef4880
...
...
@@ -86,14 +86,14 @@ apt-get -y install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2
3) Install apache, PHP5, phpmyadmin, better fastCGI, suexec, Pear and mcrypt (1 line!):
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
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
# When phpMyAdmin is asking weather to configure itself automatically, select "Apache2"
# Then run the following to enable the Apache modules suexec, rewrite and ssl:
a2enmod suexec rewrite ssl actions include
a2enmod suexec rewrite ssl actions include
ruby
# If you want webdav then run the following to enable the Apache webdav modules:
...
...
docs/INSTALL_DEBIAN_6.0_courier_mydns.txt
View file @
22ef4880
...
...
@@ -112,7 +112,7 @@ mkpop3dcert
3) Install apache, PHP5, phpmyadmin, better fastCGI, suexec, Pear and mcrypt (1 line!):
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
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
#this package is actual missed on official squeeze repository: php5-imagick
...
...
@@ -120,7 +120,7 @@ apt-get install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2
# Then run the following to enable the Apache modules suexec, rewrite and ssl:
a2enmod suexec rewrite ssl actions include
a2enmod suexec rewrite ssl actions include
ruby
# If you want webdav then run the following to enable the Apache webdav modules:
...
...
docs/INSTALL_DEBIAN_6.0_dovecot_bind.txt
View file @
22ef4880
...
...
@@ -84,14 +84,14 @@ apt-get -y install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2
3) Install apache, PHP5, phpmyadmin, better fastCGI, suexec, Pear and mcrypt (1 line!):
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
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
# When phpMyAdmin is asking weather to configure itself automatically, select "Apache2"
# Then run the following to enable the Apache modules suexec, rewrite and ssl:
a2enmod suexec rewrite ssl actions include
a2enmod suexec rewrite ssl actions include
ruby
# restart apache before continuing
...
...
install/sql/ispconfig3.sql
View file @
22ef4880
...
...
@@ -1064,6 +1064,7 @@ CREATE TABLE `web_domain` (
`is_subdomainwww`
tinyint
(
1
)
NOT
NULL
default
'1'
,
`subdomain`
enum
(
'none'
,
'www'
,
'*'
)
NOT
NULL
default
'none'
,
`php`
varchar
(
32
)
NOT
NULL
default
'y'
,
`ruby`
enum
(
'n'
,
'y'
)
NOT
NULL
default
'n'
,
`redirect_type`
varchar
(
255
)
default
NULL
,
`redirect_path`
varchar
(
255
)
default
NULL
,
`ssl`
enum
(
'n'
,
'y'
)
NOT
NULL
default
'n'
,
...
...
interface/web/sites/form/web_domain.tform.php
View file @
22ef4880
...
...
@@ -193,6 +193,12 @@ $form["tabs"]['domain'] = array (
'valuelimit'
=>
'client:web_php_options'
,
'value'
=>
array
(
'no'
=>
'Disabled'
,
'fast-cgi'
=>
'Fast-CGI'
,
'cgi'
=>
'CGI'
,
'mod'
=>
'Mod-PHP'
,
'suphp'
=>
'SuPHP'
)
),
'ruby'
=>
array
(
'datatype'
=>
'VARCHAR'
,
'formtype'
=>
'CHECKBOX'
,
'default'
=>
'n'
,
'value'
=>
array
(
0
=>
'n'
,
1
=>
'y'
)
),
'active'
=>
array
(
'datatype'
=>
'VARCHAR'
,
'formtype'
=>
'CHECKBOX'
,
...
...
interface/web/sites/lib/lang/en_web_domain.lng
View file @
22ef4880
...
...
@@ -58,4 +58,5 @@ $wb["limit_traffic_quota_free_txt"] = 'Max. available Traffic Quota';
$wb
[
"redirect_error_regex"
]
=
'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/'
;
$wb
[
"php_open_basedir_txt"
]
=
'PHP open_basedir'
;
$wb
[
"traffic_quota_exceeded_txt"
]
=
'Traffic quota exceeded'
;
$wb
[
"ruby_txt"
]
=
'Ruby'
;
?>
interface/web/sites/templates/web_domain_edit.htm
View file @
22ef4880
...
...
@@ -70,7 +70,13 @@
<div
class=
"multiField"
>
{tmpl_var name='ssi'}
</div>
</div>
</div>
<div
class=
"ctrlHolder"
>
<p
class=
"label"
>
{tmpl_var name='ruby_txt'}
</p>
<div
class=
"multiField"
>
{tmpl_var name='ruby'}
</div>
</div>
<div
class=
"ctrlHolder"
>
<p
class=
"label"
>
{tmpl_var name='suexec_txt'}
</p>
<div
class=
"multiField"
>
...
...
server/conf/vhost.conf.master
View file @
22ef4880
...
...
@@ -66,6 +66,24 @@
AddOutputFilter INCLUDES .shtml
Options +Includes
</tmpl_if>
<tmpl_if name='ruby' op='==' value='y'>
<IfModule mod_ruby.c>
<Directory {tmpl_var name='web_document_root'}>
Options +ExecCGI
</Directory>
RubyRequire apache/ruby-run
#RubySafeLevel 0
<Files *.rb>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
</IfModule>
</tmpl_if>
<tmpl_if name='php' op='==' value='no'>
<Files ~ '.php[s3-6]{0,1}$'>
Order allow,deny
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment