Difference: DIRAC3WebSetup (1 vs. 6)

Revision 62008-10-14 - MatveySapunov

Line: 1 to 1
 
META TOPICPARENT name="DiracProject"
-- AdriaCasajus - 12 Feb 2008
Line: 31 to 31
 

Install Pylons

Changed:
<
<
//bin/easy_install Pylons
>
>
//bin/easy_install Pylons==0.9.6.2
  If easy_install is absent you have to download file ez_setup from http://peak.telecommunity.com/dist/ez_setup.py (temporary link), and execute it by hand
<DIRACROOT>/<DIRACARCH>/bin/python ez_setup.py
Changed:
<
<
Repeat step with Pylons installation
>
>
Repeat this step till Pylons have been installed
 

Grid Requirements

Line: 99 to 99
  \ No newline at end of file
Added:
>
>

libexpat problem

There could be a problems caused due to mismatches in the version of the "expat" library embedded into Python and that linked into Apache. A sign of such problem is a string appears in Apache error log like following:
[notice] child pid 3238 exit signal Segmentation fault (11)
To make sure that this is the case, try to make the simple tests:
[root@volhcb11 dirac]# ldd /usr/sbin/httpd | grep expat
        libexpat.so.0 => /usr/lib64/libexpat.so.0 (0x0000002a95dba000)
