VHCS

VHCS Installation script by Wael Nasreddine

To use this script, simply download vhcs.sh and run it
# wget http://wael.nasreddine.com/Projects/vhcs/vhcs.sh
# chmod +x vhcs.sh
# ./vhcs.sh

You can download the whole source code with bzr (you send me patches as well)
, to do so, just run:
$ bzr branch http://wael.nasreddine.com/Projects/vhcs/
you can edit any file and record, send me the patches
Happy Hacking :)

I setup a Launchpad account for VHCS
please use it to submit bugs.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.

Wael Nasreddine
http://wael.nasreddine.com
PGP: 1024D/C8DD18A2 06F6 1622 4BC8 4CEB D724 DE12 5565 3945 C8DD 18A2

.: An infinite number of monkeys typing into GNU emacs,
   would never make a good program. (L. Torvalds 1995) :.


  • Share/Save/Bookmark
38 Responses to “VHCS”
  1. is it posible to make this script work for debian etch? 4.0

    Would be great.

    kind regards,

    Roy

  2. I have not used debian in a long time, Could you please tell me in details what is wrong with this script on it, if You can’t detail it, I’ll use VMware to check it myself…

  3. I have parhaps the sam e problem

  4. bz checking distro the script just exits itself as debian is different from 3.1

  5. Oh ok, Thx alex, I’ll try working on this issue during the next weekend

  6. Hi :-)
    I want to install on etch 4.0 vhcs manually but i have some problems :
    “….
    If specified by -literal_key, then the key length must be equal to the chosen cipher’s key length of 56 bytes at /var/lib/dpkg/info/vhcs.postinst line 1887 … ”

    Your Script still not working on etch 4.0 :-(
    Is it possible to use it ?

    Regards
    Grzesiek

  7. Hi!

    I have the same problem with the new debian distro.
    When will it be possible to use your script with etch?

    Regards,
    Gelak

  8. Tomorrow I change ISP, looking to install a new server when IP changes.

    Looking at http://www.isp-control.net

    You been there mate? Your scripting power would sure come in handy :) Running Feisty here btw.

    Take care, and hope you recovered well from your HD crash that time.

    Steve!

  9. how to install awstats ?

    Marcos

  10. hello,

    some bug in

    VHCS 2.4.7.1 SecFix for Debian Etch (4.0)
    vhcs.sh installation

    delete user is not working

    dns resolv problem, webmail failed in my vps server.

    can you fix this bug

  11. hello,

    vhcs webmail error,

    ——————————————————————————–
    ERROR (2): Header may not contain more than a single header, new line detected. (/var/www/vhcs2/gui/tools/webmail/inc/inc.php:155)
    ——————————————————————————–

  12. [quote comment="186"]hello,

    vhcs webmail error,

    ——————————————————————————–
    ERROR (2): Header may not contain more than a single header, new line detected. (/var/www/vhcs2/gui/tools/webmail/inc/inc.php:155)
    ——————————————————————————–[/quote]
    ?

    hello

    Try to edit /var/www/html/webmail/inc/inc.php, go to line 169

    Change code :

    Header(”Expires: Wed, 11 Nov 1998 11:11:11 GMT\r\n”.
    “Cache-Control: no-cache\r\n”.
    “Cache-Control: must-revalidate”);

    to

    Header(”Expires: Wed, 11 Nov 1998 11:11:11 GMT”);
    Header(”Cache-Control: no-cache”);
    Header(”Cache-Control: must-revalidate”);

    Save, and exit.

    Marcos

  13. hi .. thanks for making this script available .. just found out about this .. been failed 2 ran it many times on fedora .. i think this time will use ubuntu like the one u propose ..

    ubuntu server 6.06 .. will update the result ..

    i hope it will works for me .. thanks once again

  14. gr8 .. i finally have the server up n running .. but i’ve notice that some of the service are not running .. like FTP, Telnet, HTML-SSL, POP3-SSL and IMAP-SSL, BTW how to enable it. coz i can transfer my files to the hosting

  15. thanks for the nice script ..

    it works well .. btw i should uncomment some line first

    /etc/apt/sources.list

    b4 started the installation ..

    thank you very much

  16. Tx,

    Your script has now made setting up two VHCS server a breeze!

    Thanks for all your hard work and effort!

    Tristan.

  17. hy..i have a lil problem….
    i installed vhcs with script….everything ok..
    but whe it asked me to set the mysql password.. i let it blank..
    now i changem my sqlpassword…and the vhcs main index don’t work no more…

    where do i have to change the password in vhcs ?
    thx

  18. Sorry, but the url to download the script isn’t working.

    Is there any chance that you fix this?

    Thanks.

  19. it will be fixed soon, I’m migrating my server to FreeBSD, sorry for any inconvenience.

  20. [quote comment=""]it will be fixed soon, I’m migrating my server to FreeBSD, sorry for any inconvenience.[/quote]

    For vhcs working on Debain Etch 4.0 you have to change line 290 of vhcs.sh from:

    elif cat /etc/issue |grep “Debian GNU/Linux 3.1″;
    to:

    elif cat /etc/issue |grep “Debian GNU/Linux 4.0″; ;)
    [quote comment="Maniac"] Hi :-)
    I want to install on etch 4.0 vhcs manually but i have some problems :
    “….
    If specified by -literal_key, then the key length must be equal to the chosen cipher’s key length of 56 bytes at /var/lib/dpkg/info/vhcs.postinst line 1887 … ”

    Your Script still not working on etch 4.0 :-(
    Is it possible to use it ?

    Regards
    Grzesiek
    [/quote]

    You have to add “keysize => 32,” before “key” in line 1887 of vhcs_common.pl or in that case “/var/lib/dpkg/info/vhcs.postinst”

    you have to leave it like:

    my $cipher = Crypt::CBC -> new(
    {
    ‘keysize’ => 32,
    ‘key’ => $main::db_pass_key,
    ‘cipher’ => ‘Blowfish’,
    ‘iv’ => $main::db_pass_iv,
    ‘regenerate_key’ => 0,
    ‘padding’ => ’space’,
    ‘prepend_iv’ => 0
    }
    );

    And the vhcs.sh you have to change the packgage apache2-common to aoache2.2-common

    Good Luck!

  21. Sorry i mistake nots aoache2.2-common is apache2.2-common :)

  22. Andrew says:

    Hey

    Im running Ubuntu 8.04, i tryed running your script but im getting this error vhcs.sh: 228: Syntax error: “(” unexpected (expecting “fi”)

    how can i fix this ??

  23. [quote comment=""]Hey

    Im running Ubuntu 8.04, i tryed running your script but im getting this error vhcs.sh: 228: Syntax error: “(” unexpected (expecting “fi”)

    how can i fix this ??[/quote]
    Are you sure it’s on line 228? I can’t find a ( anywhere there, on the other hand on line 220 there is one but is quoted ( String ) so it’s weird, I don’t have time this week, on the week end I’ll try it and see…

  24. wget http://www.timerider.co.uk/download/vhcs.sh

    try that one for Ubuntu 8.04, knocked it up last month but haven’t fully tested it yet.

    Let us know how it plays :)

    Steve!

  25. dude why haven’t you send me the patches ??
    Anyway I will pull your changes myself, BTW I will release the project under GPL so once the script has been changed please pull everything…

    Thanks

  26. Hold on, You made all your changes without recording them in darcs ?? why would you do that? :O

  27. Hey man, I didn’t send you the patches personally, as I’d not tested it fully. On a test machine, everything seemed to work fine, I had one problem, but I think that was due to my /var/www being a symbolic link to the drive that was storing the sites etc…

    Also because there were other changes, that had been made by someone else in amongst, the changes I made were just quickly knocked together.

    I’m assuming since your last filedate for vhcs.sh file is recent, that it now handles 8.04 etc itself? I’ve downloaded it of course, but not had a look yet :)

    Thanks dude

  28. Hmm, maybe some change from bash to dash has done this?

  29. Wael, You using bzr instead of darcs now?

  30. Yea I updated the script but I actually have no time at all to test it… I am currently working on my stage, having another job and helping http://www.sabayonlinux.org so I really don’t have time to test within VirtualBox, I appreciate it if u tested it yourself…

    BTW if you didn’t notice I create a Launchpad page for the project at https://launchpad.net/vhcs.sh/ I appreciate it if you’d want to join the project and fix/add features within it ( you’ll have read/write access to it… Email me if you’d want to help my email is in my badge

    Regards,
    Wael Nasreddine

  31. Yea sorry mate but Bazaar is better integrated on my server and on Launchpad… sorry :)
    Rev 1 is the latest old darcs revision, if u need the darcs repo I can tar it for you…

  32. tbh, my knowledge of bazaar probably equal that of darcs, i.e don’t know much about em! lol

    I’ve gotten bazaar working here, main server is still gutsy, with 0.9 bzr (not compatible with yours :(, but added the launchpad repos:
    deb http://ppa.launchpad.net/bzr/ubuntu gutsy main

    And all now seems good :)

    Looks like I’ve got a drive about to bite the dust in the gutsy server, have already backed up all essentials, and hopefully will be able to get everything back on to new one! Time for a more ‘production’ server on Ubuntu 8.04 :) Am sitting here with 2TB of drives that aren’t even in use!

    I notice at a glance the bzr files you’re hosting don’t seem to support 8.04?

    How should I be documenting changes/additions in the script? or will bazaar deal with that for me?

    I’ve added 8.04 here to the script here, and will test it tonight/tomorrow, then if all good will declare it stable - Just gotten over a broken leg here, still real sore and my server room is a right mess, computers piled up all over the place! Can hardly even fit in there (literally!).

    One other thing, I think I mentioned already, on my server /var/www is a symbolic link to another drive, mounted as /misc Should this cause any problems for the script, as last time I tried, I had to modify so that the tmp files created were copied successfully to /var/www/vhcs etc… Bug? or something *I* did wrong, lol The sym link is created fine, and works, cd’ing to /var/www shows files as they should be on the second drive, just thought I’d mention it ;)

    Take care mate

  33. I create an account here/login? Even forgotten password does nothing? And yeah, I’ve waited *hours* for the email…

  34. Maybe there is something wrong with the email system on my Server, I haven’t checked it since I Installed the server as small Jails….

    Anyhow, Talking here is bad for the eyes and for quoting, why don’t you re-send the post above ( the one about Bazaar version and stuff…) to my e-mail and we’ll continue the discussion in private…

    Sorry If I seem a bit woozy lol, I haven’t slept for 40 hours :O :’( … I gotta go sleep… C ya man….

  35. I’m sorry about the 404, I didn’t notice it after my last switch to git and to a new server, I’ll fix it and all the 404 this weekend.

    I’m truely sorry guys!

  36. This is going to sound stupid but after I ssh’d into my server and wget http://wael.nasreddine.com/Projects/vhcs/vhcs.sh

    I ran the script and installed VHCS but uhm how do I access it now?

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>