Recommended Posts

Posted

Hi guys,

can't seem to find an answer to this one, if you would know its great help!

I want to run a CRON job to call a PHP file that IS NOT in my public_html folder.

The following works fine:

php -q /home/USER/<file> >/dev/null

However, I need PHP 5.3... Now in Apache I've setup a handler; but how should I change the CRON command to do the same outside public_html?

Thanks!

Posted

You used some pretty small text so for anyone else:

/usr/local/php53/bin/php

That is the location for PHP 5.3 and the location for PHP 5.4 would be:

/usr/local/php54/bin/php

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...