Jump to content

How to make upgrades easier..


akust0m

Recommended Posts

Hi everyone!

 

Just a couple of questions regarding upgrade procedures. I upgraded to 5.3.11 today however it slipped my mind that I have edited two files recently, I needed to re-edit this files to ensure things kept operating as they should. I'm just wondering if there is a way around this?

 

1.)

 

The crons/config.php file by default has the following:

 

$whmcspath = '../';

 

Unfortunately this does not seem to work and I don't know why. I have to manually set my path to the following to make sure my domainsync.php cron works.

 

$whmcspath = '/var/www/vhosts/my.example.com/httpdocs/';

 

Why doesn't the '../' work? This would still be referencing the httpdocs directory would it not?

 

 

2.) I modify my * file with the following change:

 

// perform redirect

header("HTTP/1.1 301 Moved Permanently");

header("Location: "."http://www.example.com",true,301);

 

I'd like visitors that click affiliate links to go to my home page instead. I see there is an option in general settings called "Domain". My understanding is that this would change the re-direction link without my need of manually editing it. However, what other effects would changing this have?

 

To clarify, I'm not talking about the "WHMCS System URL" or "WHMCS SSL System URL".

 

Kind regards,

Chris

Link to comment
Share on other sites

Chris,

 

as a follow on, have you read the advice in "Further Security Steps" to move the crons folder out of a public folder?

 

http://docs.whmcs.com/Further_Security_Steps#Move_the_crons_folder

 

if the crons folder is moved, then even when you use the full update, it shouldn't overwrite your existing cron files - the worst case scenario is that you might get a duplicate folder... but after a while you get in the habit of uploading update folders to the correct directories.

 

but as John suggests, when possible it's easier to use the incremental updates.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated