Jump to content

Upgrade during VPS change


Recommended Posts

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

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.

Link to comment
Share on other sites

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

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

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 by xlegends
Link to comment
Share on other sites

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 by xlegends
Link to comment
Share on other sites

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 by xlegends
Link to comment
Share on other sites

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

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 by xlegends
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • 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