FS#31436 - [php-fpm] PrivateTmp=true in systemd unit file breaks phpPgAdmin
Attached to Project:
Arch Linux
Opened by Paul Gideon Dann (giddie) - Thursday, 06 September 2012, 09:54 GMT
Last edited by Pierre Schmitz (Pierre) - Tuesday, 19 March 2013, 18:45 GMT
Opened by Paul Gideon Dann (giddie) - Thursday, 06 September 2012, 09:54 GMT
Last edited by Pierre Schmitz (Pierre) - Tuesday, 19 March 2013, 18:45 GMT
|
Details
Description:
The default unit file for php-fpm has PrivateTmp=true, which means that php-fpm is unable to see the Postgresql socket at /tmp/.s.PGSQL.5432, and therefore phpPgAdmin can't see Postgresql. Hopefully, Postgres will move this socket to somewhere under /var/tmp at some point, but in the meantime I suggest removing PrivateTmp=true from the unit file. Additional info: * php-fpm 5.4.6-1 |
This task depends upon
![Link to this comment](../themes/ArchLinux/comment.png)
We could probably build with the socket in a different place. I
need to poke at what other distros do in regard to this; I'm
hoping Fedora has already solved this problem. It does seem like
something that would be better located in /run.
![Link to this comment](../themes/ArchLinux/comment.png)
http://pkgs.fedoraproject.org/cgit/postgresql.git/tree/postgresql-var-run-socket.patch
![Link to this comment](../themes/ArchLinux/comment.png)
I would consider placing a socket into /tmp a bug, so I am not
going to alter the php unit file.
![Link to this comment](../themes/ArchLinux/comment.png)
This was fixed quite a while back now. The socket is now placed in
/run/php-fpm/php-fpm.sock, and Postgresql's socket is at
/run/postgresql/.s.PGSQL.5432.