PDA

View Full Version : Secure Root Folder Above Main Root Folder - Possible?


rjmichaels
07-03-08, 04:59 PM
I have MIVA Merchant 5 installed (MIVAsql store) and all is working well so far except for the secure areas of the store. The error I get when trying to access these areas is:

Error Code : MER-DBA-00003
Description : MIVA Merchant has not been installed, or merchdb.dat is missing/corrupted

I sent the merchdb.dat file off to MIVA and they confirmed that it was okay. It's also uploaded in the same spot that they told me to place it. Which leaves me thinking it might be the way that our secure root directories are setup. The directory setup is like this:

domainname.com
|
- htdocs
|
- mm5 (root directory for non-secure modules)
secure.domainname.com
|
- domainname.com
|
- mm5 (root directory for secure modules)

Can this be done? I've tried setting the secure directory root folder location in the admin panel to both "/secure.domainname.com/domainname.com/mm5/" and "/../../secure.domainname.com/domainname.com/mm5/" and neither seems to make a difference.

I didn't do the installation of the MIVA Merchant either, so I'm not sure if this ever worked correctly. Any help would be greatly appreciated!

ILoveHostasaurus
07-03-08, 05:28 PM
It sounds like the issue is that the secure server is operating from a different directory structure than the insecure server, or at least it's apache web server config or cgi-bin directories are different. Depending on how the Miva Merchant Empresa engine software was installed, it may be using a config file called mivavm.conf that resides in the same cgi-bin directory as the mivavm binary file, or all the configuration directives could be in the web server config file itself. If they're in the cgi-bin, then the secure version of your site is probably using a different cgi-bin folder where the mivavm.conf is missing or wrong, in which case you may just need to copy the one from the insecure site in. If the directives are inside the web server config, they'll need to be duplicated into the secure web server config.

rjmichaels
07-06-08, 03:31 AM
Thanks for the help. We are trying to host the insecure and secure data in a different directory structure. When I did a search on the server for "mivavm" I didn't come up with any files. Is this file created on the install of Miva Merchant, or the creation of the store? Is it something I can create separately and upload?

ILoveHostasaurus
07-07-08, 06:17 PM
mivavm is the name of the binary that processes Miva Merchant requests. Running Merchant out of two different directories would be very problematic for the reason I mentioned; I would not recommend doing that as you'll end up having to write a job to monitor and sync the contents between the two anyway since one copy of the store script files would be out of date after an update is done.