Sanjoy Roy

[MCM, MCP, SCJP] – Senior PHP Programmer

how to upgrade cms ms

define('CUSTOMER_FOLDER', '/var/www/vhosts/');
define('WEB_FOLDER', 'httpdocs/websitedesign');
if (PHP_SAPI != "cli") exit;
if ($argc != 2){
    echo 'this command needs 1 argument'."\n";
if (!file_exists(CUSTOMER_FOLDER.$argv[1].'/'.WEB_FOLDER.'/version.php')){
    echo CUSTOMER_FOLDER.$argv[1].'/'.WEB_FOLDER.'/version.php'."\n";
    echo 'Check the folder name'."\n";
$sitename = $argv[1];
$path = CUSTOMER_FOLDER.$sitename.'/';
$owner = 'thehost5';
$group = 'psacln';
if (!file_exists($path.'backup')){
} else {
    echo 'backup folder exists'."\n";
exec('tar cvzf backup/'.WEB_FOLDER.'.tar.gz '.WEB_FOLDER);
exec('mysqldump -u '.$config['db_username'].' -p'.$config['db_password'].' '.$config['db_name'].' > backup/db.sql');
exec('tar cvzf backup/db.tar.gz backup/db.sql');
exec('tar xvzf /root/CMS.1-9-4-2.tar.gz');
exec('chown -R '.$owner['name'].'.'.$group['name'].' *');
exec('chown -R '.$owner['name'].'.'.$group['name'].' ../backup');
exec('chmod -R 777 tmp config.php');
exec('chmod -R 777 uploads/ modules/');

8 responses to “how to upgrade cms ms

  1. itunes gift 21/08/2013 at 2:37 AM

    I’m going to possibly be demonstrating you will need to obtain iTunes limitations for totally free! They’re screened in addition to functioning 100% since May 2013!
    We all currently have accessible: $15 iTunes Rules, $25 iTunes Unique codes, $50 iTunes
    unique codes. Most of these programs is usually downloaded from our iTunes web page (link proven above).
    You should use these kinds of iTunes to legally
    get new music, motion pictures as well as Tv shows.

    Be sure you stick to all the directions within the online video absolutely, so
    that it functions perfectly and you may get your iTunes limitations along with quickly and also fast as is possible.

    Acquire Hyperlink: http: //bit. ly/13XSm7X In order to down load the many iTunes rules for 100%

    You should Such as, Preferred, and also Share this
    particular movie if the item assisted anyone!
    When you have almost any concerns whatsoever, simply write-up beneath and we’ll end up being happy to be of assistance with whichever problem you may have!

  2. 11/09/2013 at 1:06 AM

    Within the past, collecting model yachts was not
    an easy task. The grapevine nevertheless predicts that she will be the
    successor towards the twenty five-calendar year old Omani Royal Yacht Al Mentioned.
    People come near to their close to and dear ones
    on this grand occasion.

  3. 06/10/2013 at 11:22 PM

    This is very interesting, You’re a very skilled blogger.

    I’ve joined your rss feed and look forward to seeking more
    of your wonderful post. Also, I have shared your site in my social networks!

  4. profesjonalne bramy przesuwane 29/12/2013 at 9:47 PM

    Thanks to my father who stated to me about this blog, this web site is in fact amazing.

  5. Antonetta 13/02/2014 at 3:37 AM

    It’s the best time to make some plans for the future and it’s time to be happy.
    I’ve read this post and if I could I want to suggest
    you few interesting things or advice. Maybe you can write next articles referring to
    this article. I want to read even more things about it!

  6. novoline spiele ohne anmeldung 21/02/2014 at 11:58 AM

    I’m ggone to say to my little brother, that he
    should also go to see this weeb site on regular basis to get updated from latest information.

  7. cpa networks with email submit offers 06/03/2014 at 1:13 PM

    Good post, it was really helpful ?nternet site had been wondering more about this.
    I am sure to share this so more people can see too.

  8. hotel spadari al duomo booking 17/03/2014 at 8:14 PM

    great points altogether, you just won a logo new reader.
    What may you suggest in regards to your submit that you just made a few days ago?
    Any certain?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: