Jason Ryan Posted May 27, 2017 Report Posted May 27, 2017 Hello - I am in the middle of upgrading Blesta v3 ot Blesta v4.0.1 and I am getting this error when accessing the /admin/upgrade URL Mod rewrite is not enabled, or htaccess is not supported by this server. You must disable pretty URL support in Blesta by removing the .htaccess file. I tried removing the existing .htaccess file and it just 404'd, and I am pretty positive that mod_rewrite is Enabled! Please help! Quote
0 Jason Ryan Posted May 27, 2017 Author Report Posted May 27, 2017 To follow up... 1. Unzipped Blesta-4.0.1 2. Uploaded files to server overwriting existing 3. Accessed /admin/upgrade in address bar, redirects to /install and shows above message I checked with hosting provider and in fact both mod_rewrite & .htaccess are supported Tried removing .htaccess a second time and it redirected to an install screen asking for me to "install" blesta and to supply Database credentials. This doesn't seem to be the way to "upgrade" but like I am installing a brand new install of Blesta. What is going on, thought the upgrade process was supposed to be easy I am re-uploading my backup for now so my app isn't offline and is usable until someone is able to help with this. Quote
0 Paul Posted May 27, 2017 Report Posted May 27, 2017 After uploading the files, before running the upgrader try removing the following files, per https://docs.blesta.com/display/user/Upgrading+Blesta Quote ~/helpers/date ~/helpers/form ~/helpers/html ~/helpers/javascript ~/helpers/pagination ~/helpers/xml ~/lib/cache.php ~/lib/configure.php ~/lib/controller.php ~/lib/dispatcher.php ~/lib/language.php ~/lib/loader.php ~/lib/model.php ~/lib/router.php ~/lib/stdlib.php ~/lib/unknown_exception.php ~/lib/view.php If Blesta redirects to /install it's usually because it doesn't detect a config file config/blesta.php This file should not be removed when upgrading, it's critical that it remain in place and unmodified. Jason Ryan and Michael 2 Quote
0 Jason Ryan Posted May 27, 2017 Author Report Posted May 27, 2017 1 minute ago, Paul said: After uploading the files, before running the upgrader try removing the following files, per https://docs.blesta.com/display/user/Upgrading+Blesta If Blesta redirects to /install it's usually because it doesn't detect a config file config/blesta.php This file should not be removed when upgrading, it's critical that it remain in place and unmodified. Paul - I will give this another go later this evening. Right now I am just trying to get my backup up and running but it just keeps saying "License Invalid". I logged into my account and tried to "reissue" my license but it doesn't seem to have any effect. The same key is still showing and I am completely locked out now. Quote
0 Paul Posted May 27, 2017 Report Posted May 27, 2017 I had updated your ticket. Since you re-issued the license, your installation has not called home. You should try re-saving the license key. If that doesn't work, it hasn't been properly restored. It's very important that your original config file, original Blesta files, and original database have been restored. Quote
0 Jason Ryan Posted May 27, 2017 Author Report Posted May 27, 2017 13 minutes ago, Paul said: I had updated your ticket. Since you re-issued the license, your installation has not called home. You should try re-saving the license key. If that doesn't work, it hasn't been properly restored. It's very important that your original config file, original Blesta files, and original database have been restored. Paul - Am I correct in thinking that the DB had not even been touched since I stopped everything and didn't move forward with the upgrade? It may be attributed to a file issue as I am re-uploading everything now from my original installation. Quote
0 Paul Posted May 27, 2017 Report Posted May 27, 2017 1 minute ago, viablethought said: Paul - Am I correct in thinking that the DB had not even been touched since I stopped everything and didn't move forward with the upgrade? It may be attributed to a file issue as I am re-uploading everything now from my original installation. If you never got to the upgrade screen and ran the upgrade, then your database is most likely untouched. Be certain that your original /config/blesta.php config file is in place, as it's the most critical file in your installation.. as well as the Blesta files for your exact version prior to attempting an upgrade to 4.0 Jason Ryan and Michael 2 Quote
0 evolvewh Posted May 28, 2017 Report Posted May 28, 2017 It sounds like you replaced every file in every existing folder so it's more than likely you lost your config/blesta.php file when you 'uploaded to overwrite all existing files'. Were you able to make progress with this yet? Quote
0 Jason Ryan Posted May 28, 2017 Author Report Posted May 28, 2017 2 hours ago, evolvewh said: It sounds like you replaced every file in every existing folder so it's more than likely you lost your config/blesta.php file when you 'uploaded to overwrite all existing files'. Were you able to make progress with this yet? Hey - I let it go yesterday since I almost had a heart attack thinking I totally screwed something up but got my backup up and running. I may try and give it another go tonight, this time paying a little more attention to what files are being moved around in "helpers' & "lib", and also making sure my existing blesta config file goes untouched. I will report back either way. Thanks for the follow up evolvewh 1 Quote
0 evolvewh Posted May 29, 2017 Report Posted May 29, 2017 13 hours ago, viablethought said: Hey - I let it go yesterday since I almost had a heart attack thinking I totally screwed something up but got my backup up and running. I may try and give it another go tonight, this time paying a little more attention to what files are being moved around in "helpers' & "lib", and also making sure my existing blesta config file goes untouched. I will report back either way. Thanks for the follow up Sounds good. The config/blesta.php contains all of your DB credentials and a key that will basically lock you out of the system if you don't have it so you don't want to overwrite it, the routes.php file, the .htaccess file if you have made any changes and any 3rd party plugins you may be using. Glad you had a backup! Quote
0 Jason Ryan Posted May 29, 2017 Author Report Posted May 29, 2017 1 hour ago, evolvewh said: Sounds good. The config/blesta.php contains all of your DB credentials and a key that will basically lock you out of the system if you don't have it so you don't want to overwrite it, the routes.php file, the .htaccess file if you have made any changes and any 3rd party plugins you may be using. Glad you had a backup! There is a file in the config folder labeled "blesta-new.php" - assuming this doesn't even need to be uploaded when doing an upgrade, it's just used for new installs.... Gonna try to upgrade now. Fingers crossed. Quote
0 evolvewh Posted May 29, 2017 Report Posted May 29, 2017 2 minutes ago, viablethought said: There is a file in the config folder labeled "blesta-new.php" - assuming this doesn't even need to be uploaded when doing an upgrade, it's just used for new installs.... Gonna try to upgrade now. Fingers crossed. That file is there for new installs and to help make sure that you don't overwrite your existing blesta.php file if you're upgrading. Jason Ryan 1 Quote
0 Blesta Addons Posted May 29, 2017 Report Posted May 29, 2017 are you using cPanel ? wich php version installed ? Quote
0 Jason Ryan Posted May 29, 2017 Author Report Posted May 29, 2017 3 minutes ago, Blesta Addons said: are you using cPanel ? wich php version installed ? PHP version is 5.6.3 and the hosting provider does have cPanel v2 running Quote
0 Jason Ryan Posted May 29, 2017 Author Report Posted May 29, 2017 Ok, well the upgrade worked this time but now I am stuck at a License Invalid screen and it's not letting me past it with my License Key!!! ugh... Quote
0 Jason Ryan Posted May 29, 2017 Author Report Posted May 29, 2017 58 minutes ago, viablethought said: Ok, well the upgrade worked this time but now I am stuck at a License Invalid screen and it's not letting me past it with my License Key!!! ugh... Still stuck and not able to advance.... Quote
0 evolvewh Posted May 29, 2017 Report Posted May 29, 2017 2 hours ago, viablethought said: Still stuck and not able to advance.... Did you try re issuing your license? Quote
0 Jason Ryan Posted May 29, 2017 Author Report Posted May 29, 2017 30 minutes ago, evolvewh said: Did you try re issuing your license? Yes, for some reason it is not "phoning" home to validate the key. Have a ticket in and working with Paul to get it sorted out hopefully. Quote
0 Paul Posted May 30, 2017 Report Posted May 30, 2017 20 hours ago, viablethought said: Yes, for some reason it is not "phoning" home to validate the key. Have a ticket in and working with Paul to get it sorted out hopefully. For anyone wondering, this is resolved now. I don't know what the issue was, I simply uploaded 4.0.1, ran the upgrade, and the license validated fine. activa and Jason Ryan 2 Quote
0 Jason Ryan Posted May 30, 2017 Author Report Posted May 30, 2017 7 minutes ago, Paul said: For anyone wondering, this is resolved now. I don't know what the issue was, I simply uploaded 4.0.1, ran the upgrade, and the license validated fine. Would like to thank Paul for helping me out on this, between this Forum and Blesta's own Support Portal you are guys are champions! Thanks to everyone who attempted to pitch in, was a weird issue but have it pretty much sorted out now. activa 1 Quote
Question
Jason Ryan
Hello -
I am in the middle of upgrading Blesta v3 ot Blesta v4.0.1 and I am getting this error when accessing the /admin/upgrade URL
I tried removing the existing .htaccess file and it just 404'd, and I am pretty positive that mod_rewrite is Enabled! Please help!
19 answers to this question
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.