DeletedUser Posted February 3, 2020 Report Posted February 3, 2020 Hi, I have been using PHPVMS on a free web host for testing, and I’m thinking about the future when I come to upgrade to paid hosting. How do I migrate to a new web host without loosing data? Thanks for your suggestions! Quote
Moderators ProSkyDesign Posted February 3, 2020 Moderators Report Posted February 3, 2020 40 minutes ago, MrSandyWilly said: Hi, I have been using PHPVMS on a free web host for testing, and I’m thinking about the future when I come to upgrade to paid hosting. How do I migrate to a new web host without loosing data? Thanks for your suggestions! Compress the folder where you have your phpvms files, and export sql database. In your new hosting: upload and unzip the folder and import sql database (you can use phpmyadmin) Be sure that change URL, DB name, user and password on core/local.config.php and captcha keys on core/app.config.php Quote
DeletedUser Posted February 3, 2020 Author Report Posted February 3, 2020 3 hours ago, ProSkyDesign said: Compress the folder where you have your phpvms files, and export sql database. In your new hosting: upload and unzip the folder and import sql database (you can use phpmyadmin) Be sure that change URL, DB name, user and password on core/local.config.php and captcha keys on core/app.config.php I have a question relating to that: My local.config.php file is completely empty. Why? Quote
Administrators ProAvia Posted February 3, 2020 Administrators Report Posted February 3, 2020 Be sure you are looking at the correct file and location. The local.config.php is located in .../core/ If the local.config.php was empty, the site wouldn't even load - as the database access code is located in local.config.php Quote
DeletedUser Posted February 3, 2020 Author Report Posted February 3, 2020 (edited) 3 minutes ago, ProAvia said: Be sure you are looking at the correct file and location. The local.config.php is located in .../core/ If the local.config.php was empty, the site wouldn't even load - as the database access code is located in local.config.php I assure you, it is completely empty. So far all of that stuff has been in app.config.php i think. Edited February 3, 2020 by MrSandyWilly Quote
Administrators ProAvia Posted February 3, 2020 Administrators Report Posted February 3, 2020 Then your installation is done incorrectly. You NEVER add to or change anything in app.config.php - any additions or changes are done to local.config.php . Quote
DeletedUser Posted February 3, 2020 Author Report Posted February 3, 2020 (edited) 5 minutes ago, ProAvia said: Then your installation is done incorrectly. You NEVER add to or change anything in app.config.php - any additions or changes are done to local.config.php . I think I know why - the default installation was not working for me so I tried this: https://github.com/DavidJClark/phpvms_5.5.x Maybe it works differently Edited February 3, 2020 by MrSandyWilly Quote
Administrators ProAvia Posted February 3, 2020 Administrators Report Posted February 3, 2020 Nope... 2.1, 5.5.2 and 5.5.2.72 all use the local.config in the way I described. Quote
Administrators ProAvia Posted February 3, 2020 Administrators Report Posted February 3, 2020 What version of PHP is your free hosting using? Site URL? Quote
DeletedUser Posted February 5, 2020 Author Report Posted February 5, 2020 On 2/3/2020 at 6:14 PM, ProAvia said: What version of PHP is your free hosting using? Site URL? tcxvirtual.epizy.com - I will buy a domain once I finish developing Quote
DeletedUser Posted February 5, 2020 Author Report Posted February 5, 2020 I think I understand now. Is it not correct that although my local.config.php is empty, whenever I want to change a setting I should copy and paste it into local.config.php and then change it? Quote
Administrators ProAvia Posted February 5, 2020 Administrators Report Posted February 5, 2020 Basically, yes. But local.config.php also contains important info on how to connect to your database. That info should not be in app.config.php. The app.config.php file is a base file and should not be changed or added to. What PHP version is your free host using? Quote
DeletedUser Posted February 5, 2020 Author Report Posted February 5, 2020 1 hour ago, ProAvia said: Basically, yes. But local.config.php also contains important info on how to connect to your database. That info should not be in app.config.php. The app.config.php file is a base file and should not be changed or added to. What PHP version is your free host using? The thing is that my local.config.php is completely empty. However, I’ve checked app.config.php for DB info etc and it’s definitely not in there. Where could it be? I am running PHP 5.5. Quote
Administrators ProAvia Posted February 5, 2020 Administrators Report Posted February 5, 2020 There is no telling - especially with you being on a free host. You would be better served installing phpVMS locally on your computer using Wamp or Xxamp. This would also allow complete control over what PHP version you use with phpVMS 5.5.2 As I mentioned previously, if local.config is empty, your installation is compromised. And chances of everything working as they should are slim. Also, going to paid hosting later will require extra work in bringing your present install up to the necessary standards to make it work correctly. Quote
DeletedUser Posted February 5, 2020 Author Report Posted February 5, 2020 5 minutes ago, ProAvia said: There is no telling - especially with you being on a free host. You would be better served installing phpVMS locally on your computer using Wamp or Xxamp. This would also allow complete control over what PHP version you use with phpVMS 5.5.2 As I mentioned previously, if local.config is empty, your installation is compromised. And chances of everything working as they should are slim. Also, going to paid hosting later will require extra work in bringing your present install up to the necessary standards to make it work correctly. So what do you suggest I do? Quote
Administrators ProAvia Posted February 5, 2020 Administrators Report Posted February 5, 2020 Re-read my first paragraph in my last post....... Quote
DeletedUser Posted February 5, 2020 Author Report Posted February 5, 2020 Oh sorry. Is there anything I can do to try and save my work which I have done so far? Quote
Administrators ProAvia Posted February 5, 2020 Administrators Report Posted February 5, 2020 Well, you were able to upload the files to the free host, so you should be able to download them too. But first you need to install Wamp or Xxamp and get PHP, MySQL and Apache install to one or the other. Then do a fresh install of phpVMS 5.5.2 to whichever local server program (Wamp or Xxamp) and be sure it is functioning properly. Then you can install the module, template and skin files from your present online install. But I am of the mind that you start totally fresh as you have zero idea of what else is compromised with the free host install. And don't forget that you should have a front end that visitors can access to see what you have to offer. This would be in addition to the crewcenter type page you presently display on your free hosting site. Chances of others joining a VA when all they can see is a sign on page are very slim. Quote
DeletedUser Posted February 5, 2020 Author Report Posted February 5, 2020 7 minutes ago, ProAvia said: Well, you were able to upload the files to the free host, so you should be able to download them too. But first you need to install Wamp or Xxamp and get PHP, MySQL and Apache install to one or the other. Then do a fresh install of phpVMS 5.5.2 to whichever local server program (Wamp or Xxamp) and be sure it is functioning properly. Then you can install the module, template and skin files from your present online install. But I am of the mind that you start totally fresh as you have zero idea of what else is compromised with the free host install. And don't forget that you should have a front end that visitors can access to see what you have to offer. This would be in addition to the crewcenter type page you presently display on your free hosting site. Chances of others joining a VA when all they can see is a sign on page are very slim. Alright, I think that I will start afresh. Many thanks. Quote
Administrators ProAvia Posted February 5, 2020 Administrators Report Posted February 5, 2020 Good luck! Quote
DeletedUser Posted February 6, 2020 Author Report Posted February 6, 2020 13 hours ago, ProAvia said: Good luck! Thanks! Quote
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.