{"id":57,"date":"2007-01-12T02:49:14","date_gmt":"2007-01-12T00:49:14","guid":{"rendered":"http:\/\/www.shukko.com\/x3\/2007\/01\/12\/my-install-guide-v4-debian-31-vhcs2471\/"},"modified":"2007-01-12T02:49:14","modified_gmt":"2007-01-12T00:49:14","slug":"my-install-guide-v4-debian-31-vhcs2471","status":"publish","type":"post","link":"https:\/\/www.shukko.com\/x3\/2007\/01\/12\/my-install-guide-v4-debian-31-vhcs2471\/","title":{"rendered":"My Install Guide V4 &#8211; Debian 3.1 (VHCS2.4.7.1)"},"content":{"rendered":"<p><span class=\"style1\"><strong><span class=\"style2\">My Install Guide V4 &#8211; Debian  3.1 (VHCS2.4.7.1)<br \/>\n<\/span><\/strong><br \/>\nInstall Steps Debian 3.1 base install &#8211; manual and clean<br \/>\nFollow these instructions exactly with a clean install and you can&#8217;t go wrong.<\/p>\n<p>On install of Debian, select no packages to be installed, allow it to connect to  the internet and let it download anything<br \/>\nit needs, usually its libs etc. Exim is most likely installed at this point so  dont worry it will be removed shortly.<\/p>\n<p>I would at this stage edit your host file to so that it picks up everything  during install<\/p>\n<p>vi \/etc\/hosts and add your server hostname with the IP, example<\/p>\n<p>Code: <\/span><\/p>\n<div class=\"xoopsCode\">\n<pre class=\"style1\">192.168.1.1       myhostname.domain.com myhostname<\/pre>\n<\/div>\n<p><span class=\"style1\"><\/p>\n<p>Lets being the install<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>1.vi \/etc\/apt\/sources.list (add the following sources, ive had no problems with  this mirror)<\/p>\n<p>Code: <\/span><\/p>\n<div class=\"xoopsCode\">\n<pre class=\"style1\">deb <a target=\"_blank\" href=\"ftp:\/\/ftp.uk.debian.org\/debian\/\">ftp:\/\/ftp.uk.debian.org\/debian\/<\/a> stable main\r\ndeb-src <a target=\"_blank\" href=\"ftp:\/\/ftp.uk.debian.org\/debian\/\">ftp:\/\/ftp.uk.debian.org\/debian\/<\/a> stable main\r\ndeb <a target=\"_blank\" href=\"http:\/\/security.debian.org\/\">http:\/\/security.debian.org\/<\/a> stable\/updates main<\/pre>\n<\/div>\n<p><span class=\"style1\"><\/p>\n<p>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<\/p>\n<p>(when you get to the courier screen screen select no to web directories)<br \/>\n(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.)<br \/>\n(when you get to the proftpd screen, select standalone)<\/p>\n<p>3. mysql -u root (no password at this stage, change it later!)<\/p>\n<p>Code: <\/span><\/p>\n<div class=\"xoopsCode\">\n<pre><span class=\"style1\">\r\ncreate database vhcs2;\r\nuse vhcs2; grant all privileges on *.* to 'vhcs2'@'localhost' identified by 'vhcs2' with grant option;\r\n\\q (quit program)\r\n<\/span><\/pre>\n<\/div>\n<p><span class=\"style1\"><\/p>\n<p>4. apt-get remove apache-common (if installed &#8211; not needed)<\/p>\n<p>5. wget <a target=\"_blank\" href=\"http:\/\/kent.dl.sourceforge.net\/sourceforge\/vhcs\/vhcs2-2.4.7.1.tar.bz2\"> http:\/\/kent.dl.sourceforge.net\/sourceforge\/vhcs\/vhcs2-2.4.7.1.tar.bz2<\/a><\/p>\n<p>6. tar -xjvf vhcs2-2.4.7.1.tar.bz2<\/p>\n<p>7. cd vhcs2-2.4.7.1<\/p>\n<p>8. cd configs<\/p>\n<p>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)<\/p>\n<p>Code: <\/span><\/p>\n<div class=\"xoopsCode\">\n<pre><span class=\"style1\">\r\nDEFAULT_ADMIN_ADDRES = your email\r\nSERVER_HOSTNAME = your hostname\r\nBASE_SERVER_IP = your ip\r\nDATABASE_TYPE = mysql\r\nDATABASE_HOST = localhost\r\nDATABASE_NAME = vhcs2\r\nDATABASE_PASSWORD = vhcs2\r\nDATABASE_USER = vhcs\r\n<\/span><\/pre>\n<\/div>\n<p><span class=\"style1\"><\/p>\n<p>10. cd .. (back to the root of the vhcs2 directory)<\/p>\n<p>11. make install (if command not found run &#8216;apt-get install make&#8217;)<\/p>\n<p>12. cd \/tmp\/vhcs*<\/p>\n<p>13. cp -R * \/<\/p>\n<p>14. cd \/var\/www\/vhcs2\/engine\/setup<\/p>\n<p>15. .\/vhcs2-setup (install script)<\/p>\n<p>Code: <\/span><\/p>\n<div class=\"xoopsCode\">\n<pre><span class=\"style1\">\r\nWlecome to VHCS2 '2.4 Spartacus' Setup Dialog.\r\nThis program will set up VHCS2 system on your server.\r\nPlease press 'Enter' to continue.\r\nPlease enter system hostname (Enter for defaults) [debian]: yourhostname\r\nPlease enter system network address (Enter for defaults) [192.168.0.128]: your ipaddress\r\nPlease enter SQL server host (Enter for defaults) [localhost]:\r\nPlease enter system SQL database (Enter for defaults) [vhcs2]: vhcs2\r\nPlease enter system SQL user (Enter for defaults) [root]: vhcs2\r\nPlease enter system SQL password (Enter for defaults) [none]: vhcs2\r\nPlease repeat system SQL password: vhcs2\r\nPlease enter VHCS ftp SQL user (Enter for defaults) [vftp]: vftp\r\nPlease enter VHCS ftp SQL user password (Enter for defaults) [none]: vftp\r\nPlease repeat VHCS ftp SQL user password: vftp\r\nPlease enter administrator login name (Enter for defaults) [admin]:\r\nPlease enter administrator password: your password\r\nPlease repeat administrator password: your password\r\nPlease enter admininistrator email address: your email address\r\n<\/span><\/pre>\n<\/div>\n<p><span class=\"style1\"><\/p>\n<p>16.<\/p>\n<p>Code: <\/span><\/p>\n<div class=\"xoopsCode\">\n<pre class=\"style1\">echo \"Include \/etc\/apache2\/sites-available\/vhcs2.conf\" >> \/etc\/apache2\/httpd.conf<\/pre>\n<\/div>\n<p><span class=\"style1\"><br \/>\n(forgotten in install script)<\/p>\n<p>17. sh \/etc\/init.d\/apache2 restart<\/p>\n<p>18. vi \/etc\/init.d\/courier-authdaemon<\/p>\n<p>(change this line) ${libexecdir}\/authlib\/authdaemon stop<\/p>\n<p>Code: <\/span><\/p>\n<div class=\"xoopsCode\">\n<pre class=\"style1\">killall authdaemond.plain<\/pre>\n<\/div>\n<p><span class=\"style1\"><br \/>\n19. sh \/etc\/init.d\/courier-authdaemon restart<\/p>\n<p>21. vi \/etc\/resolv.conf (and add to the top)<\/p>\n<p>add this<\/p>\n<p>Code: <\/span><\/p>\n<div class=\"xoopsCode\">\n<pre class=\"style1\">nameserver your ip<\/pre>\n<\/div>\n<p><span class=\"style1\"><br \/>\n(this removes errors about virtual hosts when starting apache)<\/p>\n<p>22 Vhcs2 does not start automatically on reboot so we need to add it as a  startup script.<\/p>\n<p>First, you must get the startup runlevel by the command &#8220;runlevel&#8221; in the bash.  You&#8217;ll get something like N 2, N means there was no previous runlevel, 2 is the  actual runlevel.<\/p>\n<p>For those who don&#8217;t have an N, you know what you&#8217;re doing, simply look in your  inittab, then go in the folder \/etc\/rc2.d (if 2 is your startup runlevel)<\/p>\n<p>Make an ls -al to see how it works, it isn&#8217;t hard to understand. At startup  everthing from S01xx to S99xx is started in that order.<\/p>\n<p>This should do most people for runlevel 2, replace rc.2 with rc.3 if on runlevel  3<\/p>\n<p>Code: <\/span><\/p>\n<div class=\"xoopsCode\">\n<pre class=\"style1\">ln -s \/etc\/init.d\/vhcs2_daemon \/etc\/rc2.d\/S98vhcs<\/pre>\n<\/div>\n<p><span class=\"style1\"><\/p>\n<p>23. (You may need to change permissions on the tools folder)<\/p>\n<p>Code: <\/span><\/p>\n<div class=\"xoopsCode\">\n<pre><span class=\"style1\">\r\nchmod -R 766 \/var\/www\/vhcs2\/gui\/tools\r\n<\/span><\/pre>\n<\/div>\n<p><span class=\"style1\"><br \/>\n24. Thats about it, your should be ready to go<\/p>\n<p>Original URL of this Document: <a href=\"http:\/\/vhcs.net\/new\/modules\/newbb\/viewtopic.php?topic_id=6840&#038;forum=2\"> http:\/\/vhcs.net\/new\/modules\/newbb\/viewtopic.php?topic_id=6840&#038;forum=2<\/a><br \/>\n<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>My Install Guide V4 &#8211; Debian 3.1 (VHCS2.4.7.1) Install Steps Debian 3.1 base install &#8211; manual and clean Follow these instructions exactly with a clean install and you can&#8217;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, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/comments?post=57"}],"version-history":[{"count":0,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/57\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/media?parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/categories?post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/tags?post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}