Page 1 of 2
SOLVED: Remote connection to server
PostPosted:Fri Nov 28, 2008 9:27 am
by alloydog
I use Webmin and Putty to connect to the host server.
I read in another thread that when you run run.sh, you need to keep the terminal open. Is this right?
If I connect to the host server, with say Putty, run run.sh and then close the connection, will OpenKM shut down?
Re:Remore connection to remote server
PostPosted:Fri Nov 28, 2008 9:53 am
by pavila
You can start JBoss as a service. Make a search in this forum because is the answer to your question.
Re:Remore connection to remote server
PostPosted:Fri Nov 28, 2008 11:26 am
by alloydog
Thanks! will do.
Re:Remore connection to remote server
PostPosted:Sat Nov 29, 2008 12:23 pm
by jllort
Take a look at this
post, for some openkm script ( it\'s on spanish discussion , but script seems fine ).
It this
spanish web, you can get a more detailed solution ( it\'s quite easy, for it I post to you ).
Re:Remore connection to remote server
PostPosted:Mon Dec 01, 2008 7:24 am
by alloydog
Thanks, those helped (So did Google translate ;D )
Re:Remore connection to remote server
PostPosted:Wed Dec 03, 2008 11:03 am
by alloydog
alloydog wrote:Thanks, those helped (So did Google translate ;D )
sort of...
Looking at the instruction to create the workers2.properties file:
#
# This is the minimal JK2 connector configuration file.
#
[logger]
level=ERROR
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009
# myWebApp
[uri:/myWebApp]
[uri:/myWebApp/*]
I take it that "
myWebApp" referes to OpenKM. So should I use the full path, in my case
/opt/OpenKM-3.0_JBoss-4.2.2.GA/...?
What should be the final file?
The next instruction is to edit the file
jk2.conf. I have no such file. Do I create it?
The instructions in the file say to uncomment the last line, but when I run the following instruction through Google translate:
Luego editas el fichero /etc/apache2/mods-available/jk2.conf y descomentas la última línea para que quede así:
It reads as "
... cancel the last line" - does this mean comment the last line out?
# To enable mod_jk2, customize workers2.properties* from
# /usr/share/doc/libapache2-mod-jk2/examples and copy it to
# /etc/apache2/workers2.properties. Then uncomment the following line:
JkSet config.file /etc/apache2/workers2.properties
sorry for all these seemingly basic question, but I am completely new to all this...
Re:Remore connection to remote server
PostPosted:Wed Dec 03, 2008 12:20 pm
by jllort
Make apache proxy is not mandatory is you don\'t want to set a proxy across apache port 80 to openkm port 8080.
I don\'t know whick is your case, but on almost cases to make a script is not necessary it.
Re:Remote connection to server
PostPosted:Fri Dec 05, 2008 1:34 pm
by alloydog
Do I need the tomcat plugin for Apache?
Re:Remote connection to server
PostPosted:Tue Dec 09, 2008 12:28 pm
by pavila
Only if you want to access OpenKM (JBoss) through Apache.
Re:Remote connection to server
PostPosted:Tue Dec 09, 2008 12:40 pm
by alloydog
I still can\'t work out what\'s wrong.
Here\'s a copy of the preamble I get when I run
/bin/run.sh -b 0.0.0.0
OpenKM_startup.txt
Re:Remote connection to server
PostPosted:Tue Dec 09, 2008 12:59 pm
by pavila
The startup process is ok. Now you should access OpenKM at
http://localhost:8080/OpenKM .
Re:Remote connection to server
PostPosted:Tue Dec 09, 2008 6:05 pm
by alloydog
Sorry, I didn\'t explains things clearer, or I\'ve missed something...
OpenKm is installed on a server running Ubuntu 8.04, with no GUI.
I manage the server via SSH with either putty or WinSCP, or with Webmin. Run OpenKM from a terminal is not possible, as the moment I close the session, OpenKM will be shutdown. So it has to be run as a service, and started when the server is booted.
Also, others have to be able to use the document management service, so it is not possible to view at localhost. We have to view the DMS at http://server.address/OpenKM
For example, when trying out eZpublish, the URI was http://server.address/ez
If you get my meaning.
Re:Remote connection to server
PostPosted:Tue Dec 09, 2008 9:28 pm
by pavila
JBoss listen at port 8080 by default, if you want to access OpenKM from port 80 you can configure JBoss to listen at this port or configure an Apache with mod_proxy to redirect request to JBoss. Perhaps you need professional support for this configuration if you are not familiar with Ubuntu administration.
Re:Remote connection to server
PostPosted:Wed Dec 10, 2008 7:33 am
by alloydog
OK, thanks - now I know what to look for, I can ask around.
Just to clarify things:
By default, when installed on a PC, OpenKM is only accessible on that PC?
For it to be accessible by others, say across a network, you need to start rewriting stripts and configuring other applications, such as Apache?
Re:Remote connection to server
PostPosted:Wed Dec 10, 2008 10:23 am
by pavila
JBoss by default only listen at localhost, so if you want JBoss to be accessed from another computer you have to start it with the -b 0.0.0.0 parameter. And OpenKM is a web application that runs in JBoss.