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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
/usr/bin/php /var/www/vhosts/domain.com
Yeah under cron you need to specify the entire path.. as youve done..
ASKER
Extension '/var/www/vhosts/domain.co
cron_pop.php is the script where I inserted
1) #!/usr/bin/env php -q
2) #!/usr/bin/php -q (<---------result of 'which php')