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

Install Proftpd

apt-get install proftpd

To the prompt: Run proftpd from inetd or standalone? answer standalone

For security reasons you can add the following lines to /etc/proftpd.conf

joe /etc/proftpd.conf

DefaultRoot ~
IdentLookups off
ServerIdent on "FTP Server ready."

and restart Proftpd:

/etc/init.d/proftpd restart

Install Webalizer

apt-get install webalizer

To the prompts:

Which directory should webalizer put the output in? answer /var/www/webalizer
Enter the title of the reports webalizer will generate. answer Usage Statistics for
What is the filename of the rotated webserver log? answer /var/log/apache/access.log.1

Synchronize the System Clock

It is a good idea to synchronize the system clock with an NTP (network time protocol) server over the internet.

apt-get install ntp ntpdate

Install some Perl Modules needed by SpamAssassin (comes with ISPConfig)

Installation using the Perl Shell

Login to your command line as root and run the following command to start the Perl shell:

perl -MCPAN -e shell

If you run the Perl shell for the first time you will be asked some questions. In most cases the default answers are ok.

Please note: If you run a firewall on your system you might have to turn it off while working on the Perl shell in order for the Perl shell to be able to fetch the needed modules without a big delay. You can switch it on afterwards.

Run the following commands to upgrade CPAN

install Bundle::CPAN

Accept defaults at all prompts

reload cpan

Run the following commands to install the modules needed by SpamAssassin:

install HTML::Parser
install DB_File
install Net::DNS

When prompted to enable tests, choose no.



to leave the Perl shell).

If a module is already installed on your system you will get a message similar to this one:

HTML::Parser is up to date.

Successful installation of a module looks like this:

/usr/bin/make install -- OK
Share this page:

6 Comment(s)

Add comment


From: Ka1N at: 2006-10-27 06:40:55

/bin/hostname -f /etc/hostname

 should be

/bin/hostname -F /etc/hostname

... with a capital F

From: Anonymous at: 2006-05-15 18:27:52

I find that many rails problems revolve around permissions and setting fcgi/cgi


chmod -R 755 public
chmod -R 755 log

# triple check your .htaccess file that .fcgi is selected
# replace this line
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
# with
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
# make sure you've used the ispconfig control panel to make a database for this site
# fill out the database name, username, and password in your database.yml
# ~/config/database.yml
#example configuration

adapter: mysql
database: web1_db1
username: web1_u1
password: <yourpassword>

# make sure you set the path to ruby in files ~/public/dispatch.fcgi and dispatch.cgi
# use the command which ruby to identify the correct path
root@ubuntu:/# which ruby
#if this is your path then the first line of your dispatch files would look like this


From: Anonymous at: 2006-05-30 21:51:59

Tim, just working through your how-to and found that I get an error on the following command:

root@vps:/etc/postfix/ssl# mv -f smtpd.key.unencrypted smtpd.key openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650
mv: invalid option -- n
Try `mv --help' for more information.

From: tomw at: 2006-06-08 15:24:25

Thats because there was an error in the formatting. It should have been two lines thus:

mv -f smtpd.key.unencrypted smtpd.key

openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650

Fixed it sorry.

From: Anonymous at: 2006-06-27 03:36:04

From: at: 2007-04-07 03:04:26

ISPConfig's default directory is now /var/www, No need to use expert mode or change it.