[root@volhcb11 dirac]# strings /usr/lib64/libexpat.so.0 | grep expat_
expat_1.95.8
[root@volhcb11 dirac]# <DIRACROOT>/<DIRACARCH>/bin/python
Python 2.4.4 (#1, Sep 30 2008, 21:08:00)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-10)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyexpat
>>> pyexpat.version_info
(1, 95, 7)
As a temporary solution try to install appropriate version of the libexpat in to the system.

Install OpenLayers library

In order to setup the DIRAC SiteMap a OpenLayers library have to be installed on the machine. Since the library tree is not in CVS it should be downloaded from the official site of the project.

cd <DIRACROOT>/DIRAC/Interfaces/Web/dirac/public
wget http://openlayers.org/download/OpenLayers-2.6.tar.gz
tar xzvf OpenLayers-2.6.tar.gz

Revision 52008-09-30 - MatveySapunov

Line: 1 to 1
 
META TOPICPARENT name="DiracProject"
-- AdriaCasajus - 12 Feb 2008
Line: 12 to 12
 
  • gcc-c++
  • zlib
  • zlib-devel
Added:
>
>
  • unzip
 

Prepare DIRAC

Line: 32 to 33
 
<DIRACROOT>/<DIRACARCH>/bin/easy_install Pylons
Added:
>
>
If easy_install is absent you have to download file ez_setup from http://peak.telecommunity.com/dist/ez_setup.py (temporary link), and execute it by hand
<DIRACROOT>/<DIRACARCH>/bin/python ez_setup.py
Repeat step with Pylons installation
 

Grid Requirements

Line: 48 to 54
 
mkdir -p /opt/dirac/webRoot/
Changed:
<
<
  • Create the index.html file (/opt/dirac/webRoot/index.html)
>
>
  • Create the index.html file (vi /opt/dirac/webRoot/index.html)
 
<html>
 <head>
Line: 58 to 64
 
  • Create a link to the DIRAC web root
Changed:
<
<
ln -s /opt/dirac/DIRAC3/DIRAC/Interfaces/Web/ /opt/dirac/webRoot/DIRAC
>
>
ln -s /DIRAC/Interfaces/Web/ /opt/dirac/webRoot/DIRAC
 

Configure Apache

Under SLC4 apache configuration file is /etc/httpd/conf/httpd.conf

Revision 42008-09-30 - AdriaCasajus

Line: 1 to 1
 
META TOPICPARENT name="DiracProject"
-- AdriaCasajus - 12 Feb 2008
Line: 21 to 21
 
<DIRACROOT>/external/sqlite-3.5.4/dirac-make
<DIRACROOT>/external/Python-2.5/dirac-make
Changed:
<
<
/contrib/pyOpenSSL/dirac-make
>
>
/contrib/pyGSI/dirac-make
 

For Python2.4

<DIRACROOT>/external/Python-2.4.4/dirac-make
Changed:
<
<
/contrib/pyOpenSSL/dirac-make
>
>
/contrib/pyGSI/dirac-make
 

Install Pylons

Deleted:
<
<
//bin/python /contrib/pyOpenSSL/ez_setup.py
 //bin/easy_install Pylons

Revision 32008-09-29 - MatveySapunov

Line: 1 to 1
 
META TOPICPARENT name="DiracProject"
-- AdriaCasajus - 12 Feb 2008
Line: 44 to 44
 /external/mod_python/dirac-make cp /DIRAC/Interfaces/Web/wgsi.py //lib/python/site-packages/mod_python
Added:
>
>

Prepare DIRAC web root

  • Create the web root directory
mkdir -p /opt/dirac/webRoot/
  • Create the index.html file (/opt/dirac/webRoot/index.html)
<html>
 <head>
  <META http-equiv="refresh" content="0; URL=DIRAC">
 </head>
</html>
  • Create a link to the DIRAC web root
ln -s /opt/dirac/DIRAC3/DIRAC/Interfaces/Web/ /opt/dirac/webRoot/DIRAC
 

Configure Apache

Under SLC4 apache configuration file is /etc/httpd/conf/httpd.conf
Line: 51 to 68
 
LoadModule python_module modules/mod_python.so
Added:
>
>
  • Set the desired directory as the Apache document root
DocumentRoot "/opt/dirac/webRoot"
 
  • Define mod_python as the handler for the DIRAC web directory
<Directory "/opt/dirac/webRoot/DIRAC">

Revision 22008-02-12 - AdriaCasajus

Line: 1 to 1
 
META TOPICPARENT name="DiracProject"
-- AdriaCasajus - 12 Feb 2008
Line: 7 to 7
 
  • httpd-devel
  • httpd
Added:
>
>
  • mod_ssl
 
  • gcc
  • gcc-c++
  • zlib
Line: 32 to 33
 //bin/python /contrib/pyOpenSSL/ez_setup.py //bin/easy_install Pylons \ No newline at end of file
Added:
>
>

Grid Requirements

In order to only allow valid certificates apache needs a CA directory (with CAs and CRLs updated periodically) and a certificate.

Setting up Apache

Install mod_python

<DIRACROOT>/external/mod_python/dirac-make 
cp <DIRACROOT>/DIRAC/Interfaces/Web/wgsi.py <DIRACROOT>/<DIRACARCH>/lib/python<PYTHONVERSION>/site-packages/mod_python

Configure Apache

Under SLC4 apache configuration file is /etc/httpd/conf/httpd.conf

  • Load mod_python
LoadModule python_module modules/mod_python.so
  • Define mod_python as the handler for the DIRAC web directory
<Directory "/opt/dirac/webRoot/DIRAC">
  SetHandler mod_python
  PythonHandler mod_python.wsgi
  PythonPath "['/opt/dirac/DIRAC3/DIRAC/Interfaces/Web'] + sys.path"
  PythonOption wsgi.application startup::app
  PythonOption SCRIPT_NAME /DIRAC
</Directory>

Configuring mod_ssl

Under SLC4 mod_ssl configuration file is /etc/httpd/conf.d/ssl.conf and it has to have defined the following settings:

  • SSLCertificateFile /pathto/certfile
  • SSLCertificateKeyFile /pathto/keyfile
  • SSLCACertificatePath /etc/grid-security/certificates
  • SSLCARevocationPath /etc/grid-security/certificates
  • SSLVerifyClient require
  • SSLVerifyDepth 10
  • SSLOptions +StdEnvVars

Revision 12008-02-12 - AdriaCasajus

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="DiracProject"
-- AdriaCasajus - 12 Feb 2008

Apache + mod_python + Pylons + DIRAC

Required packages

  • httpd-devel
  • httpd
  • gcc
  • gcc-c++
  • zlib
  • zlib-devel

Prepare DIRAC

Compile python if it's not there

For Python2.5

<DIRACROOT>/external/sqlite-3.5.4/dirac-make
<DIRACROOT>/external/Python-2.5/dirac-make
<DIRACROOT>/contrib/pyOpenSSL/dirac-make

For Python2.4

<DIRACROOT>/external/Python-2.4.4/dirac-make
<DIRACROOT>/contrib/pyOpenSSL/dirac-make

Install Pylons

<DIRACROOT>/<DIRACARCH>/bin/python <DIRACROOT>/contrib/pyOpenSSL/ez_setup.py
<DIRACROOT>/<DIRACARCH>/bin/easy_install Pylons
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback