Page 1 of 1

can get opencart to work apache problem

PostPosted: 17. August 2014 18:00
by sofuca
Hello

I'm trying to get opencart working on my lan and am having some strange results.

Some background

I've installed xampp-win32-1.8.3-4-VC11-installer onto Windows server 2008 R2 x64

Ran the installer as Admin - it all installed fine set passwords everything seems okay.

the only things I've done is to install opencart into

C:\xampp\htdocs\opencart

It was all working fine I could see the new store front which looked like this

Image

I then changed the following lines in the C:\xampp\apache\conf\httpd.conf file

#DocumentRoot "C:/xampp/htdocs"
#<Directory "C:/xampp/htdocs">
DocumentRoot "C:/xampp/htdocs/opencart"
<Directory "C:/xampp/htdocs/opencart">

now i have this horrible screen

Image

I have a feeling I need to edit some other config files but have no idea which ones?

Can anyone help? I'm sure its very simple....

Re: can get opencart to work apache problem

PostPosted: 18. August 2014 06:13
by Altrea
Hi,

This is an openCart configuration issue. Changing the DocumentRoot will result in wrong asset urls so your css, js and image files could not be find. OpenCart still expects the old path.
If you cannot solve this issue with this amount of information, please ask at an OpenCart support channel how to solve this issue.

best wishes,
Altrea

Re: can get opencart to work apache problem

PostPosted: 18. August 2014 12:08
by Nobbie
This is also a general issue - you MUST NOT change DocumentRoot AFTER installing any Software in htdocs. This results in different URLs for the same document and may cause several problems. If you want to run your software from a different DocumentRoot, FIRST change DocumentRoot and THEN install the related software.