Page 2 of 2
Re: OpenKM Configure with Apache on UBUNTU 11.10
PostPosted:Mon Feb 27, 2012 6:10 am
by Kumar
By this also im not able to access with port 80. Please help me out from here.
Re: OpenKM Configure with Apache on UBUNTU 11.10
PostPosted:Mon Feb 27, 2012 6:37 am
by okmuser
Can you access OpenKM without apache.
say
ip address of server:8080/OpenKM
assuming the OpenKM port is 8080.
Re: OpenKM Configure with Apache on UBUNTU 11.10
PostPosted:Mon Feb 27, 2012 6:47 am
by Kumar
ya without apache im able to access my openkm with localhost:8080/OpenKM. i.e using 8080 port but not with your-domain:8080/OpenKM
Re: OpenKM Configure with Apache on UBUNTU 11.10
PostPosted:Mon Feb 27, 2012 7:50 am
by okmuser
Re: OpenKM Configure with Apache on UBUNTU 11.10
PostPosted:Mon Feb 27, 2012 8:54 am
by Kumar
ya enabled. I followed all steps which are in this article
http://wiki.openkm.com/index.php/Apache
Re: OpenKM Configure with Apache on UBUNTU 11.10
PostPosted:Wed Feb 29, 2012 4:48 am
by Kumar
Is this article
http://wiki.openkm.com/index.php/Apache is compilable with UBUNTU 11.10 Operating System ?
Re: OpenKM Configure with Apache on UBUNTU 11.10
PostPosted:Wed Feb 29, 2012 5:02 am
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
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/
Re: OpenKM Configure with Apache on UBUNTU 11.10
PostPosted:Wed Feb 29, 2012 7:36 am
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
Re: OpenKM Configure with Apache on UBUNTU 11.10
PostPosted:Wed Feb 29, 2012 8:49 am
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,
Re: OpenKM Configure with Apache on UBUNTU 11.10
PostPosted:Wed Feb 29, 2012 9:34 am
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.
Re: OpenKM Configure with Apache on UBUNTU 11.10
PostPosted:Wed Feb 29, 2012 9:50 am
by okmuser
Have you changed your host file as per my post above on the server?
Re: OpenKM Configure with Apache on UBUNTU 11.10
PostPosted:Wed Feb 29, 2012 9:54 am
by Kumar
Ya after that only i am able to access
http://openkm.your-domain.com/OpenKM/frontend/index.jsp from client system.
Now when I try from server system Im unable to access that
Re: OpenKM Configure with Apache on UBUNTU 11.10
PostPosted:Wed Feb 29, 2012 10:13 am
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.
Re: OpenKM Configure with Apache on UBUNTU 11.10
PostPosted:Wed Feb 29, 2012 11:25 am
by Kumar
Thanks alot,
Finally I got thanks.
Re: OpenKM Configure with Apache on UBUNTU 11.10
PostPosted:Wed Feb 29, 2012 12:01 pm
by Kumar
The main problem is to add 127.0.0.1 openkm.your-domain.com in etc/host file of Server machine.
The users who are following the article
http://wiki.openkm.com/index.php/Apache they have to add 127.0.0.1 openkm.your-domain.com in etc/host file.