Liferay charity OnePage Theme


#Liferay #Unify #Charity is an incredibly beautiful and fully #responsive #Bootstrap 4 #Template for any type of creative #professionals, startups and established #business

Download from Themeray : https://www.themeray.com/themes/charity

Demo Page : http://lr7.themeray.com/web/charity/home#home


0 comments:

Migrate Liferay from 6.1 to 7.1




  1. Prerequisites:

    • Download Liferay 7.1 ga2 zip portal and upload it to the liferay server
    • Backup of Liferay portal(6.1) database.
    Upgrading to Liferay Portal consists of two main steps: upgrading the installation and then upgrading database. Liferay Portal can be upgraded using a straightforward process.
    To upgrade to the latest release directly, you must be coming from Liferay Portal 6.0.12 or higher.
    If you’re on Liferay Portal 6.0.11 or below, you should upgrade to Liferay Portal 6.2 before approaching an upgrade to the Liferay Portal CE 7.0 platform.

  2. Download and install liferay 7.1 ga2:

    • Download liferay portal on the linux server from: https://sourceforge.net/projects/lportal/files/Liferay%20Portal/7.1.1%20GA2/liferay-ce-portal-tomcat-7.1.1-ga2-20181112144637000.tar.gz

      Command :
      $ sudo wget https://sourceforge.net/projects/lportal/files/Liferay%20Portal/7.1.1%20GA2/liferay-ce-portal-tomcat-7.1.1-ga2-20181112144637000.tar.gz
      
    • Create liferay user:
      $ sudo useradd liferay
      
    • Create the liferay folder and associate it to liferay user:
      
      $ cd /opt/
      $ sudo mkdir liferay
      $ sudo chown -R liferay:liferay liferay
      
    • Copy the zip portal to Liferay folder:
      
      $ sudo cp /[location_zip]/ liferay-ce-portal-tomcat-7.1.1-ga2-20181112144637000.tar.gz /opt/liferay
      
    • Extract liferay portal and change the owner:
      
      $ sudo tar xvzf liferay-ce-portal-tomcat-7.1.1-ga2-20181112144637000.tar.gz
      $ sudo chown -R liferay:liferay liferay-ce-portal-tomcat-7.1.1-ga2
      
    • Create a liferay service:
      
      # Liferay NAS Symposium Boston 2014 auto-start
      #
      ### BEGIN INIT INFO
      # Provides:          liferay
      # Required-Start:    $apache2 $mysql
      # Required-Stop:     $apache2
      # Default-Start:     2 3 4 5
      # Default-Stop:      0 1 6
      # X-Interactive:     true
      # Short-Description: Start/stop tomcat server bundled with liferay
      ### END INIT INFO
      #export JAVA_HOME=/usr/lib/jvm/default-java
      
      # If Liferay has ever been started (or unzipped) with a different user
      # account than what it's running as, we need to correct permissions.
      #
      # cd /opt/liferay
      # chown -R liferay data deploy
      # cd tomcat
      # chown -R liferay webapps conf temp logs work
      # cd /opt/liferay/tomcat
      # run on hardened permissions by default
      # chown -R root webapps conf ../deploy
      
      cd /opt/liferay/liferay-portal-7.1.1-ga2/
      
      case $1 in
      start)
              # run on softened permissions by default: might need to deploy hooks etc. on startup
              chown -R liferay tomcat-9.0.10/temp tomcat-9.0.10/logs tomcat-9.0.10/work tomcat-9.0.10/webapps tomcat-9.0.10/conf deploy
              sudo -u liferay /opt/liferay/liferay-portal-7.1.1-ga2/tomcat-9.0.10/bin/startup.sh
              ;;
      stop)
              sudo -u liferay /opt/liferay/liferay-portal-7.1.1-ga2/tomcat-9.0.10/bin/shutdown.sh
              ;;
      soften) 
              # can and should be run when the server is running.
              chown -R liferay webapps conf ../deploy
              ;;
      harden)
              # can and should be run while the server is running.
                chown -R liferay webapps conf ../deploy
              ;;
      harden)
              # can and should be run while the server is running.
              chown -R root tomcat-9.0.10/webapps tomcat-9.0.10/conf deploy
              ;;
      restart)
              sudo -u liferay /opt/liferay/liferay-portal-7.1.1-ga2/tomcat-9.0.10/bin/shutdown.sh
              sleep 5
              sudo -u liferay /opt/liferay/liferay-portal-7.1.1-ga2/tomcat-9.0.10/bin/startup.sh
              ;;
      esac
      exit 0
      
      
      This code need to be inserted in a file named liferay and added to /etc/init.d/ folder with root permission.
    • Run the liferay service:
      
      $ sudo service liferay start
      
    • Show the log file:
      
      $ cd /opt/liferay/ liferay-portal-7.1.1-ga2/tomcat-9.0.10/log/
      $ sudo tail -f catalina.out
      
    • Intall liferay 7.1 ga2 with the default configuration:


  3. Install backup databases:
  4. In this step we will be installing the portal liferay 6.1 database on the appropriate server and migrating it to the version 7.1 liferay ga2.

    Anytime we can use the connection parameters of the database of the current portal but it is something to avoid when working on a production version.

  5. Steps to perform for database migration from 6.1 to 7:


    • If you already have installed DXP in local machine then you would have one package called portal-tools-db-upgrade-client available inside \liferay-workspace\bundles\tools\portal-tools-db-upgrade-client path.
    • Open app-server.properties file and un-comment below entry
      
      dir=../../tomcat-8.0.32
      global.lib.dir=lib
      portal.dir=webapps/ROOT
      server.detector.server.id=tomcat
      
    • Open portal-upgrade-database.properties and un-comment below entry for 6.X DB detail
      
      jdbc.default.url=jdbc:oracle:thin:@localhost:1521:xe
      jdbc.default.driverClassName=oracle.jdbc.OracleDriver
      jdbc.default.username=LIFERAY71
      jdbc.default.password=testpassword
      
    • Open portal-upgrade-ext.properties.properties and put below property to point Liferay DXP bundle path
      
      liferay.home=C:/Jigs-DXP/liferay-developer-studio/workspace/Jigs_DXP_WS/bundles
      
    • Go to liferay-workspace\bundles\osgi\configs and create one config file called
      
      com.liferay.portal.search.configuration.IndexStatusManagerConfiguration.cfg and put below property inside that :
      indexReadOnly=true
      
    • Go to \liferay-workspace\bundles\tools\portal-tools-db-upgrade-client and run below command to execute upgrade process:
      
      java -jar com.liferay.portal.tools.db.upgrade.client.jar -j "-Duser.country=US -Duser.language=en -Duser.timezone=GMT -Xmx4096m"
      
    Note: During above command execution you might get below error for running jar file ,
    
    java.lang.UnsupportedClassVersionError: com/liferay/portal/tools/DBUpgrader : Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    
    
    Could not find the main class: com.liferay.portal.tools.DBUpgrader. Program will exit. Exception in thread "main"
    This is due to incorrect JDK/JRE being pointed out to in your system. So just check what have been set into JAVA_HOME path in your machine and make sure that its being point out to correct JAVA version which is JDK8/JRE8.
    You can check all your log inside upgrade.log file.
    • Once above task is execute successfully, you can be able to see success message show below
      Once it’s done then it would start felix gogo shell which you need to close to start your server.
    • Add below property to portal-ext.properties file before you start your server otherwise it will not allow you to login
      
      passwords.encryption.algorithm.legacy= SHA
      
    Once you get success message for upgrade task, you can go to database and check release_ table where you can be able to see one entry for servletcontextname=portal and buildnumber=711 which is your LR DXP version and schema version would be 7.1.1.
    This shows that you have migrated your database successfully.

  6. Run Liferay 7.1 portal with the migrated database:
  7. This step consists of changing the connection settings in the liferay 7.1 properties file.

    • Stop the liferay 7.1 server:
      
      $ sudo service liferay stop
      
    • Update the properties file:
      
      jdbc.default.driverClassName=org.postgresql.Driver
      jdbc.default.password=*****
      jdbc.default.url=jdbc:postgresql://localhost:5432/ecommerce_lr7_1
      jdbc.default.username=postgres
      
    • Start the server:
      
      $ sudo service liferay start
      
    • Show the log file:
      
      $ cd /opt/liferay/ liferay-portal-7.1.1-ga2/tomcat-9.0.10/log/
      $ sudo tail -f catalina.out
      

  8. Upgrade theme, all portlets and all plugins:
  9. We need to upgrade the theme to new version of the liferay. Upgrade all the plugins and portlets to the osgi modules supported by the liferay 7.1 ga2 Install all modules and the theme on the new portal. --> We need to check the LDAP plugin between the portal and the website since we have the same liferay version.

  10. References:







0 comments:

Integrate Google reCaptcha 2.0 on liferay 6.2




1. Prerequis :
- Liferay Google Recaptcha plugin and hook downloaded from : Link
- Google Recaptcha Api keys : Public and Private keys
2. Create Google Recaptcha Api Keys :
Go to the google recaptcha site : https://www.google.com/recaptcha/. You will see a Admin Console button at the top-right corner. It will redirect you on Google reCAPTCHA Admin page(It will ask for login to Google, if already not).

When you click on the button registre new site You will see a screen like below:

google Recaptcha
You can give value whatever you want for Label field. You need to choose reCAPTCHA v2 option. You need to add your domain to Domains field as shown in the above image. You can use multiple domains with single key/secret. After adding values to Label and Domains fields, click on Submit button.
You will redirected to a page where you will get Site key and Secret key as shown in below image:

Note : these both keys, it will require to authenticate your site with Google reCAPTCHA.
3. Deploy Google Recaptcha Liferay Hook and Ext plugin:
Disclaimer: Hence, this is an Ext plugin deployment, it is advised to first try with the Liferay server other than the Production Liferay server and test properly as per your environment configuration. We will not be responsible for any kind of damage to the Liferay server and data loss.
Now, you have to deploy attached Hook plugin first and then deploy Ext plugin. On successfully deploy ext plugin, you must have to restart your Liferay server.
Note : The Liferay server accept only one ext plugin project, if you have  onther one on your server you need to add the java classes from ext-impl folder under recaptcha ext plugin to your ext project.
4. Enable reCAPTCHA:
Now, Login to Liferay portal with administrative user’s credential and go to Liferay > Control Panel > Configuration > Server Administration > CAPTCHA as shown in below:
Tick Enable reCAPTCHA. Provide Site key to reCAPTCHA Public Key and Secret key to reCAPTCHA Private Key fields, and then Save your changes

