<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  
  
  <channel>
    <title>chrisjrob: ispconfig</title>
    <link>https://chrisjrob.com</link>
    <atom:link href="https://chrisjrob.com/tag/ispconfig/feed/index.xml" rel="self" type="application/rss+xml" />
    <description>GNU Linux, Perl and FLOSS</description>
    <language>en-gb</language>
    <pubDate>Fri, 13 Feb 2026 17:22:31 +0000</pubDate>
    <lastBuildDate>Fri, 13 Feb 2026 17:22:31 +0000</lastBuildDate>
    
    <item>
      <title>Howto | Install Ruby on Rails3 on Debian Lenny</title>
      <link>https://chrisjrob.com/2010/11/20/install-ruby-on-rails3-on-debian-lenny/</link>
      <pubDate>Sat, 20 Nov 2010 16:15:40 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2010/11/20/install-ruby-on-rails3-on-debian-lenny</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/debian_logo.png" align="right" alt="Featured Image">
         
         <p>I know nothing about Ruby on Rails, but this is how I ended up successfully (I think!) installing it.  There may be better ways.</p>

<h2 id="download-and-compile-ruby">Download and Compile Ruby</h2>

<p>At the time of writing, the current version is 1.9.2</p>

<ul>
  <li>http://www.ruby-lang.org/en/downloads/</li>
</ul>

<!--more-->

<p>I tend to use checkinstall wherever possible, so that I can manage the package via apt-get and dpkg.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo apt-get install checkinstall

$ wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p0.tar.gz
$ tar -xvvzf ruby-1.9.2-p0.tar.gz
$ cd ruby-1.9.2-p0

$ ./configure
$ make
$ sudo checkinstall
</code></pre></div></div>

<p>Set the version number to 1.9.2</p>

<h2 id="install-rails">Install Rails</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo gem install rails
</code></pre></div></div>

<h2 id="install-passenger">Install Passenger</h2>

<p><strong>This assumes you are using apache2.</strong></p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo gem install passenger
$ sudo passenger-install-apache2-module
</code></pre></div></div>

<p>Please read thoroughly the output from this the last command, as it will give you the information you require for the next section.</p>

<h2 id="enable-passenger">Enable Passenger</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ cd /etc/apache2/mods-available
</code></pre></div></div>

<p>Create or edit the following files, using the output from passenger-install-apache2-module above.</p>

<h3 id="passengerconf">passenger.conf</h3>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>&lt;IfModule mod_passenger.c&gt;
    PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.15
    PassengerRuby /usr/local/bin/ruby
&lt;/IfModule&gt;
</code></pre></div></div>

<h3 id="passengerload">passenger.load</h3>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>LoadModule passenger_module /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.15/ext/apache2/mod_passenger.so
</code></pre></div></div>

<h3 id="enable-in-apache">Enable in Apache</h3>

<p>You should now be able to enable the apache module with:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo a2enmod passenger
</code></pre></div></div>

<h2 id="update-vhosts">Update Vhosts</h2>

<p>This will vary depending on your system, but you are aiming to have a vhost configuration similar to the following:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>&lt;VirtualHost *:80&gt;
    ServerName www.yourhost.com
    DocumentRoot /somewhere/public    # &lt;-- be sure to point to 'public'!
    RailsEnv development              # &lt;-- change to testing/production as appropriate (see note below)
    RackEnv development               # &lt;-- change to testing/production as appropriate (see note below)
    &lt;Directory /somewhere/public&gt;
       AllowOverride all              # &lt;-- relax Apache security settings
       Options -MultiViews            # &lt;-- MultiViews must be turned off
    &lt;/Directory&gt;
&lt;/VirtualHost&gt;
</code></pre></div></div>

<p>By default, passenger uses the Ruby on Rails production database, which may or may not be appropriate, depending on where you are in the development process.  If you are still developing your rails app, then you may want to set in the above:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>RailsEnv development
RackEnv development
</code></pre></div></div>

<p>In theory you only need the former, but the presence of the file config.ru in your application directory makes passenger require RackEnv instead.</p>

<p>Otherwise, when making changes to your database, do remember to:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># db:migrate RAILS_ENV=production
# touch tmp/restart.txt
</code></pre></div></div>

<p>Otherwise your application will not work.</p>

<h2 id="ispconfig">ISPConfig</h2>

<p>If you are using ISPConfig, then I currently have this working by adding the following to the sites Apache Directives in the admin control panel:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>DocumentRoot /var/www/web11/web/blog/public
&lt;Directory /var/www/web11/web/blog/public&gt;
    AllowOverride all
    Options -MultiViews
&lt;/Directory&gt;
</code></pre></div></div>

<p>And then edit <code class="language-plaintext highlighter-rouge">/etc/apache2/vhosts/Vhosts_ispconfig.conf</code> and remove the old DocumentRoot line from the relevant vhost section.  Unfortunately you will have to do this everytime you change your site configuration.  This is very poor, there has to be a better way.</p>

<h2 id="installing-jquery">Installing JQuery</h2>

<p>These are rather poor notes, you are probably better looking elsewhere, but the key thing is that the long and complex instructions for installing jquery that abound on the Internet should be avoided.  The installation should be a mere couple of commands.</p>

<p>Either type:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ gem install jquery-rails
</code></pre></div></div>

<p>Or as I preferred, edit your Gemfile (in the root of your rails project) and add:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>gem 'jquery-rails'
</code></pre></div></div>

<p>My handwritten notes don’t say this, but I believe you would then need to run:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ bundle install
</code></pre></div></div>

<p>And then (add “–ui” on the end of the following command to include the jquery UI):</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ rails generate jquery:install
</code></pre></div></div>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Howto | Install WebDAV on ISPConfig</title>
      <link>https://chrisjrob.com/2009/03/21/install-webdav-on-ispconfig/</link>
      <pubDate>Sat, 21 Mar 2009 06:16:34 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2009/03/21/install-webdav-on-ispconfig</guid>
      <description>
       <![CDATA[
         
         <h2 id="step-1-create-a-web">Step 1: Create a web</h2>

<p>This is not an ISPConfig tutorial, so it is supposed that you know how to do this.</p>

<p><strong>Use the ISPConfig web interface. Probably sensible to make the site a maximum size.</strong></p>

<!--more-->

<h2 id="step-2-create-data-folder">Step 2: Create data folder</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ mkdir /var/www/webXX/web/webdav
$ chown webXX_trident:webXX /var/www/webXX/web/webdav
$ chmod o+w /var/www/webXX/web/webdav
</code></pre></div></div>

<h2 id="step-3-create-lock-folder">Step 3: Create lock folder</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ mkdir /var/www/webXX/DAVlocks
$ chown www-data:www-data /var/www/webXX/DAVlocks
$ chmod o+w /var/www/webXX/DAVlocks
</code></pre></div></div>

<h2 id="step-4-download-and-install">Step 4: Download and install</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ apt-get install libapache-mod-dav
$ a2enmod dav
$ a2enmod dav_fs
</code></pre></div></div>

<h2 id="step-5-create-user">Step 5: Create user</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ htpasswd -c /var/www/webXX/.DAVlogin username
</code></pre></div></div>

<h2 id="step-6-add-apache-directives-to-ispconfig-site">Step 6: Add Apache Directives to ISPConfig site</h2>

<p><strong>Use the web interface and browse to Sites.</strong></p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>DavLockDB /var/www/webXX/DAVlocks/DAVlocks
Alias /webdav /var/www/webXX/web/webdav
&lt;Location /webdav/&gt;
    DAV On
    AuthType Basic
    AuthName 'username'
    AuthUserFile /var/www/webXX/.DAVlogin
    &lt;LimitExcept GET POST PUT DELETE CONNECT OPTIONS PATCH PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK&gt;
        Require valid-user
    &lt;/LimitExcept&gt;
&lt;/Location&gt;
</code></pre></div></div>

<p>Restart apache service.</p>

<h2 id="step-7-install-cadaver-for-testing">Step 7: Install Cadaver for testing</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ apt-get install cadaver
$ cadaver http://webdav.tridentgarages.co.uk/webdav/
Username: username
Password: p455w0rd
dav:/webdav/&gt; put test.file
dav:/webdav/&gt; ls
dav:/webdav/&gt; get test.file
</code></pre></div></div>


       ]]>
      </description>
    </item>
    
  </channel> 
</rss>
