Dynmap-Forge/Fabric

Dynmap-Forge/Fabric

888k Downloads

1.18 MySQL_config.php file missing in web/standalone

controlol opened this issue ยท 5 comments

commented

template is bold
sample data is italicized

Issue Description:
After a fresh install and enabling the external webserver as explained on the wiki I try to open the interface with php-fpm but the MySQL_config.php file is missing. I see it does exist for a older server version (1.16) which I haven't touched in a long time.

  • Dynmap Version: Dynmap 3.3, either first experimental or build
  • Server Version: Paper 1.18 build 21
  • Pastebin of Configuration.txt: https://pastebin.com/5SETL3z2
  • Server Host (if applicable): Selfhosted
  • Pastebin of crashlogs or other relevant logs:
  • Other Relevant Data/Screenshots:
    image
    This screenshot shows the MySQL_config.php file is missing, and on the right MySQL_configuration.php. (I tried different type of includes before I found out the file was missing so it's a little edited)
  • Steps to Replicate: Fresh install of Paper 1.18, add Dynmap plugin. Let it start once, change config to use MySQL and external webserver. Use php-fpm to load php files, use nginx to load all other (static) files.
  • I have looked at all other issues and this is not a duplicate
  • I have been able to replicate this
    Tried a second fresh install using latest Paper (build 24), but the file was not created again.
commented

Adding the config file like it was in the 1.16 version allows the dynmap to function properly.
Unfortunately the files get updated when the server restarts, thus it is removed again.

<?php
$dbname = 'mc';
$dbhost = 'mariadb';
$dbport = 3306;
$dbuserid = 'user';
$dbpassword = 'xxxx';
$dbprefix = 'map118';
$loginenabled = false;
?>
commented

From the Discord:

Please be patient as we update the plugin. We do not have an eta for the full release at this time.
NOTE These are experimental and there will likely be bugs and missing features. Please follow announcement-updates for the most up-to-date information on Dynmap's update status.

#3538

commented

I understand, this was a bug report, not a "fix now please" :)

commented

Set disable-webserver: true
The PHP support isn't enabled while the internal web server is still enabled.

commented

This solved the issue thanks!

The missing file is now created when the server starts

Updated the wiki to add this information.
https://github.com/webbukkit/dynmap/wiki/External-Webserver-Basics/_history