Professional Documents
Culture Documents
1. Download the liferay-portal-tomcat-x.x.x zip file & liferay-portal-sql-x.x.x zip file from
following website.
www.liferay.com
Then click on Download & click on Bundled with Tomcat x.x
If you want to take sql the click on Additional Files
Click on Liferay Portal 5.0.1 SQL Scripts
Extraction of Liferay
2. Extract the liferay-portal-tomcat-x.x.x zip file.
5. Then go to MYSQL Query Browser login as root then open Script tab
8. If you want to change the database name (by default it will be lportal) you can change it.
10. Now got to folder where you kept liferay-portal-tomcat-x.x.x (Or the name which you
specified)
Configuration of Liferay
11. Go to following path liferay-portal-tomcat-x.x.x/conf/Catalina/localhost (Or specified
name/conf/Catalina/localhost)
name="jdbc/LiferayPool"
auth="Container"
type="javax.sql.DataSource"
driverClassName="org.hsqldb.jdbcDriver"
url="jdbc:hsqldb:lportal"
username="sa"
password=""
maxActive="20"
/>
then add following thing in MSQL Area
<Resource
name="jdbc/LiferayPool"
auth="Container"
type="javax.sql.DataSource"
driverClassName="com.mysql.jdbc.Driver"
username="username"
password="password"
maxActive="100"
maxIdle="30"
maxWait="10000"
/>
13. Copy mysql.jar in liferay-portal-tomcat-x.x.x/common/lib (Or specified
name/common/lib)
14. If you want to change the port the go to liferay-portal-tomcat-x.x.x/conf (Or specified
name/conf)
maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"
enableLookups="false" redirectPort="8443"
acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true"
/>
to
<Connector port="8181" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"
enableLookups="false" redirectPort="8443"
acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true"
/>
# .bash_profile
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=$PATH:$HOME/bin
PATH=/usr/java/jdk1.5.0_02/bin:$PATH:$HOME/bin:./
(Or give the path of jdk)
export PATH
export JAVA_HOME=/usr/java/jdk1.5.0_02/
(Or give the path of jdk)
export
CLASSPATH=/usr/java/jdk1.5.0_02/lib/tools.jar:/usr/java/jdk1.5.0_02/jr
e/lib/rt.jar:./
(Or give the path of jdk)
export CATALINA_HOME=/opt/liferay-portal-tomcat-x.x.x (or
Specified Name)
unset USERNAME
20. Go to liferay-portal-tomcat-x.x.x /bin (Or name specified/bin) and give this command
sh startup.sh and enter
21. If any error you want to see then o to liferay-portal-tomcat-x.x.x /logs (Or name
specified/logs) and give this command
tail -f Catalina.out and enter
22. If any liferay is not started or gives error then give this command and then use above
command
chmod -R 777 /opt/liferay-portal-tomcat-x.x.x (Or the name
specified) (Assume i copied liferay-portal-tomcat-x.x.x into opt
directory)
23. Now Open the Browser and type the below line
http://localhost:8080 (Or localhost:changed port number)
If it is in Server
http://server IP Address:8080 (Or Server IP Address:changed port
number)