Hallo und einen schönen Sonntag, ich zweifel gerade etwas an mir und verzweifle an php-fpm mit chroot.
Folgende Ausgangslage : Ubuntu 18.04 2.4.29-1ubuntu4.4 php7.2-fpm vhost config -------------------------------------------------------------- <VirtualHost IP:80> Protocols h2 http/1.1 <IfModule mod_headers.c> Header always set Content-Security-Policy: "default-src 'self'; frame-src 'self' https://www.youtube.com; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.googleapis.com https://fonts.gstatic.com" </IfModule> <IfModule mod_proxy_fcgi.c> <Proxy "unix:/run/php/php7.2-fpm-test.sock|fcgi://php-fpm-test"> ProxySet disablereuse=off </Proxy> <FilesMatch ".+\.php$"> SetHandler proxy:fcgi://php-fpm-test </FilesMatch> </IfModule> DocumentRoot /var/www/html/test <Directory /var/www/html/test> Order allow,deny Allow from all </Directory> </VirtualHost> --------------------------------------------------------------- fpm config --------------------------------------------------------------- [test] user = www-data group = www-data listen = /run/php/php7.2-fpm-test.sock listen.owner = www-data listen.group = www-data pm = dynamic pm.max_children = 5 pm.start_servers = 2 pm.min_spare_servers = 1 pm.max_spare_servers = 3 access.log = /var/log/apache2/$pool.access-fpm.log access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%" chroot = /var/www/html chdir = /test catch_workers_output = yes env[TMP] = /test/tmp env[TMPDIR] = /test/tmp env[TEMP] = /test/tmp php_admin_value[open_basedir] = /test ---------------------------------------------------------------- Apache error log und fpm access log [Sun Nov 18 11:50:04.248242 2018] [proxy_fcgi:debug] [pid 2642:tid 139866515912448] mod_proxy_fcgi.c(995): [client 46.223.3.84:52448] AH01076: url: fcgi://php-fpm-test/var/www/html/test/index.php proxyname: (null) proxyport: 0 [Sun Nov 18 11:50:04.248392 2018] [proxy_fcgi:debug] [pid 2642:tid 139866515912448] mod_proxy_fcgi.c(1002): [client 46.223.3.84:52448] AH01078: serving URL fcgi://php-fpm-test/var/www/html/test/index.php [Sun Nov 18 11:50:04.248490 2018] [proxy:debug] [pid 2642:tid 139866515912448] proxy_util.c(2162): AH00942: FCGI: has acquired connection for (php-fpm-test) [Sun Nov 18 11:50:04.248587 2018] [proxy:debug] [pid 2642:tid 139866515912448] proxy_util.c(2215): [client 46.223.3.84:52448] AH00944: connecting fcgi://php-fpm-test/var/www/html/test/index.php to php-fpm-test:8000 [Sun Nov 18 11:50:04.248680 2018] [proxy:debug] [pid 2642:tid 139866515912448] proxy_util.c(2252): [client 46.223.3.84:52448] AH02545: fcgi: has determined UDS as /run/php/php7.2-fpm-test.sock [Sun Nov 18 11:50:04.248767 2018] [proxy:debug] [pid 2642:tid 139866515912448] proxy_util.c(2424): [client 46.223.3.84:52448] AH00947: connected /var/www/html/test/index.php to httpd-UDS:0 [Sun Nov 18 11:50:04.249702 2018] [proxy:debug] [pid 2642:tid 139866515912448] proxy_util.c(2177): AH00943: FCGI: has released connection for (php-fpm-test) [Sun Nov 18 11:50:04.306063 2018] [core:info] [pid 2642:tid 139866490734336] [client 46.223.3.84:52448] AH00128: File does not exist: /var/www/html/test/favicon.ico 18/Nov/2018:10:48:36 +0000 "GET /index.php" 404 - 87521.564 2048 0.00% ----------------------------------------------------------------- Im Browser steht nur "File not found" Hatte jemand damit schon mal Erfolg und ich seh den Wald vor lauter Bäumen nicht ? Gegoogelt hab ich natürlich, leider ohne Erfolg. Bin für jeden Hinweis dankbar. Ohne chroot funktioniert es. Ralph -- Linux mailing list [email protected] subscribe/unsubscribe: https://lug-owl.de/mailman/listinfo/linux Hinweise zur Nutzung: http://www.lug-owl.de/Mailingliste/hints.epo
