Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

xpayments Cron help please

 
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions
 
Thread Tools
  #51  
Old 08-07-2012, 08:38 AM
 
laplante laplante is offline
 

Newbie
  
Join Date: Jul 2006
Posts: 7
 

Default Re: xpayments Cron help please

Hi,
I receive the error code 212 when I launch the cron.php from command line.
Could you let me know what that means, please.
I am using Version: 1.0.5
Reply With Quote
  #52  
Old 08-07-2012, 11:19 PM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,119
 

Default Re: xpayments Cron help please

Make sure you run it using CLI version of PHP. See http://help.x-cart.com/index.php?title=X-Payments:Installation#cron.php:_X-Payments_is_using_a_non-secure_protocol_error
__________________
Sincerely yours,
Alex Mulin
VP of Business Development for X-Cart
X-Payments product manager
Reply With Quote
  #53  
Old 08-08-2012, 12:39 AM
 
laplante laplante is offline
 

Newbie
  
Join Date: Jul 2006
Posts: 7
 

Default Re: xpayments Cron help please

Hi,
I am using the CLI version. It only runs when I am root user but not when I am the web-user.
Do you know what the error code means?
Reply With Quote
  #54  
Old 08-08-2012, 05:07 AM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,119
 

Default Re: xpayments Cron help please

Have no idea. Your case needs investigation on your server that can be done within bounds of our incident support for X-Payments
__________________
Sincerely yours,
Alex Mulin
VP of Business Development for X-Cart
X-Payments product manager
Reply With Quote
  #55  
Old 09-21-2012, 01:33 PM
 
gblair gblair is offline
 

Advanced Member
  
Join Date: Jul 2008
Posts: 69
 

Default Re: xpayments Cron help please

I've managed to get the cron.jpb to run under blue host, using:
/ramdisk/bin/php5-cli /home1/domain/public_html/xpayments/cron.php

But it (unexpectedly) generates errors. Are we really expected to understand all this stuff and how to fix it?

Error is -
PHP Warning: require_once(./top.inc.php): failed to open stream: No such file or directory in /home1/domain/public_html/xpayments/cron.php on line 23
PHP Fatal error: require_once(): Failed opening required './top.inc.php' (include_path='.:/usr/php/53/usr/lib64:/usr/php/53/usr/share/pear') in /home1/domain/public_html/xpayments/cron.php on line 23

From what I can see both folders exist. I just don't know how to fix it.

big sigh
__________________
paperwhimsy.com
Gale Blair
4.1.10
Reply With Quote
  #56  
Old 09-21-2012, 03:27 PM
  mcanitano's Avatar 
mcanitano mcanitano is offline
 

eXpert
  
Join Date: Feb 2006
Location: Melbourne, FL
Posts: 216
 

Default Re: xpayments Cron help please

This is what we used on our cPanel:

Code:
php -f /home/username/public_html/xcart-directory/xpayments/cron.php
__________________
Marcello Canitano
New Site: X-Cart v4.5.5 GOLD
X-Cart Mobile v1.4.3
X-Payments v1.0.6
CDSEO Pro v2
Total Server Solutions xCDN

www.silverhorseracing.com
Reply With Quote
  #57  
Old 09-21-2012, 05:01 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: xpayments Cron help please

Look at the command sent to the cron in post #9: http://forum.x-cart.com/showpost.php?p=338849&postcount=9

You can try to do something similar using the paths at your host - you can see one part of the command before the semicolon - the cd is moving to the directory where the x-payments cron is. Then the next part runs the cron after moving to the directory. That ensures it finds the included files referenced in the script.

---
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #58  
Old 02-21-2013, 01:44 AM
 
kevinrm kevinrm is offline
 

X-Wizard
  
Join Date: Aug 2003
Posts: 1,003
 

Default Re: xpayments Cron help please

You have to know exactly where PHP CLI is located or it won't work. Exactly, and they're not all the same.

1) Find out where your PHP CLI is. SSH into your root. If you don't have root access, you'll have to get your hosting company to do it. Once you ssh into root, run this command:

whereis php5

For my server, this was the result:

/usr/bin/php5

Knowing this is everything.

2) Run PHP scripts from Linux command line in this manner:

/user/bin/php5 /path/to/your/script.php

For me that would equate to:

/usr/bin/php5 /home/mypath/public_html/xpayments/cron.php

3) Following X-Cart instruction manual, cron is this:

0 0 * * * cd /home/mypath/public_html/xpayments ; /usr/bin/php5 -f /home/mypath/public_html/xpayments/cron.php

See the ";" between the statements? The first part tells the cron to change directories to where the file is located. The second command instructs it to run that file from the PHP CLI mode.

Took me forever to figure that out!
__________________
X-Cart 5.4.1.39 Live
PHP 7.4.33
5.5.5-10.3.38-MariaDB MariaDB
Apache 2.4
CENTOS 7.8 64Bit Single Quad-Core E3-1241v3 3.4Ghz 8M 1600 w/ HT
32GB RAM 2x 512GB Samsung 850 Pro SSD RAID 1
Reply With Quote
  #59  
Old 02-21-2013, 01:47 AM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,119
 

Default Re: xpayments Cron help please

> You have to know exactly where PHP CLI is located or it won't work. Exactly, and
> they're not all the same.

This is true when you are using a "download-able" X-Payments license.
X-Payments Hosted plans do know where it is located so nothing is needed to be done about PHP CLI setup.
__________________
Sincerely yours,
Alex Mulin
VP of Business Development for X-Cart
X-Payments product manager
Reply With Quote
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:45 AM.

   

 
X-Cart forums © 2001-2020