X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.25a (ClamAV 0.103.12/27435) X-Junk-Score: 0 [] X-KAS-Score: 0 [] Return-Path: Received: from mout.kundenserver.de ([212.227.17.10] verified) by selbstdenker.ag (CommuniGate Pro SMTP 6.3.18) with ESMTPS id 33203236 for webobjects-dev@wocommunity.org; Tue, 22 Oct 2024 20:44:20 +0200 Received-SPF: pass receiver=post.selbstdenker.com; client-ip=212.227.17.10; envelope-from=john@pollardweb.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pollardweb.com; s=s1-ionos; t=1729622649; x=1730227449; i=john@pollardweb.com; bh=RvnTgx/ZKLKqZW2s6qtogAU4LC/yKOZDOEBPcqx9rGg=; h=X-UI-Sender-Class:From:Content-Type:Mime-Version:Subject:Date: References:To:In-Reply-To:Message-Id:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=qjqFqLnqeH66Din1IENI10R23kUDKK+H/Og82Gufj7QfcVM482I8p91dRowwVS7T Mf+MZjp17PfihBeXtH12sZ/5spnAwAW82LZ/ic0cZt8punL6FFGqt7DWd1izlg96D m2na1M5fUj24vaRts6OnQApV6Ig9+bY2Fd80lwIx4t68UoCdHW+8Mdcp5ODnzTtVr xnZap8IZ+N1oIiV5xnLjQ0Z48kFCCThUNtr0q7Sapl78bBpFG2opxB9bW30karyio qaWUI4ZF9GFHeOg2ARpwXV5aR0rB2K+18yaU3GmLz53iEGSJN0gxBIntbUXUglKKP UbP5jYsIBsnXERGrjQ== X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6 Received: from smtpclient.apple ([45.117.136.79]) by mrelayeu.kundenserver.de (mreue106 [213.165.67.115]) with ESMTPSA (Nemesis) id 1Mi27T-1tXgnQ2xFJ-00ZTUC for ; Tue, 22 Oct 2024 20:44:09 +0200 From: John Pollard Content-Type: multipart/alternative; boundary="Apple-Mail=_13592ABB-52B4-4D77-8E52-3E266156E904" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: Re: [WO-DEV] apache WO adaptor logging? Date: Tue, 22 Oct 2024 19:43:59 +0100 References: To: WebObjects & WOnder Development In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3776.700.51) X-Provags-ID: V03:K1:drC0qVkVS3yivoHStVNfeCoxXcBSxiS7EkIQBZ2VIqbW4xiUnS0 Eltyr45ihXyC4hIoZOLTrp23V6BCNr1u58+WXKcwcPkktQs9PBw4opi1fPOq/ulpTODDZ1Z yIR7pxwnSsPDXxgR1HoebCbNtUxtQ+c1xneSUwiQBJF29WHMOF/faZ1XQIoUy9HhLJVd8ar Gla+LIbEItlxRMS/XQa5w== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:4hiQRWaz3z8=;U0Sth2E1UkHdn0uijOH2lmxf+TS L41k5NsFWLZ5DiAU+D5dSeXtykD0o6ik9uupR2w9rB3QbIWIcVoIQiaLNbLy8pYKrcyJxm6kF QKeK7nD6IQar3NS/nP+knxx9wXSJjT9gT2E1P5WUdaKcA7mhBatXeyIZNUDBGDBSEyTM43V4M o7n19Dti2zA5R73koCCk7jf70B8gTFLW5hULjTou+J2rIcUaQXEhKuC6MPEqMC3GHNubOMzli 0URU5NhQAPnGOH+QOiYburDLHLEeOtZ6e5FPjGDp/MwvlVDbnW9tg2pFPmcAkooNmqTTBUhon NlGwfXggtIjzMhbkCjDaEYBpuY9O/rPIKjPMW/V8COueFJeaY1TL08TdhDE4HEKX2OuqB6WAS rnScIeM/AXzYrm5GpzLjIx/DSaX7zB9HLFlC393JC26NDuFOQYR9Ge1B5+EAGNJ0Sjybxz/T6 51aW+osre2uqkNlJROL/6ZvU0XunZz//t3BNIM/sBhKrRO1FyGzqM9I1WfAV7FAELcizBlot9 On1Wqyo+KXXpUpoh45gcanpQWOIT4FuHyLrNbwyCow3OR2bc6/S12q514Nzi256pLQgRvB8nw XXP29TTZeWVfD6JKZbqAYcELQQTcyyMOABeN4DHezzKg7gJXEAwjlkCMTLyNXGvt/I0VCzSrr hNZRSedDOCWxF/PpOLf0iJPT+EkJ9rwbvqK21pU/u4wWt77Ve4QU2NZGH/pvY0s+TGjOEIl/t Di82iyeBaNwK9wkbQnq4udAXS46B444pw== --Apple-Mail=_13592ABB-52B4-4D77-8E52-3E266156E904 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I got it working in the end, I moved the logging out of /tmp and into = /var/log/httpd I am not sure if SELinux security was blocking the apps writing to it, = so I made sure that was not the case: sudo semanage permissive -a httpd_t When httpd is started, the log file appears and you get some start up = logging, but no request logging unless you change the permissions on the = file that root has created, so that others (apache?) can write to it, I = just chmod 777 and that worked, all requests now logging - I actually = compiled the adaptor to ALWAYS_LOG by commenting out a precompile = directive before building mod_webObjects.so = but I guess touching /tmp/logWebObjects should work if I rewind that. > On 18 Oct 2024, at 17:53, John Pollard wrote: >=20 > How can I get the apache WO adaptor to log it=E2=80=99s output these = days? Touching /tmp/logWebObjects didn=E2=80=99t cause any logging to = occur. >=20 > My webobjects.conf file has: >=20 > WebObjectsLog /tmp/WebObjects.log Debug >=20 > But doesn=E2=80=99t produce the goods when I touch the above mentioned = file. >=20 > Thanks > John > ############################################################# > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to = > To switch to the INDEX mode, E-mail to = > Send administrative queries to = >=20 --Apple-Mail=_13592ABB-52B4-4D77-8E52-3E266156E904 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 I got it = working in the end, I moved the logging out of /tmp and into = /var/log/httpd
I am not sure if SELinux security was blocking the = apps writing to it, so I made sure that was not the case:
sudo = semanage permissive -a httpd_t
When httpd is started, the log = file appears and you get some start up logging, but no request logging = unless you change the permissions on the file that root has created, so = that others (apache?) can write to it, I just chmod 777 and that worked, = all requests now logging - I actually compiled the adaptor to ALWAYS_LOG = by commenting out a precompile directive before building mod_webObjects.so but I guess = touching /tmp/logWebObjects should work if I rewind that.

On 18 Oct 2024, at 17:53, John Pollard = <john@pollardweb.com> wrote:

How can I get the apache = WO adaptor to log it=E2=80=99s output these days? Touching = /tmp/logWebObjects didn=E2=80=99t cause any logging to occur.

My = webobjects.conf file has:

WebObjectsLog /tmp/WebObjects.log = Debug

But doesn=E2=80=99t produce the goods when I touch the = above mentioned = file.

Thanks
John
###########################################= ##################
This message is sent to you because you are = subscribed to
 the mailing list = <webobjects-dev@wocommunity.org>.
To unsubscribe, E-mail to: = <webobjects-dev-off@wocommunity.org>
To switch to the DIGEST = mode, E-mail to <webobjects-dev-digest@wocommunity.org>
To = switch to the INDEX mode, E-mail to = <webobjects-dev-index@wocommunity.org>
Send administrative = queries to =  <webobjects-dev-request@wocommunity.org>


= --Apple-Mail=_13592ABB-52B4-4D77-8E52-3E266156E904--