Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Open Websites → Dashboard for the correct site in Hostinger hPanel, then choose File Manager. Start in public_html and look for the configuration filename used by your site’s CMS. For WordPress, that is usually wp-config.php; other platforms use different names and paths.

Open the right website’s files

  1. In hPanel, go to Websites → Dashboard and select the site you need.

  2. Open File Manager. Hostinger provides a current-domain view that opens in that site’s public_html directory, as well as an all-files view for browsing directories across the hosting account. See Hostinger’s File Manager instructions.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  3. In the current-domain view, inspect public_html first. It is the usual website root in Hostinger’s configuration-file guide.

Match the filename to your CMS

There is no single configuration filename shared by every website. Use the CMS and the site’s actual directory layout to guide your search. Hostinger lists these examples:

CMS or application Configuration file Example path
WordPress wp-config.php public_html/wp-config.php
Joomla configuration.php public_html/configuration.php
OpenCart config.php public_html/config.php and public_html/admin/config.php
PrestaShop config.inc.php or, in older versions, settings.inc.php public_html/config/config.inc.php or the older settings.inc.php location
phpBB config.php public_html/config.php
Drupal settings.php public_html/drupal/sites/default/settings.php
Magento env.php public_html/app/etc/env.php
Laravel .env Website root
Moodle config.php Website root
CodeIgniter 4 Database.php public_html/app/Config/Database.php

These are listed examples, not a guarantee that every installation uses exactly the same layout. If your CMS is not listed, Hostinger suggests looking for names such as config, conf or db, and checking directories such as engine, vendor or includes. Its guide also names applications including Bitrix24, MODX, Piwigo, Zen Cart, TYPO3 and SuiteCRM. If the likely file is unclear, consult the CMS developer’s documentation or forum.

Find the file using FTP or SSH

FTP

Connect to the site with your FTP client and browse to its website root; for a typical WordPress installation, Hostinger identifies public_html as the expected location for wp-config.php. If searching for a dotfile such as .htaccess, enable the client’s option to show hidden files. Some FTP clients hide dotfiles by default. Hostinger’s FTP guidance and .htaccess instructions cover these details.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

SSH

If SSH is already available, change to the website root and search for a known database setting. Hostinger suggests commands such as:

grep -irl DB_NAME *
grep -irl DB_USER *

Replace DB_NAME or DB_USER with the database name or username you are trying to locate. These searches can reveal configuration files containing database settings; for WordPress, those settings are commonly in wp-config.php. Hostinger explains the file’s role in its WordPress configuration guide.

When the usual path or file is missing

Confirm the product supports file access

Hostinger says its File Manager is not available for Website Builder sites, and its configuration-file instructions do not apply to AI Builder, which does not use a file-based structure. Check whether the site is a CMS installation on hosting or a Builder product before searching for public_html.

Check the correct domain directory

If the hosting account contains multiple websites, use the all-files view to identify the directory belonging to the domain you are troubleshooting. The current-domain File Manager view is intended for the selected website and opens at its public_html.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Do not mistake .htaccess for the CMS configuration

.htaccess is an optional file for website rules, not a universal database or CMS configuration file. Hostinger says File Manager displays dotfiles by default. If .htaccess is absent there, it may simply not have been created; create one only when the application or instructions for your setup require it. An FTP client may need hidden-file display enabled before the file appears.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Protect configuration contents

Configuration files can contain database connection settings and other sensitive values. WordPress’s wp-config.php, for example, contains database settings. Avoid sharing its contents publicly or changing values unless you know what the change does; Hostinger describes the file’s function in its guide to wp-config.php.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.