Welcome to UnableTo.com, where you can state any issue that you are unable to perform and receive answers from other members of the community.

PHP - Unable to find php path in php5

0 votes
I am attempting to create a CRON job to run in ATT Webhosting but am unable to find the path to PHP. I contacted support and they stated that they do not support CRON jobs. I receive an email that states "php: not found".
asked 3 months ago by anonymous

1 Answer

0 votes

To find the path to PHP you can create a php page with the below code that will show the exact required path.

<?php
echo exec("which php");
?>

I ran this on mine and it output a path of /usr/local/bin/php which is running for me without issue.

answered 3 months ago by giggidy23 (280 points)

Related questions