Just to chime in: I'm using the default lighttpd server and the admin panel didn't work until I added :/etc/pihole/:/run/log/ to open_basedir.
Search Criteria
Package Details: pi-hole-server 5.18.2-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/pi-hole-server.git (read-only, click to copy) |
---|---|
Package Base: | pi-hole-server |
Description: | The Pi-hole is an advertising-aware DNS/Web server. Arch adaptation for lan wide DNS server. |
Upstream URL: | https://github.com/pi-hole/pi-hole |
Keywords: | ad block pi-hole |
Licenses: | EUPL-1.2 |
Conflicts: | pi-hole-standalone |
Submitter: | max.bra |
Maintainer: | max.bra (graysky) |
Last Packager: | max.bra |
Votes: | 112 |
Popularity: | 1.44 |
First Submitted: | 2016-01-13 12:50 (UTC) |
Last Updated: | 2024-04-01 18:11 (UTC) |
Dependencies (18)
- bc (bc-ghAUR)
- bind-tools (bind-developmentAUR, bind-gitAUR, bind)
- inetutils (inetutils-gitAUR, busybox-coreutilsAUR)
- iproute2 (iproute2-gitAUR, busybox-coreutilsAUR, iproute2-selinuxAUR)
- jq (jq-gitAUR)
- logrotate (logrotate-selinuxAUR, logrotate-gitAUR)
- lsof (lsof-gitAUR)
- netcat (nmap-netcatAUR, openbsd-netcat-gitAUR, gnu-netcat-svnAUR, gnu-netcat, openbsd-netcat)
- perl (perl-gitAUR)
- pi-hole-ftlAUR
- procps-ng (procps-ng-gitAUR, busybox-coreutilsAUR)
- sudo (fake-sudoAUR, polkit-fakesudoAUR, sudo-gitAUR, doas-sudo-shimAUR, doas-sudo-shim-minimalAUR, sudo-hgAUR, sudo-selinuxAUR, fudo-gitAUR)
- git (git-gitAUR) (make)
- lighttpd (optional) – a secure, fast, compliant and very flexible web-server
- nginx-mainline (nginx-quic-openssl-hgAUR, nginx-quic-libresslAUR) (optional) – lightweight http server
- php-cgi (optional) – CGI and FCGI SAPI for PHP needed only for lighttpd
- php-fpm (optional) – FastCGI process manager for php needed for nginx
- php-sqlite (optional) – sqlite db access for nginx
Required by (2)
- padd-git
- pi-hole-whitelist-git (optional)
Sources (15)
- dnsmasq.include
- https://raw.githubusercontent.com/max72bra/pi-hole-server-archlinux-customization/master/arch-server-admin-5.21-1.patch
- https://raw.githubusercontent.com/max72bra/pi-hole-server-archlinux-customization/master/arch-server-core-5.18.2-1.patch
- lighttpd.pi-hole.conf
- mimic_basic-install.sh
- mimic_setupVars.conf.sh
- nginx.pi-hole.conf
- pi-hole-gravity.service
- pi-hole-gravity.timer
- pi-hole-logtruncate.service
- pi-hole-logtruncate.timer
- pi-hole-server-admin-5.21.tar.gz
- pi-hole-server-core-5.18.2.tar.gz
- pi-hole.tmpfile
- piholeDebug.sh
Latest Comments
« First ‹ Previous 1 .. 70 71 72 73 74 75 76 77 78 79 80 Next › Last »
tdkl commented on 2016-03-01 09:49 (UTC)
max.bra commented on 2016-03-01 09:33 (UTC)
@bolorino
reverting open_basedir can you try this?
http://pastebin.com/kSBMp7U9
p.s.: to be refined and improved
bolorino commented on 2016-02-29 23:42 (UTC)
@max.bra:
The problem was the open_basedir directive of PHP in /etc/php/php.ini
> mar 01 00:05:44 helicon nginx[1244]: PHP message: PHP Warning: file(/etc/pihole/gravity.list): failed to open stream: Operation not permitted in /srv/http/pihole/admin/data.php on line 144
The panel works fine after adding /etc/pihole/ and /run/log to open_basedir.
Using other “web apps” that store the configs needed in /etc/webapps/{app_name} (dokuwiki for example), but I don't know if this is good practise. I have no experience with AUR packaging.
To me it seems better having a single, unified path outside the webserver (/etc/webapps/ for instance) if needed, or even better, having none.
Anyway if the files needed for the panel to work are outside of the web server path (/srv/http for instance), you are going to need to give PHP access to them.
Sorry for any typos or mistakes. English is not my language. And thanks again :-)
max.bra commented on 2016-02-29 22:21 (UTC)
i never used nginx but seems not too difficult to integrate pi-hole in it.
if you agree, i'm available to insert an nginx include conf file, if feasible.
keep me posted.
bolorino commented on 2016-02-29 21:28 (UTC) (edited on 2016-02-29 21:32 (UTC) by bolorino)
Well. More likely to be me using nginx along with lighttpd, which should not be neccesary in my setup. Will check.
Edit one word.
bolorino commented on 2016-02-29 21:23 (UTC)
@max.bra: Wow! Fast. Thank you :-)
There are some problems with the panel not showing the information and empty widgets.
It seems to be related to open_basedir restrictions.
The paths are:
/etc/pihole/gravity.list
/run/log/pihole.log
I will check my PHP config and the lighthttp one.
max.bra commented on 2016-02-29 21:05 (UTC)
aaargh! i was really fall behind with php interface!!
thanks for reporting.
updated: let me know if something is not working.
bolorino commented on 2016-02-29 19:02 (UTC)
There is a nice update for the Admin panel (AdminLTE), 1.0.1:
https://pi-hole.net/pi-hole-2-5-3-released/
Would it be possible to include it with the pi-hole v2.5.3?
Thanks!
max.bra commented on 2016-02-18 12:49 (UTC)
> But I guess it's better to leave LC_TIME to en_US.UTF-8 to avoid problems shown today with the capital letter for the month.
sure!
> Regarding the subliminal package, it's a python package that requires some other python packages, which some failed to compile because I didn't have the proper locale set at the time.
if they are so squeamish you can apply the LC_*DUMMY*=C %command% trick to configure and or make commands of their PKGBUILDs
tdkl commented on 2016-02-18 12:41 (UTC)
@max.bra: good news, the reboot seems to have worked, now also the admin site displays the numbers. Guess the good ol' reboot saves the day. Thanks again !
Regarding the subliminal package, it's a python package that requires some other python packages, which some failed to compile because I didn't have the proper locale set at the time.
So when I looked into setting the locale, I changed them mostly to my country UTF-8 locale, only LC_COLLATE was left at C.
But I guess it's better to leave LC_TIME to en_US.UTF-8 to avoid problems shown today with the capital letter for the month.
Pinned Comments
max.bra commented on 2018-02-09 16:45 (UTC) (edited on 2019-10-18 23:14 (UTC) by max.bra)
ArchLinux Pi-hole is not officially supported by Pi-hole project. In case of bugs and malfunctions please DO NOT file a report upstream.
First of all check if the wiki (https://wiki.archlinux.org/index.php/Pi-hole) can help then ask here for assistance and tips.
When it will be excluded that the problem does not depend on ArchLinux we will file a bug upstream.