RE: help me with portal.properties

sinc zhang, modified 15 Years ago. New Member Posts: 2 Join Date: 5/8/11 Recent Posts
Hello, I'm new to Liferay. I install liferay with the steps in http://blog.163.com/sqw553554201@126/blog/static/92958282201122810146825/

And I want to change something in portal.properties, but I can't find it in my ...\liferay-portal-6.0.6\tomcat-6.0.29\webapps\ROOT\WEB-INF\classes .

In that folder, there're only
log4j.properties
logging.properties
portal-developer.properties
portal-legacy-4.4.properties
portal-legacy-5.0.properties
portal-legacy-5.1.properties
portal-legacy-5.2.properties

But in some folders like webapps\kaleo-web\WEB-INF\classes , there are portal.properties.

So I create a portal.properties in ...\webapps\ROOT\WEB-INF\classes, and change some configure like logout path, but it doesn't work.

I wonder if there are something wrong when I install the liferay , or other reasons.

I use netbeans6.9.1 and liferay6.0.6.

Forgive me my English. And thanks in advance.
thumbnail
Tanweer Ahmed Ansari, modified 3 Years ago. Expert Posts: 322 Join Date: 3/11/10 Recent Posts
Hi Sinc,

Use portal-ext.properties to override the portal properties .Find the properties file at this location " \liferay-portal-6.0.6\tomcat-6.0.29\webapps\ROOT\WEB-INF\classes".If its not there, create one and use it to override.

Regards,
Tanweer Ahmed Ansari,
mPowerian-BoschLer
thumbnail
Hitoshi Ozawa, modified 15 Years ago. Liferay Legend Posts: 7942 Join Date: 3/24/10 Recent Posts
So I create a portal.properties in ...\webapps\ROOT\WEB-INF\classes


DON'T create a portal.properties file. Create a portal-ext.properties file as Tanweer said.

If you created a portal.properties file, delete it.
thumbnail
Dave Weitzel, modified 15 Years ago. Regular Member Posts: 208 Join Date: 11/18/09 Recent Posts
If you want to see what the portal.properties file actually contains - it has reasonable documentation within in it then you need to expand the
portal-impl,jar file

as everyone else has said - use portal-ext.properties to override.

you can put this in the same <tomcat>/webapps/ROOT/WEB-INF/classes folder

OR in your:
<liferay installation> folder (ie same folder as <tomcat>)

I tend to use the later for site parameters (database connection details) and the former for liferay configuration elements eg languages
thumbnail
Hitoshi Ozawa, modified 15 Years ago. Liferay Legend Posts: 7942 Join Date: 3/24/10 Recent Posts
If you want to see what the portal.properties file actually contains - it has reasonable documentation within in it then you need to expand the
portal-impl,jar file


I personally like the wiki document compared to extracting the portal-impl.jar file.
http://www.liferay.com/community/wiki/-/wiki/Main/Portal+Properties

A very brief description about the portal.properties:
http://www.liferay.com/community/wiki/-/wiki/Main/Customization
sinc zhang, modified 15 Years ago. New Member Posts: 2 Join Date: 5/8/11 Recent Posts
Thanks everyone for your reply, I'll do as you said.

And thanks again emoticon