can get opencart to work apache problem

Problems with the Windows version of XAMPP, questions, comments, and anything related.

can get opencart to work apache problem

Postby sofuca » 17. August 2014 18:00

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....
sofuca
 
Posts: 1
Joined: 17. August 2014 17:40
XAMPP Version: 5.6.3
Operating System: windows sever 2008 r2 x64

Re: can get opencart to work apache problem

Postby Altrea » 18. August 2014 06:13

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6947
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: Windows 10 Pro x64

Re: can get opencart to work apache problem

Postby Nobbie » 18. August 2014 12:08

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.
Nobbie
 
Posts: 7152
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 45 guests