Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 60E6DC7B9 for ; Mon, 11 Jun 2012 23:41:08 +0000 (UTC) Received: (qmail 73137 invoked by uid 500); 11 Jun 2012 23:41:08 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 73109 invoked by uid 500); 11 Jun 2012 23:41:08 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 73096 invoked by uid 99); 11 Jun 2012 23:41:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2012 23:41:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jmarantz@google.com designates 209.85.217.173 as permitted sender) Received: from [209.85.217.173] (HELO mail-lb0-f173.google.com) (209.85.217.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2012 23:41:03 +0000 Received: by lbok6 with SMTP id k6so4212244lbo.18 for ; Mon, 11 Jun 2012 16:40:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-system-of-record; bh=HZvGRIAIwgpnFW1xMYgodIj41esxyMtpc0Qy3I7mrqw=; b=OchUI5eSi7djavVr7bP29glBMbzIZzjxEJavIC4pf7+RAr4NqWyQ7rIoSY2vGE8yFO RZgIySZxyOanPNVofS+UdL0Mvarz2Wo27oyAM6wcjTE/x1jipdhuIPWf8tHRvJfGaxgO UtEnjV3mTlSQsy2WJhcJLAPBGdQuoRJ8XQTZzpD3GtTR7jY4oZH5g6vlKH7IZ4GXwL7Z 9UWNkr5HzzOO3FDhnmsXBU9gyE7vAcgNxW30YlQJbnliK3nunxkJk85V6vNUYb5yVH2J VYl6XyjvEyssTz6Nu3bdWCL7mfhIwCb0hZW8hkUvKett1BQaMzCf3N2ZduI0DAdcYl7B JwQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-system-of-record:x-gm-message-state; bh=HZvGRIAIwgpnFW1xMYgodIj41esxyMtpc0Qy3I7mrqw=; b=NGjp+jolqhtKXjCrd/Npa3p7/pceL63enJjLxYgtvFstytNSwdmBFZGXmFpxxe7mdI ck2XbRVaopI9DQrIEWjLfbz6/QoOAP2pmaO9PvrRfBjl6PalgDlEJHLbqrb9zAG2VQex acXxbTKuBBk8PgWYlcJirbqtRYOVytrtpG6o/PJvfNJ0Wzyvm0Ry19AhRh+qOUik/Nlk p0UaPxQyG/CjnpTNuQPQNhcH4rYqZ1ZjPm0xQwNHyVCrbETxO5bteT11LC7moOQ0d3Xh hifpfK9V7C4AQaN1j1Sr0QawwDFnAGK0+n6p4fY99lkD2lOXHgM8y2Ydf6LBhyQ5ONCG bKrg== Received: by 10.152.131.68 with SMTP id ok4mr18673851lab.47.1339458041650; Mon, 11 Jun 2012 16:40:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.152.131.68 with SMTP id ok4mr18673843lab.47.1339458041510; Mon, 11 Jun 2012 16:40:41 -0700 (PDT) Received: by 10.112.103.132 with HTTP; Mon, 11 Jun 2012 16:40:41 -0700 (PDT) Received: by 10.112.103.132 with HTTP; Mon, 11 Jun 2012 16:40:41 -0700 (PDT) In-Reply-To: <4FD67F10.2080702@smartechhomes.com> References: <4FD67F10.2080702@smartechhomes.com> Date: Mon, 11 Jun 2012 19:40:41 -0400 Message-ID: Subject: Re: Get the directory of the module From: Joshua Marantz To: modules-dev@httpd.apache.org Content-Type: multipart/alternative; boundary=f46d0435c1d2c17be004c23ae052 X-System-Of-Record: true X-Gm-Message-State: ALoCoQnMIRs7PvymK32GCt6yig1K9kXq3RKwcHS/q5uupXtVxyNxP1Vvc0kmeDfrHHXWJ1ZAHqLHD2ig3F+QeOuo1hdnBpEICEdCHP38MlVGByBy5gT7+Rcsfj38kASHActH1iYp+M+knApMEEqJ9nm1bjO93yFj9w== X-Virus-Checked: Checked by ClamAV on apache.org --f46d0435c1d2c17be004c23ae052 Content-Type: text/plain; charset=ISO-8859-1 I think he wants to write bytecodes during module installation when he will have write access. During installation can you also write a .conf template showing your module where the bytecodes are? Josh On Jun 11, 2012 7:29 PM, "Jerry Stuckle" wrote: > > > On 6/11/2012 5:49 PM, Ben Noordhuis wrote: > >> On Mon, Jun 11, 2012 at 10:10 PM, Bart Wiegmans> >> wrote: >> >>> Hello everybody, >>> >>> For a project I'm doing, I need to install a few bytecode files >>> alongside my module. I was planning on placing them in the modules >>> directory but I realised that at runtime I do not know where that is. >>> What is more, that directory may (and will, as a matter of fact) vary >>> during installation and testing. But most importantly, the server >>> knows where the module is kept as it specified by LoadModule. >>> >>> So in short, how can I determine the directory of my module at runtime? >>> >> >> You can't, the file path is internal to mod_so.c. I don't think it >> even stores it. >> >> >> > In addition, there is no guarantee you have write access to that directory. > --f46d0435c1d2c17be004c23ae052--