@max.bra You are right. I have no mysql installed. Strange is that it was working without it. I also have some fully functional PHP services through php-fpm under nginx.
I get the mysql error with lighthttp but no with nginx.
Will check further. Thank you.
Search Criteria
Package Details: pi-hole-server 5.18.3-4
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: | 0.134716 |
First Submitted: | 2016-01-13 12:50 (UTC) |
Last Updated: | 2024-08-10 12:32 (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-gitAUR, logrotate-selinuxAUR)
- 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, git-glAUR) (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)
- 01-pihole.conf
- https://raw.githubusercontent.com/max72bra/pi-hole-server-archlinux-customization/master/arch-server-admin-5.21-4.patch
- https://raw.githubusercontent.com/max72bra/pi-hole-server-archlinux-customization/master/arch-server-core-5.18.3-4.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.3.tar.gz
- pi-hole.tmpfile
- piholeDebug.sh
Latest Comments
« First ‹ Previous 1 .. 71 72 73 74 75 76 77 78 79 80 81 82 Next › Last »
bolorino commented on 2016-03-01 15:14 (UTC)
max.bra commented on 2016-03-01 14:49 (UTC)
assuming you have followed pi-hole configuration steps, there is something wrong with your php setup
https://wiki.archlinux.org/index.php/PHP#MySQL.2FMariaDB
bolorino commented on 2016-03-01 14:44 (UTC)
@max.bra:
No luck with the latest update.
The panel isn't working on nginx, neither lighthttp.
On nginx I get the empty values and widgets.
I've stopped nginx and launched lighthttp and get:
> lighttpd-angel[26035]: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mysql.so' - /usr/lib/php/modules/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
Maybe is better to leave it as intended in pihole setup? One always can fine tune their own web server setup to get it working. After all it is something beyond the scope of the project, I think.
:-)
tdkl commented on 2016-03-01 12:37 (UTC)
@max.bra : tested it and it works, thanks :]
max.bra commented on 2016-03-01 11:51 (UTC) (edited on 2016-03-01 11:51 (UTC) by max.bra)
-3 update
This should resolve the "issue" of lighttpd php.
Your open_basedir can be reverted without taking into account pi-hole need.
edit:
still available for a possible nginx integration
max.bra commented on 2016-03-01 10:08 (UTC)
@tdkl @bolorino
yep yep. for me, i have no other web servers on my pi and my open_basedir is not set allowing all (following pihole setup)
can be improved...
tdkl commented on 2016-03-01 09:49 (UTC)
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.
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.
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.