Difference: LiferayGUSEInstallation (8 vs. 9)

Revision 92012-01-11 - DiegoMichelotto

Line: 1 to 1
 
META TOPICPARENT name="InstallationGuide"
Line: 20 to 20
 
    • Apache Tomcat 6.x (6.0.26, 6.0.29 tested...)
    • mysql (5.1.41 tested) remote or local installed
    • Liferay 6.0.5 (Bundled with Tomcat works)
Changed:
<
<
    • gLite User Interface installation - this isn't necessary when installing without EGEE support (optional) + SC Linux
>
>
    • gLite User Interface installation (if necessary see our installation guide here) - this isn't necessary when installing without EGEE support (optional) + SC Linux
 

1 Install MySQL server and client

Line: 49 to 49
 
 $ mysql -h fullyqualified.hostname -u root -pNEWPASSWORD
Changed:
<
<
> create user liferay identified by 'liferaypassword'; > create user wspgrade identified by 'wspgradepassword'; > create user PortalUser identified by 'PortalUserpassword'; > grant all on liferay.* to 'liferay'@'localhost' identified by 'liferaypassword'; > grant all on wspgrade.* to 'wspgrade'@'localhost' identified by 'wspgradepassword'; > grant all on PortalUser.* to 'PortalUser'@'localhost' identified by 'PortalUserpassword'; > grant all on liferay.* to 'liferay'@'fullyqualified.hostname' identified by 'liferaypassword'; > grant all on wspgrade.* to 'wspgrade'@'fullyqualified.hostname' identified by 'wspgradepassword'; > grant all on PortalUser.* to 'PortalUser'@'fullyqualified.hostname' identified by 'PortalUserpassword';
>
>
> create user liferay identified by 'liferaysecret'; > create user wspgrade identified by 'wspgradesecret'; > create user PortalUser identified by 'PortalUsersecret'; > grant all on liferay.* to 'liferay'@'localhost' identified by 'liferaysecret'; > grant all on wspgrade.* to 'wspgrade'@'localhost' identified by 'wspgradesecret'; > grant all on PortalUser.* to 'PortalUser'@'localhost' identified by 'PortalUsersecret'; > grant all on liferay.* to 'liferay'@'fullyqualified.hostname' identified by 'liferaysecret'; > grant all on wspgrade.* to 'wspgrade'@'fullyqualified.hostname' identified by 'wspgradesecret'; > grant all on PortalUser.* to 'PortalUser'@'fullyqualified.hostname' identified by 'PortalUsersecret';
 

1 Install Liferay

Line: 68 to 68
 

0.1 Edit/Create Liferay properties

Changed:
<
<
Edit the file called portal-ext.properties. If it does not exists, please create a file with this name in the '''tomcat's root folder''', if exists please move it to '''tomcat's root folder'''.
>
>
Edit the file called portal-ext.properties. If it does not exists, please create a file with this name in the '''tomcat's root folder''', if exists please move it to '''tomcat's root folder'''.
  gUSE requires the following settings:
Line: 82 to 82
  jdbc.default.driverClassName=com.mysql.jdbc.Driver jdbc.default.url=jdbc:mysql://fullyqualified.hostname:3306/liferay?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false jdbc.default.username=liferay
Changed:
<
<
jdbc.default.password=liferaypassword
>
>
jdbc.default.password=liferaysecret
  jdbc.default.maxIdleTime=3600
Line: 95 to 95
 Creating database tables for gUSE.
Changed:
<
<
$ mysql -h fullyqualified.hostname -u wspgrade -pwspgradepassword wspgrade < guse_tables.sql $ mysql -h fullyqualified.hostname -u wspgrade -pwspgradepassword wspgrade < guse_table_mess.sql $ mysql -h fullyqualified.hostname -u wspgrade -pwspgradepassword wspgrade < guse_tables_index.sql
>
>
$ mysql -h fullyqualified.hostname -u wspgrade -pwspgradesecret wspgrade < guse_tables.sql $ mysql -h fullyqualified.hostname -u wspgrade -pwspgradesecret wspgrade < guse_table_mess.sql $ mysql -h fullyqualified.hostname -u wspgrade -pwspgradesecret wspgrade < guse_tables_index.sql
 

0.1 Parameterizing runtime environment

Line: 191 to 191
  and run:
Changed:
<
<
$ mysql -h fullyqualified.hostname -u PortalUser -pPortalUserpassword PortaUser < PortalUser.sql $ mysql -h fullyqualified.hostname -u PortalUser -pPortalUserpassword PortaUser < PortalUser_IDP.sql
>
>
$ mysql -h fullyqualified.hostname -u PortalUser -pPortalUsersecret PortaUser < PortalUser.sql $ mysql -h fullyqualified.hostname -u PortalUser -pPortalUsersecret PortaUser < PortalUser_IDP.sql
 

0.1 Deploying the portlets war files

Download the portlets:

Changed:
<
<
>
>
 
Changed:
<
<
Now copy the portlets war file in /opt/liferay-portal-6.0.5/deploy/ folder.
>
>
Now copy the portlets war file in /opt/liferay-portal-6.0.5/deploy/ folder or install using the LIferay interface by Manage/Control Panel/Plugins Installation/Install More Portlets/Upload File.

Now ou create the folder /upload_files and download these files into the folder:

  • get_vo_info.py: Python utility for manage the VO table in the PortaUser database.
  • myproxy2.py: Python utility for upload user's certificate into myproxy server.
  • splitP12.py: Python utility for conversion of user's certificate from p12 format into pem format.

NOTE: after download check that the files are properly named.

Now you edit the get_vo_info.py with your database connection information.

Now you must install this python library by executing this command:

 $ yum install pycurl pexpect MySQL-python

For the proper functioning of registration workflow you must add these line to portal-ext.properties at the and of file:

  auth.login.url=/web/guest/registration
  users.reminder.queries.enabled=false

For the automatic redirect from http port to https port add these line at the same file:

  company.security.auth.requires.https=true
  web.server.https.port=443

