about summary refs log tree commit diff
path: root/gn
diff options
context:
space:
mode:
authorEfraim Flashner2020-07-16 09:37:08 +0300
committerEfraim Flashner2020-07-16 09:37:08 +0300
commit22af6bde5aa62b7f022fc1e76b413f3d7a2f3bc2 (patch)
treeaa29b1a6b72084090ea90e42a8ee82613c97e1bf /gn
parentda5edbdb6cea092ea74e5c738155e769b09086a3 (diff)
downloadguix-bioinformatics-22af6bde5aa62b7f022fc1e76b413f3d7a2f3bc2.tar.gz
gn: genenetwork1 container almost working
Diffstat (limited to 'gn')
-rw-r--r--gn/services/genenetwork.scm39
1 files changed, 19 insertions, 20 deletions
diff --git a/gn/services/genenetwork.scm b/gn/services/genenetwork.scm
index 0137e94..bf09270 100644
--- a/gn/services/genenetwork.scm
+++ b/gn/services/genenetwork.scm
@@ -82,23 +82,23 @@
   (firmware '())
 
   (packages (cons* python-2.4
-                   ;httpd-mod-python-24
-                   ;python24-qtlreaper
-                   ;python24-htmlgen-GN1
-                   ;python24-json-GN1
-                   ;python24-piddle
-                   ;python24-pyx-GN1
-                   ;python24-pyxlwriter
-                   ;python24-svg-GN1
+                   python24-qtlreaper
+                   python24-htmlgen-GN1
+                   python24-json-GN1
+                   python24-piddle
+                   python24-pyx-GN1
+                   python24-pyxlwriter
+                   python24-svg-GN1
                    %base-packages))
 
   (services (list (service httpd-service-type
                            (httpd-configuration
-                             (package httpd22-mod-python-24)    ; Must be httpd-2.2?
+                             (package httpd22-mod-python-24)    ; Must be httpd-2.2
                              (config
                                (httpd-config-file
                                  (server-name "www.genenetwork.org")
-                                 (server-root httpd22-mod-python-24)    ; Defaults to httpd, must be combo package.
+                                 ;; Defaults to httpd, largely irrelevant.
+                                 (server-root httpd22-mod-python-24)
                                  (user "nobody")
                                  (group "root")
                                  (pid-file "/tmp/httpd-genenetwork1")
@@ -112,20 +112,19 @@
                                             %default-httpd22-modules))
                                  (extra-config (list "\
 TypesConfig etc/httpd/mime.types
-#for apache-2.2, ignored by apache-2.4
 DefaultType application/octet-stream
-# Should PythonPath just be genenetwork1/web/webqtl?
-PythonPath \"sys.path+['" (file-append python-2.4 "/lib/python2.4") "', '" %mod-python-path "', '" (file-append genenetwork1 "/web/webqtl") "']\"
-<Directory " (file-append genenetwork1 "/web/webqtl") ">
-  AddHandler mod_python .py
-  PythonHandler mod_python.publisher
-  PythonAutoReload Off
+#DocumentRoot MUST NOT be in the PythonPath
+PythonPath \"['/run/current-system/profile/lib/python2.4', '" httpd22-mod-python-24 "/lib/python2.4/site-packages']\"
+<Directory " genenetwork1 "/web/webqtl>
+  #AddHandler mod_python .py
+  SetHandler python-program
+  #PythonHandler mod_python.publisher
+  PythonHandler mod_python.cgihandler
+  #PythonAutoReload Off
+  # only while debugging:
   PythonDebug On
 </Directory>
 <Location /mpinfo>
   SetHandler python-program
   PythonHandler mod_python.testhandler
 </Location>")))))))))
-
-;PythonPath \"sys.path+['" (file-append python-2.4 "/lib/python2.4") "', '" %mod-python-path "', '" (file-append python24-qtlreaper %python-path) "', '" (file-append python24-json-GN1 %python-path) "', '" (file-append python24-piddle %python-path) "', '" (file-append python24-pyx-GN1 %python-path) "', '" (file-append python24-pyxlwriter-GN1 %python-path) "', '" (file-append python24-svg-GN1 %python-path) "', '" (file-append python24-htmlgen-GN1) "', '" (file-append genenetwork1 "/web/webqtl") "']\"
-;PythonPath \"sys.path+['" (file-append python-2.4 "/lib/python2.4") "', '" %mod-python-path "', '" (file-append genenetwork1 "/web/webqtl") "']\"