0 comments:

Migrating and upgrading Liferay portal from 6.1 to 6.2




You can upgrade your liferay portal 6.1 to 6.2 by following the steps below:

1. Create a backup of your database (6.1) and take a copy of the document_library folder (6.1).

2. Copy the document_library folder(6.1) to the new folder(portal_path/data/ )

3. Start the server with a clean portal (6.2) and default configuration (Hypersonic SQL)

4. Close the server

5. Create a new database from the dump database(6.1)

6. Update ‘portal-setup-wizard.properties’ file:
- Set the connection to 6.2 database

- Add this property passwords.encryption.algorithm.legacy=SHA to be able to connect to your new portal.

- You can copy the other properties used in the old portal 6.1

7. Restart the server

8. Deploy all the portlets 

9. Execute reindex
And that's it, you can enjoy your new 6.2 portal!

0 comments:

Liferay Twitter Portlet




#Twitter #Portlet is a simple and powerful #tool to add #Twitter content to #Liferay #website in an easy and seamless way. With this #extension you can increase you audience and engagement of your #website #visitors.
Download #Free #Portlet on https://www.themeray.com/themes/twitter-portlet


0 comments:

Liferay HealthCare Theme




#HealthCare #Theme is a site #template suitable for #medical and #health related #businesses or any #corporate #websites in this field.

Download This #Theme from Themeray : https://www.themeray.com/themes/healthcare



0 comments:

Smart Talk Portlet Liferay 6.2+





We create you #Liferay #portlets using the new http://wit.ai #technology.
contact us on : https://themeray.com/contact



0 comments:

Liferay Wedding Theme



#Unify #wedding is an incredibly beautiful and 
fully #responsive #Bootstrap 4 one page #Template
Download from themeray : https://www.themeray.com/themes/wedding


0 comments:

Unify Corporate Liferay Theme



Unify is an incredibly #beautiful and fully #responsive #Bootstrap 4 #Liferay #Template for any type of #creative #professionals, startups and established #business



0 comments:

Unify Education Liferay Theme




#Unify is an incredibly beautiful and fully #responsive #Bootstrap 4 Liferay #Template for any type of #creative #professionals, startups and established #business.


0 comments: