Finding the path to an executable

How to find the full path to an executable file on your server.

The full path to an executable is often needed when configuring a CMS or setting up a cron job.

Connect to your server via SSH and run:

whereis application_name

For example, to find the path to the PHP executable:

whereis php

Output:

php: /usr/bin/php /usr/share/man/man1/php.1.gz

In this case, /usr/bin/php is the full path to the PHP executable.

Learn more about working in the console

Help

If you have any questions or need assistance, please contact us through the ticket system — we're always here to help!

Need help?Our engineers will help you free of charge with any question in minutesContact us