Liferay portal properties interview questions

# What is order of loading portal properties?

  1.  system.properties from portal-impl.jar
  2. portal.properties from portal-impl.jar
  3. portal-ext.properties is custom properties
  4. portal-setup-wizard.properties
  5. portal-ide.properties

#How to change the default email Authentication to screen name?

 company.security.auth.type=emailAddress
 #company.security.auth.type=screenName
 #company.security.auth.type=userId

# How to disable create account/ Register?

# Set this to true to allow strangers to create accounts and register
 # themselves on the portal.
 #
 company.security.strangers=true

# How to disable authentication on Liferay?

auth.login.disabled=false
 auth.login.disabled.path=/portal/login_disabled

# How to set  Liferay home directory?

liferay.home=${resource.repositories.root}

How to disable user reminder queries?

   users.reminder.queries.enabled=true

# How to disable terms of use after login?

    terms.of.use.required=true

# How to setup the email server configuration in Liferay?

###### via JNDI #######
 mail.session.jndi.name=mail/MailSession
 
 ####Via Properties #######
 mail.session.mail.pop3.host=localhost
 mail.session.mail.pop3.password=
 mail.session.mail.pop3.port=110
 mail.session.mail.pop3.user=
 mail.session.mail.smtp.auth=false
 mail.session.mail.smtp.host=localhost
 mail.session.mail.smtp.password=
 mail.session.mail.smtp.port=25
 mail.session.mail.smtp.user=
 mail.session.mail.store.protocol=pop3
 mail.session.mail.transport.protocol=smtp
 

# How to disable JSON web services for security reasons?

  json.web.service.enabled=true

# How to increase counter table increment value?

 #
 # Set the number of increments between database updates to the Counter
 # table. Set this value to a higher number for better performance.
 #
 counter.increment=100

#How to override default admin creation(test@liferay.com) in Liferay?

 Override through portal-ext.properties:

  •  #
     # Set the default admin password.
     #
     default.admin.password=test
     #
     # Set the default admin screen name prefix.
     #
     default.admin.screen.name=test
     #
     # Set the default admin email address prefix.
     #
     default.admin.email.address.prefix=test
     #
     # Set the default admin first name.
     #
     default.admin.first.name=Test
     #
     # Set the default admin middle name.
     #
     default.admin.middle.name=
     #
     # Set the default admin last name.
     #
     default.admin.last.name=Test

 

 

 

 

Leave a Comment

Your email address will not be published. Required fields are marked *