Post by dos101 » Thu Sep 15, 2016 7:13 am

Hi everyone,

I am a new OpenCart user.

I have successfully installed the program on a DigitalOcean Ubuntu server here:
http://aosdev.xyz/

However when I try to access the admin on the expected URL I see what looks like the shop homepage but without the CSS and images:
http://aosdev.xyz/admin/

Below is my admin/config.php file:

Code: Select all

// HTTP
define('HTTP_SERVER', 'http://aosdev.xyz/admin/');
define('HTTP_CATALOG', 'http://aosdev.xyz/');

// HTTPS
define('HTTPS_SERVER', 'http://aosdev.xyz/admin');
define('HTTPS_CATALOG', 'http://aosdev.xyz/');

// DIR
define('DIR_APPLICATION', '/home/forge/aosdev.xyz/catalog/');
define('DIR_SYSTEM', '/home/forge/aosdev.xyz/system/');
define('DIR_IMAGE', '/home/forge/aosdev.xyz/image/');
define('DIR_LANGUAGE', '/home/forge/aosdev.xyz/catalog/language/');
define('DIR_TEMPLATE', '/home/forge/aosdev.xyz/catalog/view/theme/');
define('DIR_CONFIG', '/home/forge/aosdev.xyz/system/config/');
define('DIR_CACHE', '/home/forge/aosdev.xyz/system/storage/cache/');
define('DIR_DOWNLOAD', '/home/forge/aosdev.xyz/system/storage/download/');
define('DIR_LOGS', '/home/forge/aosdev.xyz/system/storage/logs/');
define('DIR_MODIFICATION', '/home/forge/aosdev.xyz/system/storage/modification/');
define('DIR_UPLOAD', '/home/forge/aosdev.xyz/storage/upload/');
define('DIR_CATALOG', '/home/forge/aosdev.xyz/catalog/');
Note that the Ubuntu droplet where I installed the website was created using Laravel Forge https://forge.laravel.com/

I think that means that the Ubuntu server is running Nginx and not Apache. Perhaps that is part of the problem? Some issue with mod_rewrite maybe?

Would appreciate any advice.

Regards,
David

Newbie

Posts

Joined
Thu Sep 15, 2016 7:02 am

Post by victorj » Fri Sep 16, 2016 6:15 am

it looks like there is a error in your admin config.php file

Code: Select all

// DIR
define('DIR_APPLICATION', '/home/forge/aosdev.xyz/catalog/');
should be

Code: Select all

// DIR
define('DIR_APPLICATION', '/home/forge/aosdev.xyz/admin/');

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Eigen productie en snelle levering.
https://123-deurrubbers.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by dos101 » Fri Sep 16, 2016 6:40 am

You are absolutely right Victor! I copied those from the catalog config, stupid mistake!

Veel dank! :)

David

Newbie

Posts

Joined
Thu Sep 15, 2016 7:02 am

Post by david_cheong » Mon Nov 13, 2017 10:50 am

I have the same problem, and I check all my configuration have no issue.

Is there any other possible to check on this? i just migrate my website from IIS + Apache to Ubuntu + Nginx PHP 7.0

Trying search for few days still no luck on this

EC-Realty.com

Tech Sharing...
Image

David World...
Image


User avatar
Newbie

Posts

Joined
Tue Mar 12, 2013 10:36 am
Location - Malaysia
Who is online

Users browsing this forum: No registered users and 21 guests