Page 1 of 2

OpenKM Configure with Apache on UBUNTU 11.10

PostPosted:Tue Feb 14, 2012 8:10 am
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 ?

Re: OpenKM Configure with Apache on UBUNTU 11.10

PostPosted:Wed Feb 15, 2012 1:12 pm
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.

Re: OpenKM Configure with Apache on UBUNTU 11.10

PostPosted:Thu Feb 16, 2012 8:56 am
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.

Re: OpenKM Configure with Apache on UBUNTU 11.10

PostPosted:Thu Feb 16, 2012 2:24 pm
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

Re: OpenKM Configure with Apache on UBUNTU 11.10

PostPosted:Fri Feb 17, 2012 4:06 am
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.

Re: OpenKM Configure with Apache on UBUNTU 11.10

PostPosted:Fri Feb 17, 2012 6:18 am
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

Re: OpenKM Configure with Apache on UBUNTU 11.10

PostPosted:Fri Feb 17, 2012 10:38 pm
by pavila
Configuration files seems to be ok. Which is the error? Please attach an screenshot if possible.

Re: OpenKM Configure with Apache on UBUNTU 11.10

PostPosted:Sat Feb 18, 2012 1:07 am
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 

Re: OpenKM Configure with Apache on UBUNTU 11.10

PostPosted:Mon Feb 20, 2012 2:49 pm
by Kumar
your-domain.com-error.log file created but not generated any errors.

Also Im using local system for accessing http://openkm.your-domain.com but I was unlucky for this.

Please help out from this.

Re: OpenKM Configure with Apache on UBUNTU 11.10

PostPosted:Mon Feb 20, 2012 2:50 pm
by Kumar
Just to clarify things:

After configuring OpenKM with apache2 can I open http://openkm.your-domain.com link directly or can I start Jboss server and browse with http://openkm.your-domain.com this ?

Re: OpenKM Configure with Apache on UBUNTU 11.10

PostPosted:Wed Feb 22, 2012 8:05 am
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,

Re: OpenKM Configure with Apache on UBUNTU 11.10

PostPosted:Sun Feb 26, 2012 11:17 am
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

Re: OpenKM Configure with Apache on UBUNTU 11.10

PostPosted:Sun Feb 26, 2012 10:30 pm
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
?

Re: OpenKM Configure with Apache on UBUNTU 11.10

PostPosted:Mon Feb 27, 2012 5:00 am
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 ?

Re: OpenKM Configure with Apache on UBUNTU 11.10

PostPosted:Mon Feb 27, 2012 6:06 am
by okmuser
My mistake,

as per your attached conf files it should be
Code: Select all
a2ensite openkm.conf
cheers,