akust0m Posted December 22, 2014 Share Posted December 22, 2014 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 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted December 23, 2014 WHMCS Support Manager Share Posted December 23, 2014 Hi, What version did you upgrade from? The config.php and * files weren't changed between 5.3.10 and 5.3.11, so your customisations wouldn't have been overwritten by the patch set upgrade method: http://docs.whmcs.com/Upgrading 0 Quote Link to comment Share on other sites More sharing options...
akust0m Posted December 24, 2014 Author Share Posted December 24, 2014 Hi John, thank you for the reply. I will use the patch sets from now on. I used the full version. I went 5.3.10 to 5.3.11. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 24, 2014 Share Posted December 24, 2014 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. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.