xlegends Posted November 17, 2017 Share Posted November 17, 2017 Good evening whcms Im currently escaping an incompetent VPS host. I have migrated all of my sites except the merchant one holding whcms. Before I do, I haven't taken the whcms update from last month on the previous server. Should I use the same files, restore the db then update on the new server after? or do a fresh install with updated files and restore the old db? Im concerned the old database wont like the new files unless I restore it with the old files first then doing an update after? Link to comment Share on other sites More sharing options...
string Posted November 17, 2017 Share Posted November 17, 2017 Just upload WHMCS (either your old files from your server or the newest release from whmcs.com), import the database and update your configuration.php to match with your database details. If you upload the newest WHMCS release with your old database, WHMCS will start the update process. If you upload your old files, WHMCS should work as before. >or do a fresh install with updated files and restore the old db? You should not install WHMCS. If you install WHMCS and then replace the database with your old database, the update process will be triggered. You can skip the installation part. 1 Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted November 17, 2017 Share Posted November 17, 2017 Hey @xlegends, The steps for moving can be found at https://docs.whmcs.com/licensing#moving In essence, if you are running an older version, you could install the latest release (7.4.1) by moving the database, copying your current configuration.php file to the new location, tweaking the database details and then run /install/install.php Link to comment Share on other sites More sharing options...
xlegends Posted November 17, 2017 Author Share Posted November 17, 2017 thx string, chris.. piece of cake. I will do it tonight. last questions Im no longer going to use apache, Im using nginx + php-fpm my forums are running blazing fast on that setup. shouldnt be any known issues with whcms? other than the loss of use of the htaccess rule I made for admin logging Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted November 17, 2017 Share Posted November 17, 2017 You should be fine, theres a few forums posts with various bits of information about nginx, most people tend to use Apache with WHMCS 1 Link to comment Share on other sites More sharing options...
xlegends Posted November 17, 2017 Author Share Posted November 17, 2017 (edited) well guys I getting ready to pull my hair out. I cant get past the generic error "http error 500" Im running centos 7 mysql57 web server: php-fpm (back end) + nginx (front end) under vestacp php71 with latest ioncube loader Im guessing I need to do something with nginx, when I moved vbulletin transferred over without a hitch with its php files. Edited November 17, 2017 by xlegends Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted November 17, 2017 Share Posted November 17, 2017 Add $display_errors = true; To the end of your configuration.php file and see what you get Link to comment Share on other sites More sharing options...
xlegends Posted November 17, 2017 Author Share Posted November 17, 2017 hi chris, I added the rule to the whmcs config, rebooted webserver and still error 500. any other ideas? I was worried about this change to nginx should i delete all the .htacess files that were migrated over from previous httpd use? Link to comment Share on other sites More sharing options...
xlegends Posted November 17, 2017 Author Share Posted November 17, 2017 without ioncube loader I get the ioncube loader warning but with ioncube loaded, it goes to 500 Link to comment Share on other sites More sharing options...
string Posted November 17, 2017 Share Posted November 17, 2017 You should check your webserver / php-fpm error log. Link to comment Share on other sites More sharing options...
xlegends Posted November 17, 2017 Author Share Posted November 17, 2017 (edited) 2017/11/17 03:56:13 [error] 6235#6235: *69 FastCGI sent in stderr: "PHP message: PHP Fatal error: The file /home/admin/pathtowhmcs/public_html/index.php was encoded by the ionCube Encoder for PHP 5.6 and cannot run under PHP 7.1. The php-fpm + nginx webserver was installed with vestacp and it originally loaded php56 which it grabbed from the base centos repo. I uninstalled php56 right away before doing anything and added php71 before migrating anything over to this news server. previously I ran whmcs with httpd22, php70 because of ioncubes no support for php70 Edited November 17, 2017 by xlegends Link to comment Share on other sites More sharing options...
string Posted November 17, 2017 Share Posted November 17, 2017 Please see the WHMCS System Requirements and this post. WHMCS does not support PHP 7.1. PHP 7.0.x is supported. Link to comment Share on other sites More sharing options...
xlegends Posted November 17, 2017 Author Share Posted November 17, 2017 ok ez fix, let me roll back and see what happens Link to comment Share on other sites More sharing options...
xlegends Posted November 17, 2017 Author Share Posted November 17, 2017 (edited) you the man! we're past that error. The only issue im having now is www.mydomain.com keeps redirecting to https:// I havent installed an ssl certificate yet on this server. I also havent reset my whmcs license yet Edited November 17, 2017 by xlegends Link to comment Share on other sites More sharing options...
xlegends Posted November 17, 2017 Author Share Posted November 17, 2017 (edited) maybe dump the htaccess file they migrated over Edited November 17, 2017 by xlegends Link to comment Share on other sites More sharing options...
string Posted November 17, 2017 Share Posted November 17, 2017 nginx does not use .htaccess files. Open "Setup" => "General Settings" and replace https:// with http:// at the setting "Domain" and "WHMCS System URL". I believe this will fix your issue. Link to comment Share on other sites More sharing options...
xlegends Posted November 17, 2017 Author Share Posted November 17, 2017 ok string, I used the new whmcs files this is the error it displays ------------------------ Down for Maintenance SEC MAINTENANCE - PLEASE RETURN SOON WHMCS\Exception\Application\InstallationVersionMisMatch: Database version '7.2.3-release.1' does not match file version '7.4.1-release.1' --------------------------------- This was my original concern. I think I was suppose to release my license first? Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted November 17, 2017 Share Posted November 17, 2017 Upload the whole /install/ folder and then run /install/ to upgrade the database, once done reissue your license Link to comment Share on other sites More sharing options...
xlegends Posted November 20, 2017 Author Share Posted November 20, 2017 (edited) hey guys, I was able to update whmcs by pointing to domain.com/install/update.php and that procedure worked fine with standard http It doesnt redirect to https when u point to the install folder however when pointing home directory of whmcs folder (or when files are in my html base directory) I can not get it to not automatically redirect to https I dont have any ssl certificates installed on this new server. when moving the whmcs files out of base directory I can then point to domain.com/index.html fine without the https redirect as long as the whmcs php files are not present.. As suggested, I repointed my domain back to the old server and changed the general settings from https://domain.com to regular http:// saved database and restored it to new server, repointed domain to new server and its still trying to redirect to https. what in the world is causing this redirect? Is there somewhere else I can change the correct web address to non https so I can confirm its working before installing a new ssl certificate I didnt think this would be a mod rewrite issue with nginx because I have vbulletin php files working fine under the same server different domain cleared browsing, changed browsers, etc any help is much appreciated Edited November 20, 2017 by xlegends Link to comment Share on other sites More sharing options...
xlegends Posted November 20, 2017 Author Share Posted November 20, 2017 I got it guys. Before I migrated I only changed the domain url and forgot the change WHMCS System URL. Its working fine now. Now I will install the ssl cert with confidence. Link to comment Share on other sites More sharing options...
Recommended Posts