9 replies [Last post]
dibbd's picture
Offline
Joined: 02/17/2009
Juice: 65
Was this information Helpful?

I'm trying to setup the credit card system, well at least the Test Gateway for now, and I'm stuck on this field:

Card number encryption key filepath:

I keep getting the error: You have specified a non-existent directory.

My website is located here:

/www/mydomain

so I first made the keys folder here:

/keys

and set the write access to 777 to be sure it wasn't having a write-access issue, but I get the You have specified a non-existent directory. message.

So I tried just keys but get the same You have specified a non-existent directory. error.

So then I created it here:

/www/keys

and still get that message.

So FINALLY, I create the keys folder here:

/www/mydomain/keys

and it works.

But I know you're supposed to create the keys folder outside of your web.

So what's up with that? What am I doing wrong?

--
Certified Medisoft reseller.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Card number encryption key filepath:

It might be related to your server... or you might try something like making the keys folder /keys like your first example but putting in the setting ../../keys. It could be a relative/absolute path thing.

dibbd's picture
Offline
Joined: 02/17/2009
Juice: 65
You are da man Ryan!
Ryan wrote:

It might be related to your server... or you might try something like making the keys folder /keys like your first example but putting in the setting ../../keys. It could be a relative/absolute path thing.

You are da man Ryan!

The ../../keys path worked. I had tried at one point earlier ../keys, but I guess that wasn't going deep enough into the parent folders. Thanks so much, I was about to lose my mind!

--
Certified Medisoft reseller.

gregoryheller's picture
Offline
Joined: 02/18/2009
Juice: 92
Permissions for keys directory

I was having a similar problem on a Media Templ DV server. I had to change some server configuration to allow the web app to reach into a directory that was not in the web root. so now i have my keys directory at the same level as my httpdocs directory (where drupal lives) and i have set the perms on keys to 777 and ubercart seems to be happy, but then as indicated here i tried to tighten the permissions to 776, and when i did, i got an error again on the /admin/store/settings/payment/edit/methods page.

Is it ok to leave the perms wide open at 777? or should the be tightened and if so to what? and is it ok to get the error that keys is not writable once i have written the encryption key?

redhatmatt's picture
Offline
Joined: 05/28/2008
Juice: 22
Could you be specific on the settings you modified...

...on MT DV, I have been working w/ their support for days, and opened open_basedir and IT STILL WON"T WORK!!!! 777 etc. Help.

gregoryheller's picture
Offline
Joined: 02/18/2009
Juice: 92
Re: Could you be specific on the settings you modified...

our client left media temple because of the challenges we were having getting this and civicrm to work properly.

musry7's picture
Offline
Joined: 02/23/2010
Juice: 15
MediaTemple

Any updates on mediatemple (DV)?? I have loved them thus far . . .

LiveWire Marketing
Athens, GA

reformatt's picture
Offline
Joined: 11/27/2008
Juice: 43
Re: MediaTemple

Damn, I am in the exact same boat on MT now =(
I cannot believe there ain't a fix available since MT is so widely used.

redhatmatt's picture
Offline
Joined: 05/28/2008
Juice: 22
go to .htaccess and set to ignore key...

or look at creative hacks solution,

"I found my solution. The master value was set to none looking at the info.php file. So this was very frustrating to work out.

I'm running a DV server at Media Temple where I setup the domain to use one directory for SSL. I started looking at Plesk to see if it had a setting for open_basedir. Found this article: http://kb.parallels.com/en/432

It explained needing a vhost_ssl.conf file if your running ssl. Finally made the connection that I am using https when in the admin. So I created the vhost_ssl.conf file by copying my vhost.conf file and restarted. Problem solved. Key was generated and things looking great."

near the bottom of http://www.ubercart.org/forum/support/6790/encryption_key_file_path_issue

reformatt's picture
Offline
Joined: 11/27/2008
Juice: 43
yes this is great! for MT I

yes this is great! Smiling
for MT I used the following tutorial: http://kb.mediatemple.net/questions/514/Enabling+PEAR+by+setting+your+op...