VSO installation on sdo3 » History » Version 2
Pablo Alingery, 11/04/2017 16:53
1 | 1 | Pablo Alingery | h1. VSO installation on sdo3 |
---|---|---|---|
2 | 1 | Pablo Alingery | |
3 | 1 | Pablo Alingery | h2. Configure Apache2 |
4 | 1 | Pablo Alingery | |
5 | 1 | Pablo Alingery | h3. Log Level |
6 | 1 | Pablo Alingery | |
7 | 1 | Pablo Alingery | Change LogLevel to debug in /etc/apache2/apache2.conf |
8 | 1 | Pablo Alingery | |
9 | 1 | Pablo Alingery | h3. Alias SDO |
10 | 1 | Pablo Alingery | |
11 | 1 | Pablo Alingery | Veuillez créer l'alias VSO/DRMS/cgi-bin/ dans le fichier de configuration /etc/apache2/mods-available/alias.conf |
12 | 1 | Pablo Alingery | Le fichier doit contenir : |
13 | 1 | Pablo Alingery | Alias /VSO/DRMS/cgi-bin/ "/usr/local/netdrms/scripts/cgi-bin/" |
14 | 1 | Pablo Alingery | |
15 | 1 | Pablo Alingery | |
16 | 1 | Pablo Alingery | |
17 | 1 | Pablo Alingery | h3. Config /etc/apache2/envvars |
18 | 1 | Pablo Alingery | |
19 | 1 | Pablo Alingery | Le fichier /etc/apache2/envvars doit contenir la configuration suivante : |
20 | 1 | Pablo Alingery | |
21 | 1 | Pablo Alingery | <pre># envvars - default environment variables for apache2ctl |
22 | 1 | Pablo Alingery | |
23 | 1 | Pablo Alingery | # this won't be correct after changing uid |
24 | 1 | Pablo Alingery | unset HOME |
25 | 1 | Pablo Alingery | |
26 | 1 | Pablo Alingery | # for supporting multiple apache2 instances |
27 | 1 | Pablo Alingery | if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then |
28 | 1 | Pablo Alingery | SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}" |
29 | 1 | Pablo Alingery | else |
30 | 1 | Pablo Alingery | SUFFIX= |
31 | 1 | Pablo Alingery | fi |
32 | 1 | Pablo Alingery | |
33 | 1 | Pablo Alingery | # Since there is no sane way to get the parsed apache2 config in scripts, some |
34 | 1 | Pablo Alingery | # settings are defined via environment variables and then used in apache2ctl, |
35 | 1 | Pablo Alingery | # /etc/init.d/apache2, /etc/logrotate.d/apache2, etc. |
36 | 1 | Pablo Alingery | export APACHE_RUN_USER=vsouser |
37 | 1 | Pablo Alingery | export APACHE_RUN_GROUP=ias |
38 | 1 | Pablo Alingery | # temporary state file location. This might be changed to /run in Wheezy+1 |
39 | 1 | Pablo Alingery | export APACHE_PID_FILE=/var/run/apache2/apache2$SUFFIX.pid |
40 | 1 | Pablo Alingery | export APACHE_RUN_DIR=/var/run/apache2$SUFFIX |
41 | 1 | Pablo Alingery | export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX |
42 | 1 | Pablo Alingery | # Only /var/log/apache2 is handled by /etc/logrotate.d/apache2. |
43 | 1 | Pablo Alingery | export APACHE_LOG_DIR=/var/log/apache2$SUFFIX |
44 | 1 | Pablo Alingery | |
45 | 1 | Pablo Alingery | ## The locale used by some modules like mod_dav |
46 | 1 | Pablo Alingery | export LANG=C |
47 | 1 | Pablo Alingery | ## Uncomment the following line to use the system default locale instead: |
48 | 1 | Pablo Alingery | #. /etc/default/locale |
49 | 1 | Pablo Alingery | |
50 | 1 | Pablo Alingery | export LANG |
51 | 1 | Pablo Alingery | |
52 | 1 | Pablo Alingery | export PATH=/usr/local/jmd/bin:/usr/local/pgsql/bin:/usr/local/jmd/scripts:/usr/local/jmd/bin: |
53 | 1 | Pablo Alingery | /home/production/netdrms-tools/scripts:/usr/local/netdrms_current/bin/linux_x86_64: |
54 | 1 | Pablo Alingery | /usr/local/bin:/usr/bin:/bin:/usr/games |
55 | 1 | Pablo Alingery | export SHELL=/bin/bash |
56 | 1 | Pablo Alingery | ## The command to get the status for 'apache2ctl status'. |
57 | 1 | Pablo Alingery | ## Some packages providing 'www-browser' need '--dump' instead of '-dump'. |
58 | 1 | Pablo Alingery | #export APACHE_LYNX='www-browser -dump' |
59 | 1 | Pablo Alingery | |
60 | 1 | Pablo Alingery | ## If you need a higher file descriptor limit, uncomment and adjust the |
61 | 1 | Pablo Alingery | ## following line (default is 8192): |
62 | 1 | Pablo Alingery | #APACHE_ULIMIT_MAX_FILES='ulimit -n 65536' |
63 | 1 | Pablo Alingery | |
64 | 1 | Pablo Alingery | ## If you would like to pass arguments to the web server, add them below |
65 | 1 | Pablo Alingery | ## to the APACHE_ARGUMENTS environment. |
66 | 1 | Pablo Alingery | #export APACHE_ARGUMENTS='' |
67 | 1 | Pablo Alingery | |
68 | 1 | Pablo Alingery | ## Enable the debug mode for maintainer scripts. |
69 | 1 | Pablo Alingery | ## This will produce a verbose output on package installations of web server modules and web application |
70 | 1 | Pablo Alingery | ## installations which interact with Apache |
71 | 1 | Pablo Alingery | #export APACHE2_MAINTSCRIPT_DEBUG=1 |
72 | 1 | Pablo Alingery | ~ |
73 | 1 | Pablo Alingery | </pre> |
74 | 2 | Pablo Alingery | |
75 | 2 | Pablo Alingery | h3. Install missing pakcages |
76 | 2 | Pablo Alingery | |
77 | 2 | Pablo Alingery | <pre> |
78 | 2 | Pablo Alingery | apt-get install cvs |
79 | 2 | Pablo Alingery | apt-get install libapache2-mod-perl2-dev |
80 | 2 | Pablo Alingery | apt-get install libsoap-lite-perl |
81 | 2 | Pablo Alingery | apt-get install libxml-simple-perl |
82 | 2 | Pablo Alingery | apt-get install libdbd-pg-perl |
83 | 2 | Pablo Alingery | apt-get install libthread-queue-any-perl |
84 | 2 | Pablo Alingery | apt-get install libdate-manip-perl |
85 | 2 | Pablo Alingery | |
86 | 2 | Pablo Alingery | </pre> |