Would the following command be correct to run an export?
/usr/local/lib/php /home/xxxxxxxxxx/public_html/administrator/components/com_csvi/helper/cron.php --key="#########" --template_id="5"
I can't see the destination file getting updated. I believe that the destination file should be the one in my template settings?
Accepted Answer
Pending Moderation
Thank you, rolandd.
The path was incorrect, but I found a path to php where I got an answer:
But though the cron job is run, it still does not produce any output.
The cron job is run as the user (masked) so there shouldn't be any permissions problems for writing the output, I believe. When I run the export from Joomla backend, it does produce the output file, according to the settings. Thus the template seems OK, but somewhere around the call to the helper/cron.php things don't go as they should. The path to cron.php is correct, tested with ls /home/....../cron.php.
The path was incorrect, but I found a path to php where I got an answer:
root@vps [/]# /usr/bin/php -v
PHP 5.4.45 (cgi-fcgi) (built: Sep 27 2015 12:06:37)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
with XCache v3.2.0, Copyright (c) 2005-2014, by mOo
with the ionCube PHP Loader v4.7.5, Copyright (c) 2002-2014, by ionCube Ltd., and
with Zend Guard Loader v3.3, Copyright (c) 1998-2013, by Zend Technologies
with XCache Cacher v3.2.0, Copyright (c) 2005-2014, by mOo
But though the cron job is run, it still does not produce any output.
Oct 31 06:00:01 vps CROND[24019]: (xxxuserxxx) CMD (/usr/bin/php /home/xxxuserxxx/public_html/administrator/components/com_csvi/helper/cron.php --key="######" --template_id="5")
(from the cron log).The cron job is run as the user (masked) so there shouldn't be any permissions problems for writing the output, I believe. When I run the export from Joomla backend, it does produce the output file, according to the settings. Thus the template seems OK, but somewhere around the call to the helper/cron.php things don't go as they should. The path to cron.php is correct, tested with ls /home/....../cron.php.
Accepted Answer
Pending Moderation
Hello,
You can test this by doing
Is this the correct path/folder? How would I recognize the "php executable"?I don't administer your system, so I don't know which is the correct path, your hosting provider should know.
You can test this by doing
/usr/local/lib/php -v
as it gets you the PHP version. If that is a new version it should be good enough to be used.The secret key, I believe is the one specified on the tab "Details" just beneath the setting "Enable front-end/cron", isn't it?Correct, that was a typo and I have fixed it now. It is the secret key field in your template.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
Thank you for the answer, rolandd. Now I wonder, what exactly should there be in the folder for the php executable? A listing for the one I used is:
root@vps [/usr/local/lib/php]# ls
./ .channels/ .depdblock .filemap pearcmd.php Structures/ XML/
../ Console/ doc/ .lock PEAR.php System.php
Archive/ data/ docs/ OS/ peclcmd.php test/
build/ .depdb extensions/ PEAR/ .registry/ tests/
root@vps [/usr/local/lib/php]#
Is this the correct path/folder? How would I recognize the "php executable"?
Another question, same subject: In the instructions for building the cron command there is a line saying "The password belonging to the supplied username.". Where do I supply a username, and what username should it be? The username for Joomla, or for the server - or which? The secret key, I believe is the one specified on the tab "Details" just beneath the setting "Enable front-end/cron", isn't it?
root@vps [/usr/local/lib/php]# ls
./ .channels/ .depdblock .filemap pearcmd.php Structures/ XML/
../ Console/ doc/ .lock PEAR.php System.php
Archive/ data/ docs/ OS/ peclcmd.php test/
build/ .depdb extensions/ PEAR/ .registry/ tests/
root@vps [/usr/local/lib/php]#
Is this the correct path/folder? How would I recognize the "php executable"?
Another question, same subject: In the instructions for building the cron command there is a line saying "The password belonging to the supplied username.". Where do I supply a username, and what username should it be? The username for Joomla, or for the server - or which? The secret key, I believe is the one specified on the tab "Details" just beneath the setting "Enable front-end/cron", isn't it?
Accepted Answer
Pending Moderation
Assuming that the path to the PHP executable is correct, it looks good. You have set in your template to allow cron usage?
I believe that the destination file should be the one in my template settings?Correct, that is the destination you set on the Source tab.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
- Page :
- 1
- 2
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »