• 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.
 #13982  by Kumar
 
Hi,
I want to use OpenKM with port 80 on my Ubuntu system, so I configured openkm with apache as same as in article http://wiki.openkm.com/index.php/Apache and browse the url using http://openkm.mydms.com/OpenKM. But I not got any correct output.

and this was my openkm.conf file in site-available folder:
Code: Select all
<VirtualHost *:80>
    ServerName openkm.mydms.com
    RedirectMatch ^/$ /OpenKM
    <Location /OpenKM>
        ProxyPass ajp://127.0.0.1:8009/OpenKM
        ProxyPassReverse http://openkm.mydms.com/OpenKM
    </Location>
    ErrorLog /var/log/apache2/mydms.com-error.log
    CustomLog /var/log/apache2/mydms.com-access.log combined
</VirtualHost>

and added two lines in apache2.conf as
Code: Select all
ServerRoot "/etc/apache2"
ServerName "mydms.com".
I am confusing that either we have to maintain openkm folder structure in Apache ?
Also shall run jboss server to communicate the hsqldb at a time when apache run parallel ?
 #13996  by Kumar
 
And also changed ProxyPass ajp://127.0.0.1:8009/OpenKM to ProxyPass ajp://MyServerIP:8009/OpenKM in Sites admin folder openkm.cfg and started the jboss and tested in browser with http://openkm.mydms.com/OpenKM, but useless. Is this was the correct process? If not please tell the tradition process to communicate OpenKM with port 80.
 #14011  by jllort
 
The second - ProxyPass ajp://127.0.0.1:8009/OpenKM to ProxyPass - is not necessary , you can change it to initials.

But did you executed a2enmod proxy_ajp and have you changed /etc/apache2/mods-available/proxy.conf ( adding Allow from all ) as is indicated in wiki ? sincerally there's nothing else.
 #14017  by Kumar
 
I did all the steps which are in this article http://wiki.openkm.com/index.php/Apache, as same as in my UBUNTU system, and started browsing with link http://openkm.your-domain.com/OpenKM but no luck.

Plz look the attached openkm.conf,appache2.conf,proxy.conf files.

If anything goes wrong, Please reply me as soon as possible.

Thanks,
Kumar
Attachments
(3.75 KiB) Downloaded 315 times
 #14022  by okmuser
 
Hi Kumar,

Are you accessing the server from outside or on local network, if it is on local network you have to modify hosts file to point ot the server ip address.
 #14024  by Kumar
 
Thanks for replying quickly,

I am accessing on local network and I have modified hosts file to point the server ip address.
Following was my hosts.conf file
Code: Select all
127.0.0.1	localhost
127.0.1.1	ubuntu
127.0.1.1	your-domain

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
After this also im unlucky to access openkm with port 80.
Please give any suggestions
 #14046  by okmuser
 
Kumar wrote:Thanks for replying quickly,

I am accessing on local network and I have modified hosts file to point the server ip address.
Following was my hosts.conf file
Code: Select all
127.0.0.1	localhost
127.0.1.1	ubuntu
127.0.1.1	your-domain

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
After this also im unlucky to access openkm with port 80.
Please give any suggestions
The above should work if you are accessing on the same computer where OpenKM (Apache2) is running.

If you are accessing from another computer on the same network the it should be as follows (this should be on the computer where you are accessing the server (i.e. the client host file):
Code: Select all
IP of server   your.domain 
 #14082  by okmuser
 
The Jboss server still needs to be started.

1. Start openkm with run.sh -b 0.0.0.0 (if it is not started as a service)
2. After Jboss started restart apache2 (/etc/init.d/apache2 restart - for debian so should be OK for Ubuntu)
3. Browse with http://your-domain.com

Cheers,
 #14151  by Kumar
 
I did the same scenario and im unluky to access with port 80.

Is there any problem with accessing port 80 on Ubuntu 11.10 O.S ?

Please help me out from this
 #14162  by okmuser
 
Are you able to access the default web page for Apache "It Works!", if you can see this page then the apache server is running fine and port :80 is accessible.

When accessing openkm thoruhg apache you don't need to give the port:80 on address bar.

Have you also enabled openkm site
Code: Select all
a2ensite openkm.your-domain.com
?
 #14164  by Kumar
 
ya Im able to access the default web page, its working fine and when accessing openkm i not given port 80 on address bar.

I enabled a2ensite openkm.conf this, but when Im trying this a2ensite openkm.your-domain.com command showing error Site openkm.your-domain.com does not exist!. How can I resolve this ?

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.