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.
#DB Settings for External Web Host
1 messages · Page 1 of 1 (latest)
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!
(optional) Please upload your configuration.txt to https://pastebin.com and send us the link. BE SURE TO REMOVE PASSWORDS
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
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?
you can try the s3 option, but no guarantee it works
for the mysql, settings are in the configuration.txt
@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?
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.
no need, the deployment of the php files is handled by dynmap itself, change the mysql parameters in configuration.txt, and after a restart those changes should be updated in the web folder, which you then can copy over, no need to edit php files manually
the full way is explained on the wiki under external-webserver-setup
This support thread has been archived due to inactivity. Click the button below to reopen it.
This support thread has been archived due to inactivity. Click the button below to reopen it.
This support thread has been archived due to inactivity. Click the button below to reopen it.
This support thread has been archived due to inactivity. Click the button below to reopen it.
This support thread has been archived due to inactivity. Click the button below to reopen it.
This support thread has been archived due to inactivity. Click the button below to reopen it.
This support thread has been archived due to inactivity. Click the button below to reopen it.
This support thread has been archived due to inactivity. Click the button below to reopen it.
This support thread has been archived due to inactivity. Click the button below to reopen it.