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
-
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.
-
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
-
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?
-
Any other ideas?
What is the output of the following command?
httpd -t
-
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
-
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:
grep -rl 'mod_webapp.so' /etc/e-smith/templates*/etc/httpd/conf/httpd.conf/*
-
What is the output of the following command?
httpd -t
Excellent Cactus :pint:
-
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:
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
-
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:
expand-template /etc/httpd/conf/httpd.conf
service httpd-e-smith restart
-
So? Remove (or backup) this file from this directory and run these commands:
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
-
Do the same with 98TomcatForward and execute the previous commands.
-
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
-
Please please!! Pay attention!
What command not found? Press enter two times to clean the screen
-
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
-
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
-
Remove ALL FILES you have with problems, like 9900x and new ones. Then run the expand commands.
-
Yes!! Its working. Thank you thank you!!!
-
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?