Link to home
Start Free TrialLog in
Avatar of pzozulka
pzozulka

asked on

What's the default location of PHP

How do I find the default location of PHP on my Linux Server (Red Hat Fedora Core 7 - I think).
I need this for the special instructions on setting up a cron job:
In my case, /usr/local/bin is empty.

Ensure that the first line of the cron file is the location of php on the server.  
Default first line entry on this file is:
#!/usr/local/bin/php -q
The /usr/local/bin/php should be the location of php
ASKER CERTIFIED SOLUTION
Avatar of Steve
Steve
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pzozulka
pzozulka

ASKER

I tried both of your suggestions and get this response, an ideas? Thanks for your help.
Extension '/var/www/vhosts/domain.com/httpdocs/spot/admin/cron/cron_pop.php' not present.

cron_pop.php is the script where I inserted
1) #!/usr/bin/env php -q
2) #!/usr/bin/php -q (<---------result of 'which php')
Nevermind, in the cron job setup I entered this in the command line instead:
/usr/bin/php /var/www/vhosts/domain.com/httpdocs/spot/admin/cron/cron_pop.php
Yeah under cron you need to specify the entire path.. as youve done..