Locate the Website Web Root Folder
Find the public website folder that serves your store domain so you can place KitConnect or other required files in the correct location.
Locate the Website Web Root Folder
Section titled “Locate the Website Web Root Folder”Locate the public website folder that serves your store domain before placing KitConnect or another server-side file that must be reachable from the browser.
The correct web root is the public folder for the live store domain. It commonly contains index.php or index.html. On some platforms, the public web root is a subfolder such as public or pub rather than the top project folder.
Choose the matching use case
Section titled “Choose the matching use case”Before you begin
Section titled “Before you begin”Prepare the access method that applies to your hosting:
- a hosting control panel such as cPanel, DirectAdmin, Plesk, aaPanel, CyberPanel, HestiaCP, or CloudPanel; or
- SFTP or FTP access through a file-transfer tool such as FileZilla or WinSCP.
If you do not know which hosting setup you have, ask the hosting provider or site owner which control panel or file-access method is available for the store.
cPanel
Section titled “cPanel”Use cPanel when the site is hosted on shared hosting or on a server managed through cPanel.
- Sign in to cPanel.
- Open Domains.
- Find the store domain and read the Document Root column.
- Open File Manager.
- Browse to that exact path.
- Confirm that the folder contains the public site files, such as
index.phporindex.html.
Common cPanel paths:
public_htmlpublic_html/example.comIf the store is the primary domain, the web root is often public_html. If the store is an addon domain, the web root can be a domain-specific subfolder.
DirectAdmin
Section titled “DirectAdmin”- Sign in to DirectAdmin.
- Open File Manager.
- Browse to the domain folder.
- Open
public_htmlinside that domain folder. - Confirm that the folder contains the public site files.
Typical DirectAdmin path:
domains/example.com/public_html- Sign in to Plesk.
- Open Websites & Domains.
- Select the store domain.
- Read the Document root path shown for that domain.
- Open File Manager and browse to that path.
- Confirm that the folder contains the public site files.
Typical Plesk path:
httpdocsSome Plesk installations on Linux use a full path similar to the following:
/var/www/vhosts/example.com/httpdocsaaPanel
Section titled “aaPanel”- Sign in to aaPanel.
- Open Website.
- Find the store domain.
- Read the Root directory shown for that site.
- Open that path in the panel file manager.
- Confirm that the folder contains the public site files.
Typical aaPanel path:
/www/wwwroot/example.comCyberPanel
Section titled “CyberPanel”- Sign in to CyberPanel.
- Open Websites > List Websites.
- Select Manage for the store domain.
- Read the Document Root value.
- Open the file manager or connect through SFTP to that path.
- Confirm that the folder contains the public site files.
Typical CyberPanel path:
/home/example.com/public_htmlHestiaCP
Section titled “HestiaCP”- Sign in to HestiaCP.
- Open Web.
- Select the store domain.
- Review the website path for that domain.
- Open the matching path through the file manager or SFTP.
- Confirm that the public site files are in
public_htmlfor that domain.
Typical HestiaCP path:
/home/username/web/example.com/public_htmlCloudPanel
Section titled “CloudPanel”- Sign in to CloudPanel.
- Open Sites.
- Select the store domain.
- Read the site path shown in the site details.
- Open that path through the panel or SFTP.
- Confirm that the folder contains the public site files.
Typical CloudPanel path:
/home/username/htdocs/example.comSFTP or FTP access
Section titled “SFTP or FTP access”Use this path when you have file-access credentials but do not have a hosting panel or need to double-check the folder directly.
- Connect with SFTP or FTP using a file-transfer tool such as FileZilla or WinSCP.
- In the remote file pane, look for the folder that serves the public website.
- Check the common public-folder names below.
- Open the most likely folder.
- Confirm that the folder contains the public site files.
- If more than one possible folder exists, use the verification method in Verify the Folder Safely.
Common public-folder names:
public_htmlhttpdocswwwhtdocswebwwwrootCommon full paths:
/var/www/html/var/www/example.com/usr/share/nginx/htmlCustom Nginx or Apache path
Section titled “Custom Nginx or Apache path”Use this section when the site owner or host says the domain uses a custom document root and the hosting environment lets you read the active configuration files through the file manager or through SFTP.
Nginx configuration
Section titled “Nginx configuration”Open the active Nginx site configuration and find the root directive for the correct server_name.
Common configuration locations:
/etc/nginx/sites-enabled//etc/nginx/conf.d//etc/nginx/nginx.confExample:
server { listen 80; server_name example.com www.example.com;
root /var/www/example.com/public; index index.php index.html;}In this example, the public web root is:
/var/www/example.com/publicApache configuration
Section titled “Apache configuration”Open the active Apache virtual-host configuration and find the DocumentRoot directive for the correct domain.
Common configuration locations:
/etc/apache2/sites-enabled//etc/apache2/sites-available//etc/httpd/conf.d//etc/httpd/conf/httpd.confExample:
<VirtualHost *:80> ServerName example.com DocumentRoot /var/www/html/example.com
<Directory /var/www/html/example.com> AllowOverride All Require all granted </Directory></VirtualHost>In this example, the public web root is:
/var/www/html/example.comFramework subfolders
Section titled “Framework subfolders”Some PHP applications use a public subfolder as the browser-facing root. Use the exact path configured in the web server. Typical examples include:
/var/www/example.com/public/var/www/magento/pubDo not upload KitConnect to the top project folder when the configured web root is a deeper public folder.
Verify the folder safely
Section titled “Verify the folder safely”Use this check when you want to confirm that the folder is truly the public web root.
- In the suspected web-root folder, create a file named
check-root.txt. - Put a short value in the file, for example
12345. - Save the file.
- Open the browser and go to
https://your-store-domain/check-root.txt. - If the browser shows the file content, the folder is the correct public web root.
- Delete
check-root.txtafter the test.
Example file content:
12345If the browser returns 404 Not Found, the file is not in the active public web root for that domain.
Common mistakes
Section titled “Common mistakes”- Using the top project folder when the public web root is a subfolder such as
publicorpub. - Uploading to the wrong domain folder on multi-site hosting.
- Assuming the web root is always
public_htmlwithout checking the actual domain path. - Leaving the temporary verification file in place after the test.