This wiki does not contain official documentation and is currently deprecated and read only. Please try reading the documentation on the Liferay Developer Network, the new site dedicated to Liferay documentation. DISCOVER Build your web site, collaborate with your colleagues, manage your content, and more. DEVELOP Build applications that run inside Liferay, extend the features provided out of the box with Liferay's APIs. DISTRIBUTE Let the world know about your app by publishing it in Liferay's marketplace. PARTICIPATE Become a part of Liferay's community, meet other Liferay users, and get involved in the open source project. Installation requirements and recommendations
Table of Contents [-]
Installing Liferay 4.2.1 Tomcat bundle with Portal trunk 5397 (as of 04-11-2007)
Requirements Apache Ant-1.7.0 [apache-ant-1.7.0-bin.zip] Java JDK-1.5.0.11 [jdk-1_5_0_11-windows-i586-p.exe] Liferay 4.2.1 (Bundled with Tomcat for JDK 5.0) [liferay-portal-tomcat-jdk5-4.2.1.zip] Liferay Portal Trunk Revision: 5397[[[https://lportal.svn.sourceforge.net/svnroot/lportal/portal/trunk]]
| Jikes 1.22 [jikes-1.22-1.windows.zip]] |
MySQL Community Server 5.0.37 [mysql-5.0.37-win32.zip] JDBC connector for MySQL [mysql-connector-java-5.0.3-bin.jar] SQLyog MySQL GUI – Community Edition [SQLyog526.exe]
Install Procedures
1. Extract Apache Ant to C:\Apache\apache-ant-1.7.0
2. Setup System variable:
Variable name: ANT_HOME
Variable value: C:\Apache\apache-ant-1.7.0
3. Run Java JDK and place files under C:\Java
C:\Java\jre1.5.0_11
C:\Java\jdk1.5.0_11
4. Setup System variable:
Variable name: JAVA_HOME
Variable value: C:\Java\jdk1.5.0_11
5. Unzip Jikes and run executable. Store in C:\jikes
6. System variable Path should include
C:\Apache\apache-ant-1.7.0\bin; C:\jikes\bin;C:\Program Files\MySQL\MySQL Server\bin;JAVA_HOME\bin;ANT_HOME\bin
7. Unzip MySQL and run Setup.exe
Setup Type: Typical
MySQL.com Sign-Up: Skip Sign-Up
Check Configure the MySQL Server now
Standard Configuration
Check Install As Windows Service
Service Name: MySQL
Check Launch the MySQL Server automatically
Check Include Bin Directory in Windows PATH
Check Modify Security Settings
New root password: root
Confirm: root
Execute
8. Extract Liferay Tomcat Bundle to C:\liferay4.2.1
9. Download Liferay Portal Trunk to C:\liferay4.2.1\portal
All folders and files must be under ‘portal’ folder
10. Create blank file app.server.$USERNAME.properties
11. Edit app.server.properties
## Server Type
app.server.type=tomcat
## Server Directory
app.server.parent.dir=C:/liferay4.2.1
## Tomcat
app.server.tomcat.dir=${app.server.parent.dir}
12. From the Command Prompt window go to C:\liferay4.2.1\portal
Type 'ant all'
(This can take anywhere from 6-10 minutes to run.)
13. From the Command Prompt window go to C:\liferay4.2.1\portal\sql
Type 'ant build-db'
14. From the Command Prompt window go to C:\liferay4.2.1\portal\sql\create
Type 'mysql < create-mysql.sql'
15. Copy JDBC connector for MySQL mysql-connector-java-5.0.3-bin.jar to C:\liferay4.2.1\common\lib\ext
16. Edit Root.xml file from C:\liferay4.2.1\conf\Catalina\localhost
<Resource
name="jdbc/LiferayPool"
auth="Container"
type="javax.sql.DataSource"
driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8"
username="root"
password="root"
maxActive="20"
maxIdle=”30”
maxWait=”10000”
/>
17. Double-click startup.bat in C:\liferay4.2.1\bin
18. Browse to: http://localhost:8080
19. Sign In with
Login test@liferay.com
Password test
That's It!!!SQLyog MySQL GUI can be installed to view the MySQL tables created under the 'lportal' database.
Related Articles #
28319 Visualizzazioni