Question: |
Good evening, cron should execute /usr/bin/php /home/lexuszp/public_html/cron/soforp_product_feed.rroperty not running correctly, you can see what error crashes? |
Answer: |
Hello errors in /home/lexuszp/public_html/cron/error_log [27-Jun-2016 21:00:01 Europe/Moscow] PHP Fatal error: <br>The encoded file <b>/home/lexuszp/public_html/catalog/model/feed/soforp_product_feed.php</b> requires a license file.<br>The license file <b>/home/lexuszp/public_html/soforp_product_feed_license.txt</b> is not valid for this server. in Unknown on line 0 |
Question: |
Good evening. When run from the crown is assumed that no validation will be performed on the domain. You have some reason this check is performed. What are we going to do? |
Answer: |
Hello. the error says that you don`t have a license. you guinebretiere to developers |
Question: |
here are the details http://forum.ioncube.com/viewtopic.php?p=9420&sid=70c8e0061ed8fb59086e6bce99fbbd63 |
Question: |
I am the developer :) my name is Alexander, I represent the interests of the client. Usually all hosting cron tasks work fine, but have you checked the domain in the console that this domain is not, and in the end throws out a message stating that the license is not suitable. |
Answer: |
what do these items have to our server? your script validates the license and displays an error |
Question: |
License checks library ioncube loader installed on your server. Either you configured it wrong, as in the mode (cli) should not be validation for a domain, or you incorrectly run php from cron for example running it cgi version. Now what does this have to do with your server |
Answer: |
the library was not set, it is used as is. What is meant by \"library setup\" ? which version of ioncube You need? in what form you downloaded sifrovanie scripts? definitely need to load them only in binarnom mode |
Question: |
I have a feeling that you can`t hear me. I say that I am a developer, but you do treat binary and text mode. When you open the script through the web server all works fine. So the script and the license is working and loaded correctly. incorrectly triggered to run the same script via the console cli. Here`s again the link where you blogged that the license check to be run from the cli mode should not. This means that either you have something messed up with this \"as is\" with the installation of ioncube, or start from under the crown not the cli-version of php, and the cgi version, which is not suitable. |
Question: |
http://forum.ioncube.com/viewtopic.php?p=9420&sid=70c8e0061ed8fb59086e6bce99fbbd63 - the actual link |
Answer: |
ioncube is not ustanavlivatsya separately, it come in TV nabop php modules ustanovlennyh default with cpanel. all php scripts work as cgi. |
Question: |
well here we come to the crux of the problem. Cron script is run as cgi, i.e. in the mode of the web server, not the console. In this mode, ioncube expects to see $_SERVER[`SERVER_NAME`] or $_SERVER[`HTTP_HOST`], which does not see and on what swears. Hence the question - either you have to stick the domain information when you run out of Krone ( DOP configs blaze? ) or please provide some cli-version of php |
Answer: |
try to run the script in cron web browser, wget ispolzuya . You say that in the browser it is running , sledovatelno running using wget should work |
Question: |
All right, using wget it will run, but then why do we need crowns? :) Crowns need to ensure that we can execute the script without time limit at 30 seconds. using wget again we swooped down on this limitation |
Answer: |
if You hotjet to run the scripts without ogranicheniy we can offer You vps server http://www.ukrline.com.ua/tarif_vps.php it`s a shared hosting server and limitations there will always be |
Question: |
Yes, but cron script without restrictions, right? |
Question: |
well, let`s say on ukraine.com.ua also there is a limit on start-up of the crown, there is a time limit about 5 minutes. This would be quite satisfied |
Answer: |
we have a limit 90 seconds. |