Page 1 of 1

Failed first time installation

Posted: Thu Apr 14, 2016 9:47 am
by Beemerang
Hi All,

I am brand-new to OpenCart and this is my first installation attempt so please bear with me.

I am attempting a clean install on a new domain (no existing files or folders). I have followed the install instructions in the OC help documentation to the letter but when I try to open the domain, the following code is returned in my browser window:

Code: Select all

'!'); } if (method_exists($model, $method)) { $output = call_user_func_array(array($model, $method), $args); } else { throw new \Exception('Error: Could not call model/' . $route . '!'); } // Trigger the post events $result = $registry->get('event')->trigger('model/' . $route . '/after', array_merge(array(&$route, &$output), $args)); if ($result) { return $result; } return $output; }; }	}
I am using Safari 9.1, Transmit as FTP client and running OSX El Capitan.

My Steps:
1. Upload the install folder from the downloaded OC zip file to the root folder of my domain.
2. Create the MySQL database and user name
3. Open domain in browser.

I would be really grateful if anyone could explain where I went wrong.

Thank you,
Beemerang

Re: Failed first time installation

Posted: Thu Apr 14, 2016 10:37 pm
by villagedefrance
Ok, here is the correct way of doing a clean install:

STEP 1: Create a new Database on your server. Recommended "collation" is "utf8_general_ci". If you have messed-up the first time around, make sure the DB is empty. Drop existing tables if any.

STEP 2: Upload ALL the files contained in the "upload" folder at the root of your domain/server. There are 2 ways of doing this: One is to extract the Opencart Zip locally and then upload all the files by FTP, or Two by uploading the Opencart Zip directly on your server and then extract it at the root. The second option is of course the fastest.

STEP 3: Rename the 2 files "config_dist.php" to "config.php". The first one is at the root and the second in the "admin" folder.

STEP 4: Run the installer in your browser by going to "http://<yourdomain>/install/index.php" and follow instructions.

Welcome onboard and good luck!

Re: Failed first time installation

Posted: Tue Apr 19, 2016 12:40 pm
by Randem
Hi Beemerang,

Some additional information:

You can upload to another folder other than the root and install in that folder. Of course you will need to access OpenCart via the whole path to the folder I.E. www.mydomain.com/opencartfolder/install

When uploading via FTP make sure you upload in binary to avoid any character conversions. This will help avoid corruption on the upload.

Re: Failed first time installation

Posted: Tue Apr 19, 2016 12:47 pm
by sarthakinfotech
hi,
one more option for you to install the opencart at your pc or laptop.
you may install xampp or wampp and may try on the installation.

Re: Failed first time installation

Posted: Wed Apr 20, 2016 7:19 pm
by Beemerang
Hello sarthakinfotech and randem,

Apologies for the delay in saying my thanks!

Thanks a million for the detailed info, I am going to give it a shot right now.

I really appreciate the help, I have been pulling my hair out by the roots!

Cheers.
Beem