File SUSE.readme of Package pihole-admin-lte
xxxxxxxxxx
1
2
AdminLTE provides a web UI that can be used to monitor parts of what Pi-hole
3
does. It’s been done with PHP, and subsequently requires PHP to work.
4
5
There is two subpackages that have some ready configuration for convenience:
6
7
pihole-admin-lte-config-php-fpm
8
-------------------------------
9
10
pihole-admin-lte-config-php-fpm contains configuration file for php-fpm to
11
handle PHP processes that can be used to run AdminLTE. nginx config is
12
configured to use php-fpm, and this config supplements that config.
13
14
By default, php-fpm has no configuration. To use supplied template, copy it:
15
16
# cd /etc/php7/fpm
17
# cp php-fpm.conf.default php-fpm.conf
18
# cd php-fpm.d
19
# cp pihole-admin-lte.conf.in pihole-admin-lte.conf
20
21
Nginx by default uses nginx user and group to run itself. If that user can’t
22
use php-fpm’s socket, nginx won’t be able to operate PHP sites. Supplied
23
config by default uses nginx user, but if you use some other user or httpd,
24
you need to modify pihole-admin-lte.conf to contain correct user.
25
26
Then you can start (and enable) php-fpm:
27
28
# systemctl start php-fpm
29
# systemctl status php-fpm # Verify that there is no errors
30
# systemctl enable php-fpm
31
32
pihole-admin-lte-config-nginx
33
-----------------------------
34
35
The config included in pihole-admin-lte-config-nginx is kind of base config
36
which you need to adjust to your setup. Please see adminlte.conf.in in the
37
package for more information.