[Logo] JForum - Powering Communities
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Members] Member Listing   [Groups] Back to home page 
[Moderation Log] Moderation Log   [Register] Register /  [Login] Login 


JForum 2.5.0 released, download it from here.
JForum re-install problem  RSS feed
Forum Index » Integration Forum
Author Message
johndorian


Joined: 2015/10/21
Messages: 4
Offline
Hi.
I have got hudge problem.
Every time when i restart my WildFly service, installation process of JForum is run.
I want to install JForum once, because every time I have to repeat installation process i lose my data in Database.\
please help.
udittmer


Joined: 2013/2/21
Messages: 217
Some more information is in this discussion elsewhere: http://www.coderanch.com/t/656841/jforum/JForum-install-database

Ping & Net - my free Android app for TCP/IP network diagnostics
[WWW]
andowson


Joined: 2011/6/30
Messages: 198
Offline
In short, currently JForum does not support war deployment method.
You have to explode the jforum.war file into jforum directory.

JForum will check for installed=true existing in jforum-custom.conf properties file or not when you access the /index.jsp. If JForum cannot find installed=true, it will redirect URL to /install.jsp.

If you don't want this feature, you can modify the index.jsp by removing or commenting out the following lines:
	if (cfg == null || !(new File(cfg).exists()) || !SystemGlobals.getBoolValue(ConfigKeys.INSTALLED)) {	
		redirect = "install.jsp";    
	}


Re-package the jforum.war and deploy it again, then manually access the /install.jsp URL at the first time.
johndorian


Joined: 2015/10/21
Messages: 4
Offline
Thanks for reply.

If you don't want this feature, you can modify the index.jsp by removing or commenting out the following lines


I did it, and after deployment I have got an error 500.

Odd thing.
I don't have jforum-custom.conf file ...

andowson


Joined: 2011/6/30
Messages: 198
Offline
The jforum-custom.conf file is generated after you have finished JForum web-based installation.
You can find it under <jforum_installed_dir>/WEB-INF/config directory.
The content looks like the following:
#Installation specific configuration options
#Thu Jul 09 02:39:41 CST 2015
announcement=
avatar.maxHeight=130
avatar.maxWidth=130
avatarMaxKbSize=25
captcha.registration=true
container.app=Apache Tomcat
container.version=8
context.path=/jforum
dao.driver=net.jforum.dao.mysql.MysqlDataAccessDriver
database.connection.dbname=jforum
database.connection.driver=com.mysql.jdbc.Driver
database.connection.host=localhost
database.connection.implementation=net.jforum.PooledConnection
database.connection.password=root
database.connection.pool.max=50
database.connection.pool.min=5
database.connection.pool.timeout=5000
database.connection.port=3306
database.connection.string=jdbc\:mysql\://${database.connection.host}\:${database.connection.port}/${database.connection.dbname}?user\=${database.connection.username}&password\=${database.connection.password}&autoReconnect\=true${mysql.unicode}${mysql.encoding}&useNewIO\=false&zeroDateTimeBehavior\=convertToNull&useServerPrepStmts\=false&dumpQueriesOnException\=true&jdbcCompliantTruncation\=false
database.connection.username=root
database.driver.name=mysql
database.support.autokeys=true
database.support.subqueries=true
dateTime.format=yyyy/MM/dd HH\:mm\:ss
dateTime.local=true
dbencoding=utf-8
encoding=UTF-8
forum.link=http\://localhost\:8080/jforum/
forum.name=My Forum
forum.page.metatag.description=here goes the board description
forum.page.metatag.keywords=some keywords for your board
forum.page.title=My Forum - your board description
homepage.link=http\://localhost\:8080
hot.topic.begin=20
html.tags.welcome=a, img, font, b, i, u, li, ul, br, hr, p
i18n.board.default=zh_TW
installed=true
mail.activationKey.messageFile=mail/zh_TW/activateAccount.txt
mail.activationKey.subject=[My Forum] Activate forum account
mail.charset=UTF-8
mail.lostPassword.messageFile=mail/zh_TW/lostPassword.txt
mail.lostPassword.subject=[My Forum] Password recovery
mail.messageFormat=html
mail.newAnswer.messageFile=mail/zh_TW/mailNewReply.txt
mail.newAnswer.subject=[My Forum] Message posted\: {0}
mail.newPm.messageFile=mail/zh_TW/newPrivateMessage.txt
mail.newPm.subject=[My Forum] Private Message
mail.notify.answers=false
mail.sender=email@sender.address
mail.smtp.auth=true
mail.smtp.host=localhost
mail.smtp.password=smtppassword
mail.smtp.port=25
mail.smtp.ssl=false
mail.smtp.username=your@smtp.username
mail.user.email.auth=false
mysql.encoding=
mysql.unicode=
org.quartz.context.mailintegration.cron.expression=0 0/30 * ? * *
org.quartz.context.summary.cron.expression=0 30 12 ? * MON
org.quartz.scheduler.instanceId=AUTO
org.quartz.scheduler.instanceName=JForumScheduler
org.quartz.scheduler.threadName=JForumSchedulerThread
org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount=2
org.quartz.threadPool.threadPriority=3
posts.cache.enabled=true
posts.cache.size=100
posts.edit.after.reply=true
posts.new.delay=15000
postsPerPage=15
registration.enabled=true
rss.enabled=true
server.info=Apache Tomcat/8.0.23
servlet.version=3.1
show.ip=true
show.online.status=true
social.enabled=true
topic.hottest=50
topic.recent=50
topicsPerPage=15
user.hash.sequence=82b17028644414f05588f471455ad51b
usersPerPage=30


You can also re-package jforum.war with your jforum-custom.conf containing the correct database connection and other system settings.
 
Forum Index » Integration Forum
Go to:   
Mobile view
Powered by JForum 2.5.0 © 2018 JForum Team • Maintained by Andowson Chang and Ulf Dittmer