Koozali.org: home of the SME Server

http connection not working

Offline EastEnder01

  • *
  • 20
  • +0/-0
http connection not working
« on: July 03, 2008, 03:32:23 PM »
Running SME Server 7.1, I recently installed Tomcat as per the contrib
http://wiki.contribs.org/Tomcat

After installing Tomcat I no longer have http access to anything on the server
and cannot connect to server manager (either using a browser or by logging in
as admin at the root prompt.  FTP still works, Mail still works, but I cannot
connect to anything using a browser, including any of my ibay sites, PHPBB
forums, MySQL - nothing.

I upgraded to SMEserver 7.3, hoping that might help restore whatever is gone
wrong, but no luck.

Any ideas would be helpful.

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: http connection not working
« Reply #1 on: July 03, 2008, 03:41:11 PM »
Can you give the output of:

config show tomcat

Have you https custom-templates? If so, then move to root directory to backup them, expand and restart:

expand-template /etc/httpd/conf/httpd.conf
service httpd-e-smith restart

Check again


Offline EastEnder01

  • *
  • 20
  • +0/-0
Re: http connection not working
« Reply #2 on: July 03, 2008, 03:51:50 PM »
output of config show tomcat:

tomcat=service
     TCPPort=8080
     access=public
     status=enabled

Tried your suggestion about https custom-templates - didn't seem to work

Any other ideas?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: http connection not working
« Reply #3 on: July 03, 2008, 04:48:01 PM »
Any other ideas?
What is the output of the following command?
Code: [Select]
httpd -t
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline EastEnder01

  • *
  • 20
  • +0/-0
Re: http connection not working
« Reply #4 on: July 03, 2008, 04:54:47 PM »
httpd -t:

Syntax error on line 115 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/mod_webapp.so into server:
/etc/httpd/modules/mod_webapp.so: cannot open shared object file: No such
file or directory

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: http connection not working
« Reply #5 on: July 03, 2008, 10:04:51 PM »
httpd -t:

Syntax error on line 115 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/mod_webapp.so into server:
/etc/httpd/modules/mod_webapp.so: cannot open shared object file: No such
file or directory

Well there you have the root cause of your issue. Some template is loading the mod_webapp.so library which is not available (in the configured location). Did you configure this yourself or is this from some RPM?

To find out which template fragment is causing this issue, execute the following command:
Code: [Select]
grep -rl 'mod_webapp.so' /etc/e-smith/templates*/etc/httpd/conf/httpd.conf/*
« Last Edit: July 03, 2008, 10:08:25 PM by cactus »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: http connection not working
« Reply #6 on: July 03, 2008, 11:27:30 PM »
What is the output of the following command?
Code: [Select]
httpd -t
Excellent Cactus  :pint:

Offline EastEnder01

  • *
  • 20
  • +0/-0
Re: http connection not working
« Reply #7 on: July 07, 2008, 03:23:46 PM »
Well there you have the root cause of your issue. Some template is loading the mod_webapp.so library which is not available (in the configured location). Did you configure this yourself or is this from some RPM?

To find out which template fragment is causing this issue, execute the following command:
Code: [Select]
grep -rl 'mod_webapp.so' /etc/e-smith/templates*/etc/httpd/conf/httpd.conf/*

Output:
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/20LoadModule81mod_webapp

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: http connection not working
« Reply #8 on: July 07, 2008, 04:02:45 PM »
Output:
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/20LoadModule81mod_webapp

So? Remove (or backup) this file from this directory and run these commands:

Code: [Select]
expand-template /etc/httpd/conf/httpd.conf
service httpd-e-smith restart

Offline EastEnder01

  • *
  • 20
  • +0/-0
Re: http connection not working
« Reply #9 on: July 07, 2008, 04:28:09 PM »
So? Remove (or backup) this file from this directory and run these commands:

Code: [Select]
expand-template /etc/httpd/conf/httpd.conf
service httpd-e-smith restart

Did all that - still not working.  Still getting this:

[root@cmenl ~]# httpd -t
Syntax error on line 1283 of /etc/httpd/conf/httpd.conf:
Invalid command 'WebAppConnection', perhaps mis-spelled or defined by a module not included in the server configuration
[root@cmenl ~]# grep -rl 'WebAppConnection' /etc/e-smith/templates*/etc/httpd/conf/httpd.conf/*
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/98TomcatForward


Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: http connection not working
« Reply #10 on: July 07, 2008, 04:38:56 PM »
Do the same with 98TomcatForward and execute the previous commands.

Offline EastEnder01

  • *
  • 20
  • +0/-0
Re: http connection not working
« Reply #11 on: July 07, 2008, 04:52:22 PM »
Do the same with 98TomcatForward and execute the previous commands.

Now I get this:

[root@cmenl ~]# httpd -t
Syntax error on line 1316 of /etc/httpd/conf/httpd.conf:
Invalid command 'WebAppDeploy', perhaps mis-spelled or defined by a module not i                                                                                                 ncluded in the server configuration
[root@cmenl ~]# [root@cmenl ~]# grep -rl 'WebAppDeploy' /etc/e-smith/templates*/                                                                                                 etc/httpd/conf/httpd.conf/*
-bash: [root@cmenl: command not found

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: http connection not working
« Reply #12 on: July 07, 2008, 05:00:38 PM »
Please please!! Pay attention!
What command not found? Press enter two times to clean the screen

Offline EastEnder01

  • *
  • 20
  • +0/-0
Re: http connection not working
« Reply #13 on: July 07, 2008, 05:10:55 PM »
Sorry - I am new at this and not real well versed in linux root commands.  I thank you for your patience!!

httpd -t gives me:

Syntax error on line 1316 of /etc/httpd/conf/httpd.conf:
Invalid command 'WebAppDeploy', perhaps mis-spelled or defined by a module not included in the server configuration


grep -rl 'WebAppDeploy' /etc/e-smith/templates*/etc/httpd/conf/httpd.conf/* gives me a ">" prompt







Offline EastEnder01

  • *
  • 20
  • +0/-0
Re: http connection not working
« Reply #14 on: July 07, 2008, 05:13:31 PM »
now   grep -rl 'WebAppDeploy' /etc/e-smith/templates*/etc/httpd/conf/httpd.conf/*

is giving me:

/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/99001TomcatWebAppexamples
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/99002TomcatWebAppROOT
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/99003TomcatWebApptomcat-                                                                                                 docs
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/99004TomcatWebAppwebdav