Post by Vector224 » Wed Nov 07, 2018 7:21 am

I have an Opencart website which is currently live on the web. However, I decided to install my website on my localhost in case I need to do any modifications and testing before applying them to my site, I have done all the required procedures to install my website on my localhost, but it doesn't seem ??? to be working with me.

Here is what I did:

1. I downloaded my files + my database.
2. I moved my files to this directory C:/wamp64/www/public_html/
3. I uploaded my database to PhpMyAdmin.
4. I modified my two config.php files.

and here is what I did in my C:/wamp64/www/public_html/config.php

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://localhost');

// HTTPS
define('HTTPS_SERVER', 'https://localhost/');

// DIR
define('DIR_APPLICATION', 'C:/wamp64/www/public_html/public_html/catalog/');
define('DIR_SYSTEM', 'C:/wamp64/www/public_html/system/');
define('DIR_IMAGE', 'C:/wamp64/www/public_html/image/');
define('DIR_LANGUAGE', 'C:/wamp64/www/public_html/catalog/language/');
define('DIR_TEMPLATE', 'C:/wamp64/www/public_html/catalog/view/theme/');
define('DIR_CONFIG', 'C:/wamp64/www/public_html/system/config/');
define('DIR_CACHE', 'C:/wamp64/www/public_html/system/storage/cache/');
define('DIR_DOWNLOAD', 'C:/wamp64/www/public_html/system/storage/download/');
define('DIR_LOGS', 'C:/wamp64/www/public_html/system/storage/logs/');
define('DIR_MODIFICATION', 'C:/wamp64/www/public_html/system/storage/modification/');
define('DIR_UPLOAD', 'C:/wamp64/www/public_html/system/storage/upload/');


// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', '');
define('DB_DATABASE', 'dertnac1_adderah');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');
And in the second config file in this directory: C:/wamp64/www/public_html/admin/config.php

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://localhost/admin/');
define('HTTP_CATALOG', 'http://localhost/');

// HTTPS
define('HTTPS_SERVER', 'https://localhost/admin/');
define('HTTPS_CATALOG', 'https://localhost/');

// DIR
define('DIR_APPLICATION', 'C:/wamp64/www/public_html/admin');
define('DIR_SYSTEM', 'C:/wamp64/www/public_html/system/');
define('DIR_IMAGE', 'C:/wamp64/www/public_html/image/');
define('DIR_LANGUAGE', 'C:/wamp64/www/public_html/admin/language/');
define('DIR_TEMPLATE', 'C:/wamp64/www/public_html/admin/view/template/');
define('DIR_CONFIG', 'C:/wamp64/www/public_html/system/config/');
define('DIR_CACHE', 'C:/wamp64/www/public_html/system/storage/cache/');
define('DIR_DOWNLOAD', 'C:/wamp64/www/public_html/system/storage/download/');
define('DIR_LOGS', 'C:/wamp64/www/public_html/system/storage/logs/');
define('DIR_MODIFICATION', 'C:/wamp64/www/public_html/system/storage/modification/');
define('DIR_UPLOAD', 'C:/wamp64/www/public_html/system/storage/upload/');
define('DIR_CATALOG', 'C:/wamp64/www/public_html/catalog/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', '');
define('DB_DATABASE', 'dertnac1_adderah');
define('DB_PORT', '3306	');
define('DB_PREFIX', 'oc_');

But I am getting an internal server error and it's not working for me, could you please help and tell me what I am doing wrong here?

Attachments

internal-error.png

internal-error.png (104.7 KiB) Viewed 497 times


New member

Posts

Joined
Thu May 03, 2018 4:43 am


Post by IP_CAM » Wed Nov 07, 2018 12:50 pm

Well, you don't seem to care much about details
---
define('HTTP_SERVER', 'http://localhost');
define('HTTPS_SERVER', 'https://localhost/');
--
define('DIR_APPLICATION', 'C:/wamp64/www/public_html/admin');
define('DIR_SYSTEM', 'C:/wamp64/www/public_html/system/');
---
when it comes to adding a FORWARD SLASH '/' to the end of each Line,
as it should be done in the first place.
---
define('HTTP_SERVER', 'http://
define('HTTPS_SERVER', 'https://
--
And you cannot use HTTPS in your local Environment anyway, therefore, change:
define('HTTPS_SERVER', 'https://localhost/');
to:
define('HTTPS_SERVER', 'http://localhost/');
to also make all internal SSL routing change to HTTP !
---
Ernie

I'm rarely still active at the OC Forum. To reach me, contact: jti@jacob.ch
A Demoversion of my free OpenCart LIGHT v.1.5.6.5 Software Edition
can be seen in real Action here: http://www.jti.li/shop/
---
1'000+ FREE OC Extension-Repositories - from OC v.1.5.x up,
on the world's largest OC-related Github Site: https://github.com/IP-CAM
---
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by OSWorX » Wed Nov 07, 2018 1:34 pm

IP_CAM wrote:
Wed Nov 07, 2018 12:50 pm
And you cannot use HTTPS in your local Environment anyway ...
Not true, SSL can be used, has only to be installed and activated (see inside the documentation of WAMPP/LAMPP/XAMPP)

Custom Development | Individuelle Entwicklung | Support & Bugfixes

Image Image Image


User avatar
Guru Member
Online

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by IP_CAM » Wed Nov 07, 2018 1:50 pm

Well, but then, he will be back... for you, to handle it ! :laugh: :crazy:

I'm rarely still active at the OC Forum. To reach me, contact: jti@jacob.ch
A Demoversion of my free OpenCart LIGHT v.1.5.6.5 Software Edition
can be seen in real Action here: http://www.jti.li/shop/
---
1'000+ FREE OC Extension-Repositories - from OC v.1.5.x up,
on the world's largest OC-related Github Site: https://github.com/IP-CAM
---
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Vector224 » Wed Nov 07, 2018 8:49 pm

IP_CAM wrote:
Wed Nov 07, 2018 1:50 pm
Well, but then, he will be back... for you, to handle it ! :laugh: :crazy:
:laugh: Got it thanks!

New member

Posts

Joined
Thu May 03, 2018 4:43 am

Who is online

Users browsing this forum: No registered users and 17 guests