• OpenKM Configure with Apache on UBUNTU 11.10

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #14204  by okmuser
 
Hi Kumar,

Can you post the following files (again);

1. openkm.conf
2. hosts file (in your server and client)
3. apache2.conf
4. snapshot of files under /etc/apache2/sites-enabled/

and again can you confirm the following;
1. you are starting openkm with
Code: Select all
run.sh -b 0.0.0.0
2. you can access OpenKM on server via --> http://localhost:8080/OpenKM/
3. you can access OpenKM on a client via --> http://ip of your server:8080/OpenKM/
3. you can access apache default site on server via --> http://localhost/
4. you can access apache default site on a client via --> http://ip of your server/
 #14205  by Kumar
 
Thanks for your effort keeping in my task.

Here I am attaching host,openkm.conf and apache2.conf files. Please look into these.

Just for confirmation

1. I am starting JBoss Server with run.sh -b 0.0.0.0 command
2. I am able to access my OpenKM from this http://localhost:8080/OpenKM/
3. I am able to access apache default site on server via --> http://localhost/
4. I am able to access apache default site on a client via --> http://ip of my server/

The following information was in /etc/apache2/sites-enabled/openkm.conf file
Code: Select all
<VirtualHost *:80>
    ServerName openkm.your-domain.com
    RedirectMatch ^/$ /OpenKM
    <Location /OpenKM>
        ProxyPass ajp://127.0.0.1:8009/OpenKM
        ProxyPassReverse http://openkm.your-domain.com/OpenKM
    </Location>
    ErrorLog /var/log/apache2/your-domain.com-error.log
    CustomLog /var/log/apache2/your-domain.com-access.log combined
</VirtualHost>
and this was 000-default file in /etc/apache2/sites-enabled/
Code: Select all
<VirtualHost *:80>
	ServerAdmin webmaster@localhost

	DocumentRoot /var/www
	<Directory />
		Options FollowSymLinks
		AllowOverride None
	</Directory>
	<Directory /var/www/>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride None
		Order allow,deny
		allow from all
	</Directory>

	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
	<Directory "/usr/lib/cgi-bin">
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Order allow,deny
		Allow from all
	</Directory>

	ErrorLog ${APACHE_LOG_DIR}/error.log

	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel warn

	CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>
Thanks,
Kumar
Attachments
(3.6 KiB) Downloaded 272 times
 #14208  by okmuser
 
change your host file as follows:
On server:
127.0.0.1 openkm.your-domain.com

On client
ip of the server openkm.your-domain.com

if the above is not working you can also check by changing <Virtualhost *:80> to <Virtualhost *>

cheers,
 #14209  by Kumar
 
Thanks its working fine from client system, Now iam able to access my OpenKM from clients system, http://openkm.your-domain.com/OpenKM/frontend/index.jsp

But on server system I am unable to browse http://openkm.your-domain.com/OpenKM/frontend/index.jsp.

How can I solve to access url http://openkm.your-domain.com/OpenKM/frontend/index.jsp in same server system.
 #14213  by okmuser
 
I will make it a little clear to make it absolutely sure;

lets assume:
1. your server ip 10.0.0.100
2. your client ip 10.0.0.2

Scenario 1: accessing the server from client using domain name:
if you configure the server to serve the website "test.myserver.com" you have to tell the client that when you type "test.myserver.com' in the address bar on your browser it should go to 10.0.0.100, this is done by the host file reside on the client, not on the server.

Scenario 2: accessing the server from server using domain name:
In this case you have to tell the server (or the browser in your server) to go to localhost or 127.0.0.1 when you type "test.myserver.com" in the server browser, in this case this is done by the hosts file in the server.

So iw ould suggest you to check again the /etc/hosts file on the server.

localhost openkm.your-domain.com
or
127.0.0.1 openkm.your-domain.com

check the spelling too, a common mistake which happens.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.