Debian Sarge (3.1) with Ruby on Rails and Apache 2 with FastCGI - Page 6

Install ISPConfig (it includes ClamAV and SpamAssassin

Note if the install source is not valid go to and locate it.

cd /usr/local/src
tar xvfz ISPConfig*.tar.gz
cd install_ispconfig

At the prompts:

Installation mode answer expert
Default directory /home/www answer n
Enter /var/www as the home directory for websites.

Fill in the certificate info.

When asked for a pass phrase choose n or otherwise you will be asked for it when you start ISPConfig which means it cannot be started without human interaction.

Afterwards the following information has to be provided:

Please enter your MySQL server: E.G. localhost
Please enter your MySQL user: E.G. root
Please enter your MySQL password: Your MySQL password
Please enter a name for the ISPConfig database: E.g. ispconfigdb
Please enter the IP address of the ISPConfig web: E.g.
Please enter the host name: E.g. www
Please enter the domain: E.g.
Please select the protocol (http or https (SSL encryption)) to use to access the ISPConfig system:
If you want to use your control panel with SSL, select 1. You can then access it under If you want to access it under, choose 2.

After you have answered the questions ISPConfig should be duly installed. If you indicated www as host and as the domain during the installation, you will find the ISPConfig interface under or Here you can login first with the user name admin and password admin.


The ISPConfig comes with SpamAssassin, but without the Perl modules needed by SpamAssassin. Run the following command after the installation of the ISPConfig:


If no errors occur you can exit with ^c.

After you have logged into ISPConfig for the first time -- remember admin-admin. It is recommended to change the password immediately! This can be done under Tools -> Change password.

You might want to add phpmyadmin to ISPConfig go to Management -> UpdateManager -> Update and paste

into the url box, choose url and press update.

To create a Ruby on Rails hosting site.

Create a Hosting plan with

Options +ExecCGI +FollowSymLinks
AllowOverride all

in the Apache Directives box.

Create the New site using the Hosting plan.

In the rails application rename the public directory to web. (The following assumes that the directory created by the hosting plan is web1. Change the following accordingly if it is not.)

cd (rails application directory)
mv public web

Copy everything in the rails directory to the new directory created on your server for the website.

cp -R * /var/www/web1

Modify the .htaccess in the web directory by adding

SetEnv RAILS_ENV production
Order allow,deny
Allow from all

and removing any option directives.

Make sure the webserver can access all the files by changing the owner of the files to your web server.

cd /var/www/web1 (or whatever your website directory is.)
chown -R www-data:web1 *

It should work now!

Share this page:

5 Comment(s)