How to get the full path to a file
Knowing the absolute path to a file is essential for configuring cron jobs, include paths in PHP, or executing scripts via SSH. You can find this information directly within the LxRoot File Manager.
Locating the path:
- Open Websites in the left sidebar.
- Select the specific website where your script or file is located.
- On the Website dashboard, click the Files tab to open the File Manager.
- Navigate to your file, right-click on it, and select Get info.
Result
/var/www/vhosts/example.com/httpdocs/scripts/backup.php
The Full Path will be displayed in the information modal, which you can then copy to your clipboard.
SSH Users:
You can also find your current directory path by logging in via SSH and typing the command pwd (Print Working Directory).