Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101693 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52642 invoked from network); 26 Jan 2018 14:09:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jan 2018 14:09:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=Hajo.Locke@gmx.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=Hajo.Locke@gmx.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.17.21 as permitted sender) X-PHP-List-Original-Sender: Hajo.Locke@gmx.de X-Host-Fingerprint: 212.227.17.21 mout.gmx.net Received: from [212.227.17.21] ([212.227.17.21:60255] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/92-35287-0863B6A5 for ; Fri, 26 Jan 2018 09:09:06 -0500 Received: from [192.168.6.96] ([85.13.159.249]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LyS5K-1esyKJ22GU-015ozT for ; Fri, 26 Jan 2018 15:09:01 +0100 To: internals@lists.php.net References: <881dc9e4-2593-565f-4d88-a74078219bc3@gmx.de> <1516969271.6189.16.camel@schlueters.de> Message-ID: Date: Fri, 26 Jan 2018 15:09:00 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <1516969271.6189.16.camel@schlueters.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: de-DE X-Provags-ID: V03:K0:sLQSfRDNXt9dbd+F6K4XhTEuH7/3Ig7dUFWccddYNpr1WQcSKpQ 9++gVwQAz/AkwWzMecV/JfQ9sIe+mDuVC8W/S+L2vpDWaWd8cJt6GGzd8k/ve0A82Jz6dWZ EL6F9xD/UnDaYJ8dobt5Yk4PaBVIWHSZCDbrKGqC3C88aRY0rBPIAfBgr8EExviV/6s/kiP fGaMYNuxC/z4C38W0mBFQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:Lo2Cs5/7aDs=:KbGjxPxnMgXvCbdTazUFpr a6S43LnFgpRI7jxOCaX8B8NeO8THZ4ZAuerd+MbmGSavXAcl885nEXoeLhKIhjoewQW2dyHX0 d2AfNzZtRmIWvuOzcIohe3D7u4pbnVIj8p1pOZXly0DV1Pv8aIJndhHHz3g5gGYWwro9Te8Ox lgFMktL9dTsFa3U7Q2XNoqGhuUmn6Hk1R5qC8K5Nq5AyuDpgJxgiP6yJj6ymjVVuDacH7Q8CJ fF30dMreTT9s2VMnB0W0652anGb5JTovVwhBRa0AJFxbdjo1D96nC5AUYoPCcKQrA6kyWpV1u bv53QHHeB8ZCE7SxDnvvW0/xggrT9QSYGctByrF8sxyBmrxHse+2qM7KNSzn/7T8QgrUsFc1i DIp0v4CX9VxbJLKkSY5nxpU/VAXhx6amfX1H7EoeW28Sjf+YpQzRtt3cAAkMuiuWO65j54FdH y9hhnnCTXBPsBiKvpxul5j+vh1jkbdffnWrmt4dGG9HvriEQRuYHDG2QjkGvQWFNCDErAo1lI oasjtiXyAhOFGUJEmT/DZqO4iWM9rrFcFw4BJKDv7cBgmVTWzXxwMP1zsvjXRoAC6m7Q56pu1 kRunwr+jnA9rQfyUQw7LPiOY9UEvuw3LDnfumMNE59DPzWsaydYjqLzMhbULx/3KWhep2pZDs GPCXnzCgYJA1GOoYQZxF9BXmvgGv9RSTLmpGS/BIG+s1Aoxc4iDvpToHyCWTfq2olOqEBfkqn 3rMIwbyvC3Nxut8gGg1xJTiwXnawZEJeZAPVYV4PW2N4KZSgdHVJK5iBsd0NXbYY6sxGUNGDU N4txp40 Subject: Re: [PHP-DEV] threadsafe php crashes too easily From: Hajo.Locke@gmx.de (Hajo Locke) Hello, thank you all for your suggestions. Am 26.01.2018 um 13:21 schrieb Johannes Schlüter: > On Fr, 2018-01-26 at 12:43 +0100, Hajo Locke wrote: >> Hello List, >> >> i hope this is the right place to get helped. I have a promising >> setup >> for testing purposes, but unfortunately i ran quick into problems. >> >>   I compiled a minimal libphp7.so (7.2.1)  using this line: >> ./configure --disable-all  --enable-static --prefix=/usr >> --with-apxs2=/usr/bin/apxs2 --enable-maintainer-zts > The enable mantainer zts should not be needed. The apache module tries > to identify the configuration an enable thread-safety automatically if > needed. I'd suggest removng the option and checking configure output > and config.log and trying to see what it identifies ... however there's > not much love for mpm_worker on the PHP side :-) > > If all you want is to prevent apache from complaining about > php_value/php_flag directives for handling them elsewhere I'd suggest > writing a simple apache module which simply registers those settings > and does nothing else. Seems way less problematic. Yes, i thought about that a few das ago, but believed it is to hard for me. But you are right, it is enought to tell apache about the directives, there is no need to add some further funtionality. Iam not a programmer, just sysadmin. Following your sapi/apache2handler/apache_config.c i was able to put php_value etc. into this example-module and did a first run. To my surprise this was successful. Configtest was ok, and on php-fpm side your htscanner still worked. It seems this is a very promising way and i will invest more time in it to get this stable. Thank you all. > > Can be done mostly by copy and paste from that site: > http://httpd.apache.org/docs/2.4/developer/modguide.html#configuration > > johannes > Thanks, Hajo