X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/f334f536336dc44cf90e23ee6eee22c38ff08018..refs/pull/1/head:/README.md diff --git a/README.md b/README.md index d178185..c18f526 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,63 @@ # unrealircd-webpanel UnrealIRCd Administration WebPanel + + + +## Prerequisites ## +- PHP 8 or later +- A webserver +- UnrealIRCd 6.0.5 + +## Installation ## + +Note: This instructional assumes this is going to be hosted in the webroot directory `/var/www/` (html/) directory. +You may want to hide this somehow. Well, you definitely should. I don't know how to do that though. Sorry. + +Please make sure you have [correctly setup UnrealIRCd for use with JSON-RPC](https://www.unrealircd.org/docs/JSON-RPC) before you continue. + +- Go to your webserver root, for example `/var/www/html/`, and clone + this repository: +``` +cd /var/www/html +git clone https://github.com/ValwareIRC/unrealircd-webpanel +``` + +- Go into the directory and run composer to install the dependencies + (If you don't have composer, then [install it](https://getcomposer.org/download/) first): +``` +cd unrealircd-webpanel +composer install +``` + +- Edit the configuration file +``` +cp config.php.sample config.php +nano config.php +``` +The file will look like this:
+ + +Edit the configuration file to match your UnrealIRCd's RPC credentials and save + +NOTE: You most likely want to put the webpanel behind a login, using a +`.htaccess` file or similar. + +## Updating for end-users ## +For end-users, when you want to update to the latest version: +```bash +git pull +composer update +``` + +## Developers ## +Developers of the webpanel will naturally use the same procedure as +above. However, sometimes you will want to update to a newer version +of the unrealircd-rpc-php library. You then need to run: +```bash +# For devs only! +composer install +git commit composer.lock +``` +Commiting the composer.lock file updates the dependency for all +other users, that way a `composer update` by end-users will update +to exactly the version that `composer install` just installed.