Commit e9e941a
committed
Fix systemic 502 risk: align new PHP-FPM pool ownership with nginx's actual user
php_install_script() installed php{ver}-fpm but never checked whether
nginx's worker user (the 'user' directive in nginx.conf) matched the
new pool's listen.owner/listen.group (package defaults: www-data on
Debian, apache/nginx on RHEL). On this server nginx runs as 'nginx',
but PHP 8.5's pool (installed after the phpMyAdmin installer's
one-time owner-fix loop had already run for other versions) kept
www-data - causing 'connect() ... failed (13: Permission denied)' and
502 Bad Gateway for every site on PHP 8.5, including phpMyAdmin.
Now detects nginx's actual user and aligns listen.owner/listen.group
for every newly-installed PHP version on both Debian and RHEL-family,
so this can't recur for future App Store PHP installs.1 parent b57cb73 commit e9e941a
1 file changed
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
123 | 138 | | |
124 | 139 | | |
125 | 140 | | |
126 | 141 | | |
127 | 142 | | |
128 | | - | |
| 143 | + | |
| 144 | + | |
129 | 145 | | |
130 | 146 | | |
131 | 147 | | |
132 | 148 | | |
133 | 149 | | |
134 | 150 | | |
135 | 151 | | |
136 | | - | |
| 152 | + | |
| 153 | + | |
137 | 154 | | |
138 | 155 | | |
139 | 156 | | |
| |||
0 commit comments