What is My Absolute Path?

Your absolute path is the full directory path to your website files on the server. It’s essential for configuring applications, scripts, or anything that requires precise file locations on the server. On UnderHost hosting, the typical absolute path follows this format:

Absolute Path Format

/home/username/public_html/

Here’s a breakdown of the components:

  • /home/: The root directory for all hosting accounts.
  • username: This is your unique cPanel username.
  • public_html/: The directory where your main website files are stored.

Examples of Absolute Paths

  • Main Domain: /home/username/public_html/
  • Addon Domains: /home/username/addondomain/
  • Subdomains: /home/username/public_html/subdomain/

Note: Replace username with your actual cPanel username, and addondomain or subdomain with the folder name specific to your additional domains or subdomains.

How to Find Your Absolute Path

If you’re unsure of your specific absolute path, you can confirm it by following these steps:

1. Check in cPanel

  1. Log in to your cPanel account through the CustomerPanel.
  2. Look for "File Manager" in the Files section and open it.
  3. The root folder for your files (public_html) will display your absolute path in the address bar at the top.

2. Use a PHP Script

If you’re setting up an application or need precise confirmation, create a PHP file to display the absolute path:

  1. Create a file named pathinfo.php in your public_html folder.
  2. Add this code:
    <?php
    echo __DIR__;
    ?>
  3. Visit the file in your browser (e.g., https://yourdomain.com/pathinfo.php). It will display your absolute path.
  4. Delete the file after use to ensure security.

Why Do You Need Your Absolute Path?

  • Script Configuration: Applications like WordPress, Joomla, or custom scripts often require the absolute path to locate files and directories.
  • Error Troubleshooting: Knowing your path can help identify issues when a script fails to find necessary files.
  • Backups: Use the absolute path to correctly point to files or folders during automated backup processes.

Need Help?

If you need further assistance identifying your absolute path or configuring your website, contact our support team through the CustomerPanel. We’re here to help!

  • 0 Users Found This Useful

Related Articles

A Brief Look into cPanel and Its Features

What is cPanel? cPanel is a powerful, user-friendly web hosting control panel that runs the back...

Creating Secure Passwords

Creating a secure password is essential to protect your hosting account, email, and website from...

Index File Naming Conventions

The index file is a crucial component of your website. It serves as the default file that your...

Should I Keep a Local Copy of My Website in Case of Trouble?

Yes, keeping a local copy of your website is highly recommended. Maintaining a backup of your...

My Pages Aren't Being Updated When I Upload

If your website pages aren’t reflecting the changes after you upload updates, it’s likely due to...