Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallOpen 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.
Find the file in hPanel
- Sign in to hPanel and open Websites → Dashboard for the domain you want to inspect.
- Open File Manager. You can choose the current website’s files, which open at
public_html, or the view of all hosting files if you need to identify a site directory or work across multiple websites. Hostinger explains the File Manager views and basic actions. - In the website’s file tree, open
public_htmland search for the file associated with the site’s CMS. Hostinger’s configuration-file guide uses this as the usual starting point.
Check the filename and path for your CMS
There is no single configuration filename for every website. These are examples listed by Hostinger; your installation’s actual directory layout may differ.
As an Amazon Associate I earn from qualifying purchases.
| 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 settings.inc.php |
public_html/config/config.inc.php; older versions may use settings.inc.php |
| 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 |
If you cannot find the file
Confirm the right website and directory
With more than one site in a hosting account, make sure File Manager is showing the correct domain. The current-domain view opens at that site’s public_html; use the all-files view when you need to locate a domain’s directory in the wider hosting file tree.
Check the CMS’s own layout
CMS installations can use different paths, and the table above is not exhaustive. If your application is not listed, search for filenames containing terms such as config, conf, or db, and inspect likely directories such as engine, vendor, or includes. If the location remains unclear, consult the CMS developer’s documentation or support forum. Hostinger’s list of CMS configuration files includes additional applications.
Use FTP or SSH if that is how you access the site
With FTP, connect to the site and open its root directory, then check the relevant CMS path. FTP clients can hide dotfiles, so enable display of hidden files when looking for a name that starts with a period, such as Laravel’s .env. Hostinger describes hidden-file handling in its .htaccess instructions and FTP-related guidance.
If you already use SSH and need to locate database settings, Hostinger suggests running a search from the website root, for example grep -irl DB_NAME * or grep -irl DB_USER *. Replace the search term with the database name or username you are looking for. Treat any matching configuration file as sensitive: WordPress’s wp-config.php, for example, contains database connection settings. See Hostinger’s guide to the WordPress configuration file.
Rank #2
Know when this file-based method does not apply
Hostinger says File Manager is not available for Website Builder sites, and its configuration-file instructions do not apply to AI Builder sites. These products do not follow the same file-based workflow as a CMS installation managed through hosting files. Check which product your site uses before looking for a public_html configuration file.
Do not confuse .htaccess with the CMS configuration file
.htaccess is an optional file for website rules, not a universal database-configuration file. Hostinger says File Manager displays dotfiles by default; if .htaccess is not present, it may simply not have been created. Create it only when the application or instructions you are following require it. An FTP client may hide it until hidden-file display is enabled. See Hostinger’s .htaccess guidance.
Handle configuration files carefully
Configuration files may contain database connection details and other sensitive settings. Use them only to inspect or make a change you understand, and avoid sharing their contents publicly. In particular, protect WordPress’s database settings in wp-config.php.
Quick Recap
Best Value
Rank #4
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.




