Connect a web application
For WordPress, PrestaShop, Joomla, Laravel and most PHP applications on the same hosting account use:
| Field | Value |
|---|---|
| Database host / DB_HOST | localhost |
| Database name / DB_DATABASE | full name, for example company_shop |
| Database user / DB_USERNAME | full name, for example company_shopusr |
| Password / DB_PASSWORD | database user password |
| Port / DB_PORT | 3306 |
| Charset | utf8mb4 |
When not to use localhost
If Euroserver explicitly supplied a separate database server, use its hostname from the welcome email or WHMCS service details. Do not automatically use the web server hostname as the database server.
Configuration files
- WordPress:
wp-config.php - PrestaShop 1.7/8:
app/config/parameters.php - Laravel and many modern applications:
.env - Joomla:
configuration.php
Files containing passwords must not be publicly downloadable. Do not commit them to a public Git repository and replace passwords with *** in diagnostic output.