Created
April 26, 2013 21:30
-
-
Save davidecavaliere/5470582 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install tomcat6 tomcat6-admin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim /opt/tomcat/webapps/ROOT/WEB-INF/classes/portal-ext.properties |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#portal-ext.properties | |
jdbc.default.driverClassName=com.mysql.jdbc.Driver | |
jdbc.default.url=jdbc:mysql://localhost:3306/lportal606_db?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false jdbc.default.username= | |
jdbc.default.password= dl.hook.file.system.root.dir=/opt/liferay/data/document_library image.hook.file.system.root.dir=/opt/liferay/data/images lucene.dir=/opt/liferay/data/lucene/ | |
auto.deploy.deploy.dir=/opt/liferay/deploy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /opt/liferay | |
chown tomcat6:tomcat6 /opt/liferay | |
chmod gu+rwx /opt/liferay |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service tomcat6 start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
watch tail -n 24 /opt/tomcat/logs/catalina.out |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service tomcat6 stop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /opt/tomcat | |
cd /opt/tomcat | |
ln -s /etc/tomcat6/ conf | |
ln -s /usr/share/tomcat6/bin/ bin | |
ln -s /usr/share/tomcat6/lib/ lib | |
ln -s /var/lib/tomcat6/webapps webapps | |
ln -s /var/log/tomcat6/ logs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Context path="" crossContext="true"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<user name=”ADMIN_NAME” password=”ADMIN_PASSWORD” roles=”admin, manager” /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install mysql-server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE DATABASE lportal606_db DEFAULT CHARACTER SET utf8; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install libmysql-java | |
ln -s /usr/share/java/mysql.jar /opt/tomcat/lib/mysql.jar | |
ln -s /usr/share/java/mysql-connector.jar /opt/tomcat/lib/mysql-connector.jar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -rf /opt/tomcat/webapps/ROOT/* | |
cd /opt/tomcat/webapps/ROOT | |
jar xvf liferay-portal-6.0.6-20110225.war |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment