My Install Guide V4 – Debian 3.1 (VHCS2.4.7.1)
Install Steps Debian 3.1 base install – manual and clean
Follow these instructions exactly with a clean install and you can’t go wrong.
On install of Debian, select no packages to be installed, allow it to connect to the internet and let it download anything
it needs, usually its libs etc. Exim is most likely installed at this point so dont worry it will be removed shortly.
I would at this stage edit your host file to so that it picks up everything during install
vi /etc/hosts and add your server hostname with the IP, example
Code:
192.168.1.1 myhostname.domain.com myhostname
Lets being the install
———————————————————-
1.vi /etc/apt/sources.list (add the following sources, ive had no problems with this mirror)
Code:
2. apt-get install postfix postfix-tls proftpd-mysql courier-authdaemon courier-base courier-imap courier-maildrop courier-pop libberkeleydb-perl libc-dev libcrypt-blowfish-perl libcrypt-cbc-perl libcrypt-passwdmd5-perl libdate-calc-perl libdate-manip-perl libdbd-mysql-perl libdbi-perl libio-stringy-perl libmail-sendmail-perl libmailtools-perl libmd5-perl libmime-perl libnet-dns-perl libnet-netmask-perl libnet-perl libnet-smtp-server-perl libperl5.8 libsnmp-session-perl libterm-readkey-perl libtimedate-perl perl perl-base perl-modules bind9 diff gzip iptables libmcrypt4 mysql-client-4.1 mysql-common-4.1 mysql-server-4.1 patch php4 php4-mcrypt php4-mysql php4-pear procmail libterm-readpassword-perl libsasl2-modules libsasl2 sasl2-bin apache2 apache2-common apache2-mpm-prefork libapache2-mod-php4 gawk libgd1g bzip2 wget make gcc
(when you get to the courier screen screen select no to web directories)
(when you get to the postfix screen select internet site and then type root for mail. If you set debian up correctly on install your domain should be already on screen. Select no to force sync updates.)
(when you get to the proftpd screen, select standalone)
3. mysql -u root (no password at this stage, change it later!)
Code:
create database vhcs2;
use vhcs2; grant all privileges on *.* to 'vhcs2'@'localhost' identified by 'vhcs2' with grant option;
\q (quit program)
4. apt-get remove apache-common (if installed – not needed)
5. wget http://kent.dl.sourceforge.net/sourceforge/vhcs/vhcs2-2.4.7.1.tar.bz2
6. tar -xjvf vhcs2-2.4.7.1.tar.bz2
7. cd vhcs2-2.4.7.1
8. cd configs
9. vi vhcs2.conf (make the changes to match your requirements, dont forget to change database name, username and password, these are what you need to change)
Code:
DEFAULT_ADMIN_ADDRES = your email
SERVER_HOSTNAME = your hostname
BASE_SERVER_IP = your ip
DATABASE_TYPE = mysql
DATABASE_HOST = localhost
DATABASE_NAME = vhcs2
DATABASE_PASSWORD = vhcs2
DATABASE_USER = vhcs
10. cd .. (back to the root of the vhcs2 directory)
11. make install (if command not found run ‘apt-get install make’)
12. cd /tmp/vhcs*
13. cp -R * /
14. cd /var/www/vhcs2/engine/setup
15. ./vhcs2-setup (install script)
Code:
Wlecome to VHCS2 '2.4 Spartacus' Setup Dialog.
This program will set up VHCS2 system on your server.
Please press 'Enter' to continue.
Please enter system hostname (Enter for defaults) [debian]: yourhostname
Please enter system network address (Enter for defaults) [192.168.0.128]: your ipaddress
Please enter SQL server host (Enter for defaults) [localhost]:
Please enter system SQL database (Enter for defaults) [vhcs2]: vhcs2
Please enter system SQL user (Enter for defaults) [root]: vhcs2
Please enter system SQL password (Enter for defaults) [none]: vhcs2
Please repeat system SQL password: vhcs2
Please enter VHCS ftp SQL user (Enter for defaults) [vftp]: vftp
Please enter VHCS ftp SQL user password (Enter for defaults) [none]: vftp
Please repeat VHCS ftp SQL user password: vftp
Please enter administrator login name (Enter for defaults) [admin]:
Please enter administrator password: your password
Please repeat administrator password: your password
Please enter admininistrator email address: your email address
16.
Code:
echo "Include /etc/apache2/sites-available/vhcs2.conf" >> /etc/apache2/httpd.conf
(forgotten in install script)
17. sh /etc/init.d/apache2 restart
18. vi /etc/init.d/courier-authdaemon
(change this line) ${libexecdir}/authlib/authdaemon stop
Code:
killall authdaemond.plain
19. sh /etc/init.d/courier-authdaemon restart
21. vi /etc/resolv.conf (and add to the top)
add this
Code:
(this removes errors about virtual hosts when starting apache)
22 Vhcs2 does not start automatically on reboot so we need to add it as a startup script.
First, you must get the startup runlevel by the command “runlevel” in the bash. You’ll get something like N 2, N means there was no previous runlevel, 2 is the actual runlevel.
For those who don’t have an N, you know what you’re doing, simply look in your inittab, then go in the folder /etc/rc2.d (if 2 is your startup runlevel)
Make an ls -al to see how it works, it isn’t hard to understand. At startup everthing from S01xx to S99xx is started in that order.
This should do most people for runlevel 2, replace rc.2 with rc.3 if on runlevel 3
Code:
ln -s /etc/init.d/vhcs2_daemon /etc/rc2.d/S98vhcs
23. (You may need to change permissions on the tools folder)
Code:
chmod -R 766 /var/www/vhcs2/gui/tools
24. Thats about it, your should be ready to go
Original URL of this Document: http://vhcs.net/new/modules/newbb/viewtopic.php?topic_id=6840&forum=2