#DB Settings for External Web Host

1 messages · Page 1 of 1 (latest)

oblique perch
#

Possible quick question:
I'm about to change my dynamp to use MySQL and move the web directory to a different linux server.
How do I tell the PHP files on this external host the DB config to use, as the "configuration.txt" file is still on the linux server with the MC server?
I see that there is a "MySQL_config.php" file that the ./web/standalone/MySQL_*.php files use, but it doesn't exist on the file system.
Thanks.

jovial lichenBOT
#

Thank you! Please provide any errors you are experiencing and upload your configuration.txt. Someone from our <@&801354402010628138> team will respond to help shortly. As a general reminder, everyone on our support team is a volunteer, please be kind!

oblique perch
#

Additional note, alternatively, if we use the S3 option via Backblaze B2, how do we tell the external webserver to use that for the tile repository if we are only copying over the "web" directory and not the configuration.txt?

rough veldt
#

you can try the s3 option, but no guarantee it works

#

for the mysql, settings are in the configuration.txt

rough veldt
#

@oblique perch

oblique perch
#

Hello! We tried the s3 option with B2, but it didn't work. We are going to try MySQL next. I know that the settings are in configuration.txt, but since we are moving the web directory to another linux server, and the configuration.txt isn't in the web folder, do we need to copy the configuration.txt file over, but keep it in the directory below the web directory?

violet moth
#

To configure the PHP files on the external host to use the MySQL database, you'll need to update the database connection details within those PHP files. Typically, database connection details are stored in a separate PHP configuration file, such as config.php or database.php, which is then included or required in other PHP files where database operations are performed.

Here are the general steps to update the database configuration in your PHP files:

Locate the Database Configuration: Identify the PHP file(s) where the database connection details are stored. This could be a file named something like config.php, database.php, or MySQL_config.php.

Update Database Connection Details: Open the database configuration file in a text editor and update the database host, username, password, and database name to match the MySQL database on your new server.

rough veldt
#

the full way is explained on the wiki under external-webserver-setup

jovial lichenBOT
#

This support thread has been archived due to inactivity. Click the button below to reopen it.

jovial lichenBOT
#

This support thread has been archived due to inactivity. Click the button below to reopen it.

jovial lichenBOT
#

This support thread has been archived due to inactivity. Click the button below to reopen it.

jovial lichenBOT
#

This support thread has been archived due to inactivity. Click the button below to reopen it.

jovial lichenBOT
#

This support thread has been archived due to inactivity. Click the button below to reopen it.

jovial lichenBOT
#

This support thread has been archived due to inactivity. Click the button below to reopen it.

jovial lichenBOT
#

This support thread has been archived due to inactivity. Click the button below to reopen it.

jovial lichenBOT
#

This support thread has been archived due to inactivity. Click the button below to reopen it.

jovial lichenBOT
#

This support thread has been archived due to inactivity. Click the button below to reopen it.