From mc at samurajdata.se Wed Oct 21 15:17:07 2015 From: mc at samurajdata.se (Markus Carlstedt) Date: Wed, 21 Oct 2015 15:17:07 +0200 Subject: [mpm-itk] Process always runs as file owner Message-ID: <1445433427.4218.255.camel@dhcp009.samurajdata.se> Hello everybody. I haven't found any information about this behaviour anywhere, but perhaps I misread the documentation. My php files are always run with uid/gid of the file-owner instead of the values defined in AssignUserID. This is on CentOS 6 and 7, and I could not find any documentation about this anywhere. Anyone has any light on this issue? / Markus From tino at didriksen.cc Wed Oct 21 15:23:00 2015 From: tino at didriksen.cc (Tino Didriksen) Date: Wed, 21 Oct 2015 15:23:00 +0200 Subject: [mpm-itk] Process always runs as file owner In-Reply-To: <1445433427.4218.255.camel@dhcp009.samurajdata.se> References: <1445433427.4218.255.camel@dhcp009.samurajdata.se> Message-ID: Replied inline... On 21 October 2015 at 15:17, Markus Carlstedt wrote: > My php files are always run with uid/gid of the file-owner instead of > the values defined in AssignUserID. How do you test that? The PHP functions getmyuid() and getmygid() return the UID/GID of the file, not of the process. You need to use posix_getuid() and posix_getgid() to get the process UID/GID. -- Tino Didriksen -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgunderson at bigfoot.com Wed Oct 21 15:25:14 2015 From: sgunderson at bigfoot.com (Steinar H. Gunderson) Date: Wed, 21 Oct 2015 15:25:14 +0200 Subject: [mpm-itk] Process always runs as file owner In-Reply-To: <1445433427.4218.255.camel@dhcp009.samurajdata.se> References: <1445433427.4218.255.camel@dhcp009.samurajdata.se> Message-ID: <20151021132514.GA15844@sesse.net> On Wed, Oct 21, 2015 at 03:17:07PM +0200, Markus Carlstedt wrote: > My php files are always run with uid/gid of the file-owner instead of > the values defined in AssignUserID. > > This is on CentOS 6 and 7, and I could not find any documentation about > this anywhere. Hi, We've had one report of this before, and IIRC it was some sort of user error. mpm-itk never even looks at the file owner, so if so, that's something PHP does for you (are you perhaps using suphp?). /* Steinar */ -- Homepage: http://www.sesse.net/ From mc at samurajdata.se Wed Oct 21 16:21:37 2015 From: mc at samurajdata.se (Markus Carlstedt) Date: Wed, 21 Oct 2015 16:21:37 +0200 Subject: [mpm-itk] Process always runs as file owner In-Reply-To: References: <1445433427.4218.255.camel@dhcp009.samurajdata.se> Message-ID: <1445437297.4218.260.camel@dhcp009.samurajdata.se> ons 2015-10-21 klockan 15:23 +0200 skrev Tino Didriksen: > Replied inline... > > On 21 October 2015 at 15:17, Markus Carlstedt > wrote: > My php files are always run with uid/gid of the file-owner > instead of > the values defined in AssignUserID. > > > > > How do you test that? The PHP functions getmyuid() and getmygid() > return the UID/GID of the file, not of the process. > > > You need to use posix_getuid() and posix_getgid() to get the process > UID/GID. > Thanks, my bad I was using these calls. However I started out looking at the owner of the process: watch -n 1 "ps aux|grep http" And this did not change to the correct owner under CentOS 7 sometimes. I will recheck what happens and get back when I have better information. / Markus From mc at samurajdata.se Thu Oct 22 09:54:02 2015 From: mc at samurajdata.se (Markus Carlstedt) Date: Thu, 22 Oct 2015 09:54:02 +0200 Subject: [mpm-itk] Process always runs as file owner In-Reply-To: <1445433427.4218.255.camel@dhcp009.samurajdata.se> References: <1445433427.4218.255.camel@dhcp009.samurajdata.se> Message-ID: <1445500442.4218.267.camel@dhcp009.samurajdata.se> Thanks for the answers, turns out I was measuring it wrong. In CentOS6 the processes always lived on for a few seconds after the request to a site, I could then verify the owner of the process. In this setup keepalive if off when running PHP and therefore the process is spawned and destroyed without me seeing it after I have enabled PHP. / Markus ons 2015-10-21 klockan 15:17 +0200 skrev Markus Carlstedt: > Hello everybody. > I haven't found any information about this behaviour anywhere, but > perhaps I misread the documentation. > > My php files are always run with uid/gid of the file-owner instead of > the values defined in AssignUserID. > > This is on CentOS 6 and 7, and I could not find any documentation about > this anywhere. > > Anyone has any light on this issue? > > > / Markus > > > _______________________________________________ > mpm-itk mailing list > mpm-itk at err.no > http://lists.err.no/mailman/listinfo/mpm-itk > From azurit at pobox.sk Sun Oct 25 21:54:09 2015 From: azurit at pobox.sk (azurit at pobox.sk) Date: Sun, 25 Oct 2015 21:54:09 +0100 Subject: [mpm-itk] mod_h2/http2 Message-ID: <20151025215409.Horde.PfLVYerGzlnAHiZaxWlTe5e@webmail.inetadmin.eu> Hi, is it possible to use mod_h2/http2 with ITK in Apache 2.4? azur From mysql.jorge at decimal.pt Tue Oct 27 12:41:00 2015 From: mysql.jorge at decimal.pt (Jorge Bastos) Date: Tue, 27 Oct 2015 04:41:00 -0700 Subject: [mpm-itk] Fw: new message Message-ID: <0000daa90c88$5a7c3663$d2213fe4$@decimal.pt> Hey! New message, please read Jorge Bastos -------------- next part -------------- An HTML attachment was scrubbed... URL: From Olaf.Dorow at fleno-gmbh.de Tue Oct 27 13:28:38 2015 From: Olaf.Dorow at fleno-gmbh.de (Olaf Dorow) Date: Tue, 27 Oct 2015 12:28:38 +0000 Subject: [mpm-itk] php error displaying with mpm-itk Message-ID: Hey I have a little problem with my php5.4.5 and Apache2 with the mpm-itk module I installed the mpm-itk module to separate users on my Server, but after the installation of the module the php error display function don?t work with all errors higher then a notice. My question is now if mpm-itk is blocking displaying the errors? And when yes is there a way to display this errors. I?am using a Debian 8.2.0 distribution I hop for a fast answer. Best regards Olaf Dorow -------------- next part -------------- An HTML attachment was scrubbed... URL: From knut at auvor.no Tue Oct 27 18:08:50 2015 From: knut at auvor.no (Knut Auvor Grythe) Date: Tue, 27 Oct 2015 18:08:50 +0100 Subject: [mpm-itk] php error displaying with mpm-itk In-Reply-To: References: Message-ID: <20151027170850.GO8617@pvv.ntnu.no> On Tue, Oct 27, 2015 at 12:28:38PM +0000, Olaf Dorow wrote: > Hey I have a little problem with my php5.4.5 and Apache2 with the mpm-itk module > I installed the mpm-itk module to separate users on my Server, > but after the installation of the module the php error display function don?t work with all errors higher then a notice. > > My question is now if mpm-itk is blocking displaying the errors? > And when yes is there a way to display this errors. mpm-itk should not interfere with this at all. The error is likely somewhere else. -- Knut Auvor