Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: EastEnder01 on July 03, 2008, 03:32:23 PM

Title: http connection not working
Post by: EastEnder01 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.
Title: Re: http connection not working
Post by: Normando 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

Title: Re: http connection not working
Post by: EastEnder01 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?
Title: Re: http connection not working
Post by: cactus on July 03, 2008, 04:48:01 PM
Any other ideas?
What is the output of the following command?
Code: [Select]
httpd -t
Title: Re: http connection not working
Post by: EastEnder01 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
Title: Re: http connection not working
Post by: cactus 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/*
Title: Re: http connection not working
Post by: Normando on July 03, 2008, 11:27:30 PM
What is the output of the following command?
Code: [Select]
httpd -t
Excellent Cactus  :pint:
Title: Re: http connection not working
Post by: EastEnder01 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
Title: Re: http connection not working
Post by: Normando 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
Title: Re: http connection not working
Post by: EastEnder01 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

Title: Re: http connection not working
Post by: Normando on July 07, 2008, 04:38:56 PM
Do the same with 98TomcatForward and execute the previous commands.
Title: Re: http connection not working
Post by: EastEnder01 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
Title: Re: http connection not working
Post by: Normando on July 07, 2008, 05:00:38 PM
Please please!! Pay attention!
What command not found? Press enter two times to clean the screen
Title: Re: http connection not working
Post by: EastEnder01 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






Title: Re: http connection not working
Post by: EastEnder01 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
Title: Re: http connection not working
Post by: Normando on July 07, 2008, 05:19:52 PM
Remove ALL FILES you have with problems, like 9900x and new ones. Then run the expand commands.
Title: Re: http connection not working
Post by: EastEnder01 on July 07, 2008, 05:29:27 PM
Yes!!  Its working.   Thank you thank you!!!
Title: Re: http connection not working
Post by: william_syd on July 08, 2008, 01:12:37 PM
Running SME Server 7.1, I recently installed Tomcat as per the contrib
http://wiki.contribs.org/Tomcat


Did you do more that what was in the wiki?