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
  #11  
Old 05-07-2012, 10:44 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: xpayments Cron help please

I just tried that but the email i received was -

/bin/sh: php-cli: command not found

I changed the username as needed, I have contacted qt but waiting for them to get back due to the holiday...
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #12  
Old 05-07-2012, 10:57 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: xpayments Cron help please

I just removed the cd from the above command but received this


/bin/sh: /home/mysite/public_html/xpayments: is a directory
/bin/sh: php-cli: command not found
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #13  
Old 05-07-2012, 11:18 AM
  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

Now - Hands-on should be able to help you if you need the path to php-cli.

You can try php-cli /home/gezawear/public_html/xcart/xpayments/cron.php

If that does not work - I think Hands-On can help you get the paths straight.


---
__________________
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
  #14  
Old 06-06-2012, 01:11 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: xpayments Cron help please

Ive just had a new separate server setup for xpayments, ive been trying to setup a cron job, everything i tried didn't work kept getting emails of various descriptions.

My last cron command in Cpanel was -

php -q /home/mysite/public_html/xpayments/cron.php

I am not receiving any emails now so don't know whether this is a good or bad thing, but ive checked in xpayments backend and i still see this error


The cron.php script execution error
The cron.php script was launched more than 24 hours ago. It is recommended to run cron.php once every 24 hours, otherwise the PCI DSS requirements for protecting cardholder data might not be met. Please check the cron.php launch settings.

Can anyone advise please
Many thanks Dean
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #15  
Old 06-06-2012, 10:18 AM
  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

Use php-cli instead of php in your command line. If php-cli is not found, you have to ask your host for the path to it.

---
__________________
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
  #16  
Old 06-06-2012, 10:52 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: xpayments Cron help please

Hi thanks for your help i change the code to -

php-cli /home/mysite/public_html/xpayments/cron.php

but got this email back - /bin/sh: php-cli: command not found

So presume i have part of the path missing, ive dropped a note to Handson see if they can advise...

Many thanks again
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #17  
Old 06-06-2012, 11:27 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: xpayments Cron help please

Handson have just emailed me back and said -

We have added php-cli to your path and it is now available to your user account

But not sure what i have to do now, wish x-cart guys would have written an easy install for this...

Do i need to do something in Cpanel now or add something extra to this line -

php-cli /home/mysite/public_html/xpayments/cron.php
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #18  
Old 06-06-2012, 11:31 AM
 
hooter hooter is offline
 

X-Adept
  
Join Date: Dec 2004
Posts: 519
 

Default Re: xpayments Cron help please

Use the command line posted here and you'll be good to go:
http://forum.x-cart.com/showpost.php?p=338849&postcount=9
__________________
Blog for X-Cart | Ebay Auction Manager
Reply With Quote
  #19  
Old 06-06-2012, 12:31 PM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: xpayments Cron help please

Hi hooter thanks for your help, Handson sorted the issue out for me, as usual top work from them...this is what the wrote -

There was an error in the script when executed manually:
PHP Fatal error: require_once(): Failed opening required './top.inc.php' (include_path='.:/usr/local/php53/pear') in /home/mysite/public_html/xpayments/cron.php on line 23
Fatal error: require_once(): Failed opening required './top.inc.php' (include_path='.:/usr/local/php53/pear') in /home/mysite/public_html/xpayments/cron.php on line 23

So I created a php.ini file inside of the xpayments directory with the following
include_path="/home/mysite/public_html/xpayments/"

And the script is now executing without error, this is really something that the module developers should include in their documentation ans the required includes are stored directly in the same folder and php did not know to look there by default until specified in the php.ini file.

Hope this will help someone else out as its been a major headache trying to sort this, many thanks to all for your help...
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #20  
Old 06-07-2012, 02:10 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: xpayments Cron help please

Have you tried command like this:

Quote:
cd /home/mysite/public_html/xpayments; php cron.php
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions



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 03:43 PM.

   

 
X-Cart forums © 2001-2020