ISP-Server Setup - Ubuntu 5.0.4 "The Hoary Hedgehog" - Page 5
Apache
Run
apt-get install apache2 apache2-common apache2-doc apache2-mpm-prefork apache2-utils libapr0 libexpat1 ssl-cert (1 line!)
apt-get install autoconf automake1.4 autotools-dev libapache2-mod-php4 libkrb53 php4 php4-common php4-dev php4-imagick php4-mcrypt php4-rrdtool php4-sqlite php4-curl php4-domxml php4-gd php4-imap php4-ldap php4-mcal php4-mhash php4-mysql php4-odbc php4-pear php4-xslt (1 line!)
Edit /etc/apache2/apache2.conf. Change
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml |
to
DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.pl index.xhtml |
Edit /etc/mime.types and comment out the following lines:
#application/x-httpd-php phtml pht php |
Edit /etc/apache2/mods-enabled/php4.conf and comment out the following lines:
<IfModule mod_php4.c> |
Edit /etc/apache2/ports.conf and add Listen 443:
Listen 80 |
Now we have to enable some Apache modules (SSL, rewrite and suexec):
cd /etc/apache2/mods-enabled
ln -s /etc/apache2/mods-available/ssl.conf ssl.conf
ln -s /etc/apache2/mods-available/ssl.load ssl.load
ln -s /etc/apache2/mods-available/rewrite.load rewrite.load
ln -s /etc/apache2/mods-available/suexec.load suexec.load
ln -s /etc/apache2/mods-available/include.load include.load
Restart Apache:
/etc/init.d/apache2 restart
Proftpd
apt-get install proftpd proftpd-common ucf
<- standalone
For security reasons you can add the following lines to /etc/proftpd.conf (thanks to Reinaldo Carvalho; more information can be found here: http://proftpd.linux.co.uk/localsite/Userguide/linked/userguide.html):
DefaultRoot ~
IdentLookups off
ServerIdent on "FTP Server ready."
and restart Proftpd:
/etc/init.d/proftpd restart
Webalizer
apt-get install libfreetype6 libgd2-noxpm libjpeg62 libpng12-0 webalizer
Synchronize the System Clock
If you want to have the system clock synchronized with an NTP server you can run the following:
apt-get install ntpdate
/etc/init.d/ntpdate start
The system startup links for /etc/init.d/ntpdate should already exist so that ntpdate starts automatically at boot time; if it does not, run
update-rc.d ntpdate defaults
to create these links.
Then add the following lines to /var/spool/cron/crontabs/root (if the file does not exist, create it by running
touch /var/spool/cron/crontabs/root):
# update time with ntp server
0 */2 * * * /etc/init.d/ntpdate restart &> /dev/null
Then run
chmod 600 /var/spool/cron/crontabs/root
/etc/init.d/cron restart
Install some Perl Modules needed by SpamAssassin (comes with ISPConfig)
apt-get install libhtml-parser-perl libdb-file-lock-perl libnet-dns-perl
On To The Next Step...
The configuration of the server is now finished, and we go on by installing ISPConfig on it.