DirectAdmin Manual

Helping you get the most out of DirectAdmin and your web!

Connect a web application

For WordPress, PrestaShop, Joomla, Laravel and most PHP applications on the same hosting account use:

FieldValue
Database host / DB_HOSTlocalhost
Database name / DB_DATABASEfull name, for example company_shop
Database user / DB_USERNAMEfull name, for example company_shopusr
Password / DB_PASSWORDdatabase user password
Port / DB_PORT3306
Charsetutf8mb4

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.

Back to chapter overviewContact Euroserver support