Hi everyone,
Well, this is a problem already solved, but I can't find the solution on my own.
So I'm using drupal 6 with the last version of the module (6.x 1.1) and I can't find how to set the configuration in order to make the module find my request file.
Here is what I've done:
- download the module and installed it
- here is my setting on /admin/store/settings/payment/edit/methods :
Path to pathfile : /var/www/vhosts/WEBSITE.com/mercanet/param/pathfile
Path to request[.exe] : /var/www/vhosts/WEBSITE.com/mercanet/request
Path to response[.exe] : /var/www/vhosts/WEBSITE.com/mercanet/response
(N.B. Drupal is located at /var/www/vhosts/WEBSITE.com/httpdocs/ )
- transfer the folder given by my bank payment solution (Mercanet, BNP Paribas)
- set the rights to be executable on all files
- set the owner and group to vhost owner (i.e. not root:root, but temp:psaserv) (i tried both though, none worked)
- set the pathfile to :
F_DEFAULT!/var/www/vhosts/WEBSITE.com/mercanet/param/parmcom.mercanet!
F_PARAM!/var/www/vhosts/WEBSITE.com/mercanet/param/parmcom!
F_CERTIFICATE!/var/www/vhosts/WEBSITE.com/mercanet/param/certif!
And... it's not working.
I'm getting the drupal error message on the checkout/review page :
Request call error: request executable file not found.
No here is the debug i tried:
- looking at the error logs of my server, the error is : sh: /request: No such file or directory
So I tried putting all the files at the root of the server (/* instead of /var/www/vhosts/WEBSITE.com/*), then the server threw me "Permission denied".
Put the right permission, then I got no more error from the server, but still the same drupal error (Request call error...)
- looking more at the error log, when starting the server, I get :
Init: You should not use name-based virtual hosts in conjunction with SSL!!
I've no idea if that could be the reason why it's not working.
I guess it's either a problem with the paths or with the rights, but I can't figure out how to fix it.
Well any help would be greatly appreciated.
Thanks
Mat
Comments
Comment #1
Mat77 commentedFound it:
The files got corrupted when transfering via ftp to the server, and I made all my tests with the same files.
...
:)
Comment #2
Mat77 commentedComment #3
grannytrolly commentedHi Mat,
Can you confirm the sort of paths you used when you got it working? I've got the same problem, but not sure if it is corrupted files or actual path problems.
Also, the download I got from Credit Agricole was a ZIP file so not sure how to unzip in a Linux friendly way.
Cheers,
GrannyT
Comment #4
anrikun commentedNobody will see your support request unless you open it again :-)
Support about installing the kit should be provided by your bank.
Comment #5
Mat77 commentedHere are the settings I used in the drupal administration interface under Atos/SIPS (Store Administration > Configuration > Payment Settings > Payment methods > Credit Card) :
Path to pathfile: /var/www/vhosts/WEBSITE.com/httpdocs/mercanet/param/pathfile
Path to request executable : /var/www/vhosts/WEBSITE.com/httpdocs/mercanet/request
Path to response executable : /var/www/vhosts/WEBSITE.com/httpdocs/mercanet/response
And the mercanet files are in the folder named mercanet, in the root folder of the website (httpdocs), near the folders "includes", "js", "misc", "modules", "site", "theme", etc.
Few things you should check:
- the paths in drupal back office
- the paths in your bank files
- the permission on your files (755 i think)
To unzip on Linux, a simple unzip in ssh should work:
unzip myfiles.zip
If not, try to convert your zip file in a tarball (files *.tar.gz) and use :
tar -xvzf archive.tar.gz
Courage ;)
Comment #6
grannytrolly commentedHi Mat,
Thanks for your help. I got it working eventually. It was the permissions on the executable files. Dodgy error message though made me check that last of all.
Cheers,
GT.