]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blob - README.md
Update README.md
[irc/unrealircd/unrealircd-webpanel.git] / README.md
1 # unrealircd-webpanel
2 UnrealIRCd Administration WebPanel
3
4 <img src="https://i.ibb.co/yP7tk6B/Screenshot-from-2023-01-10-17-54-01.png">
5
6 ## Prerequisites ##
7 - PHP 8 or later
8 - A webserver
9 - UnrealIRCd 6.0.6-git recommended. Minimal functionality available with UnrealIRCd 6.0.5.
10
11 ## Installation ##
12
13 Note: This instructional assumes this is going to be hosted in the webroot directory `/var/www/` (html/) directory.
14 You may want to hide this somehow. Well, you definitely should. I don't know how to do that though. Sorry.
15
16 Please make sure you have [correctly setup UnrealIRCd for use with JSON-RPC](https://www.unrealircd.org/docs/JSON-RPC) before you continue.
17
18 - Go to your webserver root, for example `/var/www/html/`, and clone
19 this repository:
20 ```
21 cd /var/www/html
22 git clone https://github.com/unrealircd/unrealircd-webpanel
23 ```
24
25 - Go into the directory and run composer to install the dependencies
26 (If you don't have composer, then [install it](https://getcomposer.org/download/) first):
27 ```
28 cd unrealircd-webpanel
29 composer install
30 ```
31
32 - Edit the configuration file
33 ```
34 cp config.php.sample config.php
35 nano config.php
36 ```
37 The file will look like this:<br>
38 <img src="https://i.ibb.co/zZ7LsXD/Screenshot-from-2023-01-04-17-03-20.png">
39
40 Edit the configuration file to match your UnrealIRCd's RPC credentials and save
41
42 NOTE: You most likely want to put the webpanel behind a login, using a
43 `.htaccess` file or similar.
44
45 ## Updating for end-users ##
46 For end-users, when you want to update to the latest version:
47 ```bash
48 git pull
49 composer update
50 ```
51
52 ## Developers ##
53 Developers of the webpanel will naturally use the same procedure as
54 above. However, sometimes you will want to update to a newer version
55 of the unrealircd-rpc-php library. You then need to run:
56 ```bash
57 # For devs only!
58 composer install
59 git commit composer.lock
60 ```
61 Commiting the composer.lock file updates the dependency for all
62 other users, that way a `composer update` by end-users will update
63 to exactly the version that `composer install` just installed.