Moving website shopsite cart is attached to different folder

General ShopSite user discussion

Moving website shopsite cart is attached to different folder

Postby Olivier » Sun Jul 18, 2010 8:01 am

I have several websites hosted by bluehost, so one website was the primary and all its files located at the root, and the other addon domains each had their own separate subfolders. To better organize my server space I decided to move the main website to its own subfolder as well, so I modified the .htaccess at the root, moved the files, and all was good.

Except now apparently my shopsite cart install is borked as the shop folder has moved, the link to the shopping cart does not work anymore and I can't even log into my account. Any ideas on how to fix this?

Thanks.
Olivier
 
Posts: 8
Joined: Tue Jun 01, 2010 5:40 pm
Location: USA

Postby Jim » Sun Jul 18, 2010 8:49 am

There are a number of symbolic links that were probably lost when you moved the store. The best thing to do would be to restore if form a backup if that is possible (and it contained the symlinks).

You might also try creating a symlink in the previous location that points to where the store is now located so when you access the old url it points to the new location.

Other than that the thing to do would be to contact ShopSite support tomorrow and get them to fix the issue. you can purchase a support incident at http://shopsite.com/support_pricing.html
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby Olivier » Sun Jul 18, 2010 10:52 am

What do you mean by "symbolic" links?

All the other links are working fine, except for that one, but it's not a regular link of course...
Olivier
 
Posts: 8
Joined: Tue Jun 01, 2010 5:40 pm
Location: USA

Postby Jim » Mon Jul 19, 2010 8:19 am

http://en.wikipedia.org/wiki/Symbolic_link

Basically it is a file that points to another file location. All unix type operating systems use them. A slightly different implementation called a shortcut is used by windows. A symbolic link makes it so you only have to have one file containing data and the symbolic links in other locations point to the file that contains the data.

In ShopSite there are symbolic links in the ss and sc directories that point to files in other locations. Both ss and sc directories have a symlink to the store's auth file in the store's data directory.
The following text box contains a list of the symlinks in the ss and sc directories. Note that sp2 is the storeid for my test store and the ShopSite install directory on the server is /home/jim/10sp2
Code: Select all
In the sc directory
global.aa -> /home/jim/10sp2/ss/global.aa
libsscommon.so.1 -> /home/jim/10sp2/ss/libsscommon.so.1
localeinfo.dat -> /home/jim/10sp2/ss/localeinfo.dat
sp2.aa -> /home/jim/10sp2/ss/sp2.aa
 sp2.auth -> /home/jim/10sp2/data/sp2/sp2.auth
The ss directory has these
certs -> /home/jim/10sp2/sc/certs
libgcc_s.so.1 -> /home/jim/10sp2/sc/libgcc_s.so.1
libpq.so.5 -> /home/jim/10sp2/sc/libpq.so.5
libsqlite.so.0 -> /home/jim/10sp2/sc/libsqlite.so.0
libsqlite3.so.0 -> /home/jim/10sp2/sc/libsqlite3.so.0
sp2.auth -> /home/jim/10sp2/data/sp2/sp2.auth

If these links are not properly in place then ShopSite won't function correctly.

Note: since Windows doesn't truely support symlinks we have had to work around the issue by putting duplicate copies of most of the files that are normally symlinks in the ss and sc directories.

The exceptions on windows are the <storeid>.aa file in the sc directory is the actual file and the ss directory has a special file that we read to get the location of the <storeid>.aa file in the sc directory. Both the ss and sc directories have a special file that we read to get the path to the data directory <storeid>.auth file.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: Google [Bot] and 64 guests