And now modify the $tomcat_home/webapp/ROOT/WEB-INF/web.xml in this way:

  [...]
  <security-constraint>
      <web-resource-collection>
         <web-resource-name>Entire Application</web-resource-name>
            <url-pattern>/*</url-pattern>
         </web-resource-collection>
         <!--   <web-resource-name>/c/portal/protected</web-resource-name>
         <url-pattern>/c/portal/protected</url-pattern>
         <url-pattern>/ar/c/portal/protected</url-pattern>
         <url-pattern>/ar_SA/c/portal/protected</url-pattern>
         <url-pattern>/bg/c/portal/protected</url-pattern>
         <url-pattern>/bg_BG/c/portal/protected</url-pattern>
         <url-pattern>/ca/c/portal/protected</url-pattern>
         <url-pattern>/ca_AD/c/portal/protected</url-pattern>
         <url-pattern>/ca_ES/c/portal/protected</url-pattern>
         <url-pattern>/cs/c/portal/protected</url-pattern>
         <url-pattern>/cs_CZ/c/portal/protected</url-pattern>
         <url-pattern>/de/c/portal/protected</url-pattern>
         <url-pattern>/de_DE/c/portal/protected</url-pattern>
         <url-pattern>/el/c/portal/protected</url-pattern>
         <url-pattern>/el_GR/c/portal/protected</url-pattern>
         <url-pattern>/en/c/portal/protected</url-pattern>
         <url-pattern>/en_GB/c/portal/protected</url-pattern>
         <url-pattern>/en_US/c/portal/protected</url-pattern>
         <url-pattern>/es/c/portal/protected</url-pattern>
         <url-pattern>/es_ES/c/portal/protected</url-pattern>
         <url-pattern>/et/c/portal/protected</url-pattern>
         <url-pattern>/et_EE/c/portal/protected</url-pattern>
         <url-pattern>/eu/c/portal/protected</url-pattern>
         <url-pattern>/eu_ES/c/portal/protected</url-pattern>
         <url-pattern>/fa/c/portal/protected</url-pattern>
         <url-pattern>/fa_IR/c/portal/protected</url-pattern>
         <url-pattern>/fi/c/portal/protected</url-pattern>
         <url-pattern>/fi_FI/c/portal/protected</url-pattern>
         <url-pattern>/fr/c/portal/protected</url-pattern>
         <url-pattern>/fr_FR/c/portal/protected</url-pattern>
         <url-pattern>/gl/c/portal/protected</url-pattern>
         <url-pattern>/gl_ES/c/portal/protected</url-pattern>
         <url-pattern>/hi/c/portal/protected</url-pattern>
         <url-pattern>/hi_IN/c/portal/protected</url-pattern>
         <url-pattern>/hu/c/portal/protected</url-pattern>
         <url-pattern>/hu_HU/c/portal/protected</url-pattern>
         <url-pattern>/in/c/portal/protected</url-pattern>
         <url-pattern>/in_ID/c/portal/protected</url-pattern>
         <url-pattern>/it/c/portal/protected</url-pattern>
         <url-pattern>/it_IT/c/portal/protected</url-pattern>
         <url-pattern>/iw/c/portal/protected</url-pattern>
         <url-pattern>/iw_IL/c/portal/protected</url-pattern>
         <url-pattern>/ja/c/portal/protected</url-pattern>
         <url-pattern>/ja_JP/c/portal/protected</url-pattern>
         <url-pattern>/ko/c/portal/protected</url-pattern>
         <url-pattern>/ko_KR/c/portal/protected</url-pattern>
         <url-pattern>/nb/c/portal/protected</url-pattern>
         <url-pattern>/nb_NO/c/portal/protected</url-pattern>
         <url-pattern>/nl/c/portal/protected</url-pattern>
         <url-pattern>/nl_NL/c/portal/protected</url-pattern>
         <url-pattern>/pl/c/portal/protected</url-pattern>
         <url-pattern>/pl_PL/c/portal/protected</url-pattern>
         <url-pattern>/pt/c/portal/protected</url-pattern>
         <url-pattern>/pt_BR/c/portal/protected</url-pattern>
         <url-pattern>/pt_PT/c/portal/protected</url-pattern>
         <url-pattern>/ru/c/portal/protected</url-pattern>
         <url-pattern>/ru_RU/c/portal/protected</url-pattern>
         <url-pattern>/sk/c/portal/protected</url-pattern>
         <url-pattern>/sk_SK/c/portal/protected</url-pattern>
         <url-pattern>/sv/c/portal/protected</url-pattern>
         <url-pattern>/sv_SE/c/portal/protected</url-pattern>
         <url-pattern>/tr/c/portal/protected</url-pattern>
         <url-pattern>/tr_TR/c/portal/protected</url-pattern>
         <url-pattern>/uk/c/portal/protected</url-pattern>
         <url-pattern>/uk_UA/c/portal/protected</url-pattern>
         <url-pattern>/vi/c/portal/protected</url-pattern>
         <url-pattern>/vi_VN/c/portal/protected</url-pattern>
         <url-pattern>/zh/c/portal/protected</url-pattern>
         <url-pattern>/zh_CN/c/portal/protected</url-pattern>
         <url-pattern>/zh_TW/c/portal/protected</url-pattern>
         <http-method>GET</http-method>
         <http-method>POST</http-method>
      </web-resource-collection>
      <auth-constraint>
         <role-name>users</role-name>
      </auth-constraint>-->
      <user-data-constraint>
         <transport-guarantee>CONFIDENTIAL</transport-guarantee>
      </user-data-constraint>
   </security-constraint>
  [...]
 

1 Setting IGIPortal layout

Line: 209 to 330
  Please note that layout is working with Liferay 6.0.5, different liferay versions may not compatible with it.
Added:
>
>
In the Welcome page import in the Web Content portlet this file: welcome.portlet.lar
 

References

Line: 216 to 339
  -- Diego Michelotto - 11 Nov 2011
Changed:
<
<
META FILEATTACHMENT attachment="igiportal.lar" attr="" comment="Liferay layout for IGI Portal" date="1320933176" name="igiportal.lar" path="igiportal.lar" size="1435119" user="DiegoMichelotto" version="1"
>
>
META FILEATTACHMENT attachment="igiportal.lar" attr="" comment="" date="1326276321" name="igiportal.lar" path="igiportal.lar" size="1748905" user="DiegoMichelotto" version="2"
 
META FILEATTACHMENT attachment="PortalUser.sql" attr="" comment="Dump of PortalUser database only structure" date="1320933509" name="PortalUser.sql" path="PortalUser.sql" size="4406" user="DiegoMichelotto" version="1"
META FILEATTACHMENT attachment="PortalUser_IDP.sql" attr="" comment="Dump of table IDP from PortalUser structure + data" date="1320933606" name="PortalUser_IDP.sql" path="PortalUser_IDP.sql" size="1752" user="DiegoMichelotto" version="1"
Changed:
<
<
META FILEATTACHMENT attachment="Login-1.war" attr="" comment="Portlet Login" date="1320934895" name="Login-1.war" path="Login-1.war" size="16577851" user="DiegoMichelotto" version="1"
META FILEATTACHMENT attachment="Registration-4.war" attr="" comment="Portlet Registration" date="1320934951" name="Registration-4.war" path="Registration-4.war" size="17208549" user="DiegoMichelotto" version="1"
META FILEATTACHMENT attachment="VO-manager-portlet-0.1.war" attr="" comment="Portlet VOManager" date="1320935003" name="VO-manager-portlet-0.1.war" path="VO-manager-portlet-0.1.war" size="19162785" user="DiegoMichelotto" version="1"
>
>
META FILEATTACHMENT attachment="Registration-4.war" attr="" comment="Portlet for PortalUser" date="1326271497" name="Registration-4.war" path="Registration-4.war" size="17475503" user="DiegoMichelotto" version="2"
META FILEATTACHMENT attachment="VO-manager-portlet-0.1.war" attr="" comment="Portlet for PortalUser" date="1326271495" name="VO-manager-portlet-0.1.war" path="VO-manager-portlet-0.1.war" size="19246974" user="DiegoMichelotto" version="2"
META FILEATTACHMENT attachment="Login-1.1.war" attr="" comment="Portlet for PortalUser" date="1326271500" name="Login-1.1.war" path="Login-1.1.war" size="22922490" user="DiegoMichelotto" version="1"
META FILEATTACHMENT attachment="igiportla.lar" attr="" comment="Layout IGI" date="1326272493" name="igiportla.lar" path="igiportla.lar" size="1938212" user="DiegoMichelotto" version="1"
META FILEATTACHMENT attachment="welcome.portlet.lar" attr="" comment="Layout IGI" date="1326272492" name="welcome.portlet.lar" path="welcome.portlet.lar" size="123078" user="DiegoMichelotto" version="1"
META FILEATTACHMENT attachment="get_vo_info.py.txt" attr="" comment="" date="1326273559" name="get_vo_info.py.txt" path="get_vo_info.py.txt" size="8238" user="DiegoMichelotto" version="2"
META FILEATTACHMENT attachment="myproxy2.py.txt" attr="" comment="Python utility" date="1326272665" name="myproxy2.py.txt" path="myproxy2.py.txt" size="992" user="DiegoMichelotto" version="1"
META FILEATTACHMENT attachment="splitP12.py.txt" attr="" comment="Python utility" date="1326272665" name="splitP12.py.txt" path="splitP12.py.txt" size="1167" user="DiegoMichelotto" version="1"
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback