Web Hosting Forum | Lunarpages

Author Topic: Path to PHP Binary  (Read 1662 times)

Offline nineback

  • Newbie
  • *
  • Posts: 4
Path to PHP Binary
« on: February 04, 2016, 05:47:22 PM »
Can someone tell me the path to the php binary?

Thanks,

Tom

Offline MrPhil

  • Senior Moderator
  • Berserker Poster
  • *****
  • Posts: 6225
Re: Path to PHP Binary
« Reply #1 on: February 04, 2016, 06:16:48 PM »
This is for a cron job or other command line use? If you don't require a particular version of PHP (the default is fine), just php will work. If your server supports multiple versions of PHP (there's no guarantee that the one used by a web page will be the same one that is the command line default), you'll have to search for different php binaries:
Code: [Select]
find / -name php -print 2>/dev/nulland figure out which one is the version you require. You might have to open a support ticket to ask which is which.
Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-

Offline nineback

  • Newbie
  • *
  • Posts: 4
Re: Path to PHP Binary
« Reply #2 on: February 04, 2016, 07:34:35 PM »
Thanks MrPhil.  This is for a cron job.  i will try using just php.

Tom
« Last Edit: February 04, 2016, 07:36:09 PM by nineback »

 

Share |