guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

guile-1.7, apache-1.13.22 and nobody:nogroup user env?


From: David Pirotte
Subject: guile-1.7, apache-1.13.22 and nobody:nogroup user env?
Date: Tue, 11 Dec 2001 10:33:52 +0100

Hello,

sorry to ask this in this list, but I am not sure it is an apache only
problem, so thanks for your help and/or understanding. In fact, I use
guile to create dynamically html pages since a long time, and for obscure
reason to me, it does not work as expected anymore:

        - using apache 1.3.22
        - writing scripts using guile 1.7
        - SuSE 7.2

        - my httpd.conf contains (notably):
                User nobody
                Group nogroup

'my' nobody user HAS both a '.profile' and a '.bashrc' file that contains all 
the
necessary environment variables so that the guile script can execute itself.
[I added this recently, it was not necessary with previous version of guile, 
the /etc/ld.so.conf was sufficient (the apache httpd is still the same I only
changed guile)]

in addition, the /etc/ld.so.conf does also contain all library path that all 
users
usually need, and certainly /usr/local/lib where 'libpostgres.so' can be found.

INDEED, when login as nobody (through root and using "su - nobody", asking the
script to execute itself, DOES produce the expected results (in a shell)

HOWEVER, when the script is executed upon user request through the use of a 
browser,
I get the following error in the apache error_log file:

        ERROR: In procedure dynamic-link:
        ERROR: file: "libpostgres", message: "file not found"

this is because it does not inherit all nobody user environment variables, but I
don't know why? the script (see below), tries to load the postgres database 
module,
which can only be done if LD_LIBRARY_PATH, PGLIB and PGDATA are defined.

Anybody can help me?
Thanks
David


;; here is the little guile test script
#!/usr/local/bin/guile -s
!#

;; html/apache protocol request this
(display "Content-Type: text/plain\n\n")

(use-modules (database postgres))

(for-each (lambda (item)
            (display item) (display "\n"))
          (environ))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]