We have folia support!
heads up
Windows old PHP support will be removed soon! If you encounter any errors, please report them on
GitHub
introduction
Transform your Minecraft server with WebServer, a user-friendly and efficient plugin. By installing it and allocating an additional port(s) to your server, you gain an integrated web server accessible through your server's IP and port.
Configuration:
The default config includes settings for HTML and PHP ports, server IP, debugging, and more. Customize the ports to fit your preferences.
Code (Text):
# ==============================
# WebPluginV2 Configuration
# Author: JumpWatch
# Discord support: https://discord.gg/9HDFz9vyv4
# ==============================
Settings:
# ── Web Server Ports ──
HTMLPORT: 25567
PHPPort: 25568
LocalFPM: 25569 # Very important if you decide to use PHP.
# ── Server Settings ──
ServerLocation: /home/container/ # Include trailing slash.
IndexLocation: "" # Default: "" = /webplugin/php/
ServerIP: localhost # Used for PHP and HTML via /webp command.
# ── Threading ──
maxThreads: 2
# ── Debug Settings ──
debug: false # Shows debug log in /webplugin/logs/.
# ── PHP Settings ──
EnablePHP: false
PHPFolderPermissionFix: false # Runs `chown -R www-data`, auto disables after run.
# ── Dependencies Reminder ──
# IMPORTANT: If PHP is enabled, the plugin WILL automatically download
# critical system libraries (GLIBC, LIBONIG, LIBZ) from the GitHub repo.
# These libraries are essential for the system to work, and are required
# for PHP, NGINX (Which is also downloaded from the repo),
# and other components to function properly.
# Check further down for info.
# ── HTML Settings ──
EnableHTML: true # PHP can also serve HTML.
# ── Auto Key ──
Autokey: false # Not functional currently.
# ── NGINX Configuration ──
denyNginxConfigOverride: false
# ── SSL Configuration ──
SSLSettings:
EnableSSL: false
SSLPort: 25570
SSLDomain: play.domain.com
SSLPriv: priv-key.pem
SSLPubl: pub-key.pem
# ── Linux PHP Runtime Settings ──
Linuxphpsettings:
Errorfolder: /errors/ #UNUSED
# ── GitHub Repo Resources ──
GithubWebPluginPHPRepo: https://github.com/hypersmc/WebPluginV2Repo
GithubWebPluginPHPRepoFilename: WebPlugin-linux-PHP8.3-PRECOMPILED.tar.gz
GithubWebPluginNGINXRepoFilename: WebPlugin-linux-NGINX-1.27.1-PRECOMPILED.tar.gz
# ── Internal ──
ConfigVersion: 15 # DO NOT EDIT
Note: Change the port from 25567 to your desired value.
SSL Configuration:
SSL support is available with options to enable, specify ports, and set up a LetsEncrypt (PEM) file.
Code (Text):
SSLSettings:
EnableSSL: false
SSLPort: 25570
SSLDomain: domain.com
SSLPriv: private-key.pem
SSLPubl: public-key.pem
Linux PHP Settings:
Code (Text):
Linuxphpsettings:
Errorfolder: /errors/
Discord Support:
Join our
Discord Server for support and community interactions.
Commands:
- /WebP: Displays server IP and port.
- /WebP help: Lists available commands.
- /WebP ver: Shows plugin version and checks for updates.
- /WebP dev: Displays plugin developer information.
- /WebP reload: Reloads the plugin configuration.
- /WebP reset: Resets the plugin configuration.
- /WebP stopweb: Stops the PHP web server. <deprecated>
- /WebP startweb: Starts the PHP web server. <deprecated>
- /WebP reloadweb: Reloads the PHP web server. <deprecated>
- /WebP uploadlogs <debug:true|false> [includeConfig:true|false] [redactConfig:true|false] | Upload logs for debugging purposes
Permissions:
- web.show: Permission to use /WebP.
- web.help: Permission to use /WebP help.
- web.ver: Permission to use /WebP ver.
- web.dev: Permission to use /WebP dev.
- web.reload: Permission to use /WebP reload.
- web.reset: Permission to use /WebP reset.
- web.stopweb: Permission to use /WebP stopweb. <deprecated>
- web.startweb: Permission to use /WebP startweb. <deprecated>
- web.reloadweb: Permission to use /WebP reloadweb. <deprecated>
- web.logupload: Permission to use /WebP uploadlogs.
- web.*: Grants permission to all commands.
Feel free to reach out on Discord for any assistance or feedback!
BSTATS:
![[IMG]](//proxy.spigotmc.org/6667f6e1d5c94a6d569552a9d09be3ea1e9f6eed/68747470733a2f2f6273746174732e6f72672f7369676e6174757265732f76656c6f636974792f576562506c7567696e56656c6f636974792e737667)