User Tools

Site Tools


documentation:server-install-components

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
documentation:server-install-components [2018/11/28 21:08]
mpospisek [Software Installation]
documentation:server-install-components [2019/01/04 11:27]
mpospisek [Config files settings]
Line 86: Line 86:
 # install tomcat to the /opt/tomcat directory # install tomcat to the /opt/tomcat directory
 mkdir /opt/apache-tomcat-9.0.6 mkdir /opt/apache-tomcat-9.0.6
-codedoc:clean:tar xvf apache-tomcat-9*tar.gz -C /opt/apache-tomcat-9.0.6 --strip-components=1+tar xvf apache-tomcat-9*tar.gz -C /opt/apache-tomcat-9.0.6 --strip-components=1
 # symlink /opt/tomcat to /opt/apache-tomcat-9.0.6 # symlink /opt/tomcat to /opt/apache-tomcat-9.0.6
 ln -s /opt/apache-tomcat-9.0.6 /opt/tomcat ln -s /opt/apache-tomcat-9.0.6 /opt/tomcat
Line 127: Line 127:
 Group=tomcat Group=tomcat
 Type=forking Type=forking
-Environment=JAVA_HOME=/usr/java/default+#Environment=JAVA_HOME=/usr/java/default 
 +Environment=JAVA_HOME=/usr/lib/jvm/jre
 Environment=CATALINA_PID=/opt/tomcat/tomcat.pid Environment=CATALINA_PID=/opt/tomcat/tomcat.pid
 Environment=CATALINA_HOME=/opt/tomcat Environment=CATALINA_HOME=/opt/tomcat
Line 289: Line 290:
 WantedBy=multi-user.target WantedBy=multi-user.target
 </sxh>  </sxh> 
-   
-<codedoc code:bash> 
-vi /etc/sysconfig/httpd 
-</codedoc> 
  
-<sxh bash>  +Modify /etc/sysconfig/httpd 
-# Add these lines ... +    
-LANG=C +<sxh bash> 
-OPENAAA_PROTOCOL="aaa" +echo 'LANG=C' >>/etc/sysconfig/httpd 
-OPENAAA_HANDLER="/usr/local/bin/aducid" +echo 'OPENAAA_PROTOCOL="aaa"' >>/etc/sysconfig/httpd 
-OPENAAA_AUTHORITY="your.server.dnsname"+echo 'OPENAAA_HANDLER="/usr/local/bin/aducid"' >>/etc/sysconfig/httpd 
 +echo OPENAAA_AUTHORITY=\"`hostname`\>>/etc/sysconfig/httpd 
 +tail -3 /etc/sysconfig/httpd 
 </sxh>  </sxh> 
 +
  
 ==== Config files settings ====  ==== Config files settings ==== 
Line 310: Line 310:
 </codedoc> </codedoc>
  
-<sxh bash; highlight: [4,9,20,21,22,23]> +<sxh bash; highlight: [4,9,17,20,21,22,23]> 
 ### Keep the Include conf.modules.d/*.conf setting in the file, ### Keep the Include conf.modules.d/*.conf setting in the file,
 ### but append one line in front of it, so the result will be: ### but append one line in front of it, so the result will be:
Line 330: Line 330:
  
 # Place these three lines at the end of file # Place these three lines at the end of file
-EnableTrace Off+TraceEnable Off
 Include /opt/aaa/conf/aducid-aaa.conf Include /opt/aaa/conf/aducid-aaa.conf
 Include /opt/aaa/conf/aducid-aim.conf Include /opt/aaa/conf/aducid-aim.conf
Line 340: Line 340:
  
 <codedoc code:bash> <codedoc code:bash>
-cd /opt/rh/httpd24/root/etc/httpd/conf.modules.d/+cd /etc/httpd/conf.modules.d/
 mv 00-optional.conf 00-optional.conf.xxx mv 00-optional.conf 00-optional.conf.xxx
 mv 00-lua.conf 00-lua.conf.xxx mv 00-lua.conf 00-lua.conf.xxx
Line 346: Line 346:
 </codedoc> </codedoc>
    
-<codedoc code:bash> 
-vi 00-mpm.conf 
-</codedoc> 
 <sxh bash>  <sxh bash> 
 +cat 00-mpm.conf | grep prefork
 LoadModule mpm_prefork_module modules/mod_mpm_prefork.so LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
 </sxh>  </sxh> 
    
-<codedoc code:bash> +<sxh bash> 
-vi 00-proxy.conf +echo \ 
-</codedoc> +"# This file configures all the proxy modules:
-<sxh bash>  +
-# This file configures all the proxy modules:+
 LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_module modules/mod_proxy.so
 #LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so #LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
Line 373: Line 369:
 #LoadModule proxy_hcheck_module modules/mod_proxy_hcheck.so #LoadModule proxy_hcheck_module modules/mod_proxy_hcheck.so
 #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
-#LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so+#LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so" > 00-proxy.conf 
 </sxh>  </sxh> 
    
Line 381: Line 377:
  
 <sxh bash; highlight: [9]>  <sxh bash; highlight: [9]> 
-#+echo \ 
 +"#
 # This file loads most of the modules included with the Apache HTTP # This file loads most of the modules included with the Apache HTTP
 # Server itself. # Server itself.
Line 453: Line 450:
 LoadModule version_module modules/mod_version.so LoadModule version_module modules/mod_version.so
 #LoadModule vhost_alias_module modules/mod_vhost_alias.so #LoadModule vhost_alias_module modules/mod_vhost_alias.so
-#LoadModule watchdog_module modules/mod_watchdog.so+#LoadModule watchdog_module modules/mod_watchdog.so" > 00-base.conf
 </sxh> </sxh>