Prepare domain on Online webserver. This installation was via cPanel. Install Opencart via Softaculous (should make updates easier).
1. Then copy Online config.php files (home and admin directories) and save copies for review.
Use these saved copies to:
2. make sure DB_DATABASE has same name in Online Databases>phpMyAdmin.
3. ensure DB_PREFIX has same name in Online Databases>phpMyAdmin>Database Tables.
4. Ensure DB-PASSWORD has the same name in Online Databases > MySQL Databases (under Databases section). If cannot view password (as in cPanel), just change to match the config.php files.
Then Export Local Opencart database files (check 'all' in list box) to sql file.
Then go to Online phpMyAdmin; click on Database to open (viewing tables); then click on Import. In import window, able to choose local sql file. After import, leave phpMyAdmin, then logout.
Then Use FileZilla to transfer Opencart Files, except config.php files from localhost home and admin directories. If the local php files are copied over the Online ones, problems will ensue.
Errors encountered:
Problem 1.
Attempting to install via Softaculous almost impossible due to being constantly logged out before completing the installation.
Solution 1.
This was due to some error in the Chrome browser; changing to another browser stopped the problem.
Problem 2.
Installation of Opencart via Softaculous;
then attempting to login to admin produced "Error 404" and attempting to login to website produced "PHP 8+ required".
Solution 2.
Changing php version solved it. cPanel has a MultiPHP Manager icon in the Software section to do this.
Problem 3.
Exception: Error: Could not make a database link using *********_**oc@localhost!
Message: Access denied for user '*******_**oc'@'localhost' (using password: YES) in /home/********/********.nz/system/library/db/mysqli.php on line 32
Solution 3.
Password in CPanel MySql Database did not match password in Online config.php files (see above).
Problem 4.
Error: Table '*****_**oc.**oc_store' doesn't exist.
Solution 4.
Database prefix was not the same as in the online database table (see above).
Now online!
Personally, I wouldn't use Softaculous.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Indeed.
Why not simply:
1. Copy files from local to live.
2. Copy db from local to live.
3. Adjust both config.php files on live.
Job done.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Glad to hear you chose OpenCart and welcome to the forum.FemmesoleNZ wrote: ↑Sat Sep 09, 2023 11:32 amYour answer is precisely why I wrote the notes. Without wanting to insult your expertise or be provocative. I am a thinking, very much older female without much experience in this arena of developing a website for a small operation. It has taken me a month of solid work to learn, from the offerings available, to decide to use and then learn about Opencart sufficiently enough to even contemplate placing it online. As I said in my notes, it's easy when one knows how; but please have some empathy for those just beginning. I am grateful for help such as this forum; if what I have written helps even one in return, then that's OK.
Thanks for posting your notes as well.
Generally the simpler method I posted is the way to go to avoid various problems, so hopefully it helps!
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Is vice versa true?paulfeakins wrote: ↑Fri Sep 08, 2023 7:05 pm
Indeed.
Why not simply:
1. Copy files from local to live.
2. Copy db from local to live.
3. Adjust both config.php files on live.
Job done.
I mean;
1. Copy files from live to local.
2. Copy db from live to local.
3. Adjust both config.php files on local.
Job done??
Thank you!
Of course.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
I am afraid there seems to be an expired SSL Certificate data came along with the files downloaded from the live site. It requires 'https' connection and I receive the following error when I tried to open the localhost site:
----------------------
Your connection is not private
net::ERR_CERT_AUTHORITY_INVALID
Subject: localhost
Issuer: localhost
Expires on: Nov 9, 2019
Current date: Oct 10, 2024
----------------------
Any suggestions?
Thanks
Change all links in the 2 config.php files to be http rather than https.OpenCustomer wrote: ↑Thu Oct 10, 2024 7:36 pmI am afraid there seems to be an expired SSL Certificate data
...
Any suggestions?
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
My both config file read as follows:paulfeakins wrote: ↑Thu Oct 10, 2024 10:18 pmChange all links in the 2 config.php files to be http rather than https.
// HTTP
define('HTTP_SERVER', 'http://localhost/SiteName/');
// HTTPS
define('HTTPS_SERVER', 'http://localhost/SiteName/');
I am getting https warning in Chrome only. Site works fine on Edge.
Well somewhere in your code you must have an HTTPS.OpenCustomer wrote: ↑Fri Oct 11, 2024 7:03 pmI am getting https warning in Chrome only. Site works fine on Edge.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Problem 3 is wrong password.
Problem 4 is due to opencart 4.0+ uses InnoDB engine, so you need to backup your database before moving to online server.
you cannot direct copy your database files from local to online sever.
InnoDB engine is very different from MyISAM engine.
you can use phpmyadmin to backup and restore your database.
https://www.ectransistors.com/
https://www.transistormosfet.com/
You know what? Deleting the Chrome cookies fixed the problem! Now, localhost site loads just fine.
Thank you for your suggestions so far. I appreciate.
Great stuff, so please add [SOLVED] to the start of this topic title.OpenCustomer wrote: ↑Sat Oct 12, 2024 5:18 pmYou know what? Deleting the Chrome cookies fixed the problem! Now, localhost site loads just fine.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
I am not the starter of this topic. How do I do that?paulfeakins wrote: ↑Mon Oct 14, 2024 6:04 pmGreat stuff, so please add [SOLVED] to the start of this topic title.
No worries, I'll do it now.OpenCustomer wrote: ↑Mon Oct 14, 2024 7:50 pmI am not the starter of this topic. How do I do that?paulfeakins wrote: ↑Mon Oct 14, 2024 6:04 pmGreat stuff, so please add [SOLVED] to the start of this topic title.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Users browsing this forum: No registered users and 2 guests