USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

Problem with APACHE2, Tomcat6 on SuSe11

 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Servers and Server Administration
View previous topic :: View next topic  
Author Message
ey390
New Member


Joined: 27 Dec 2024
Posts: 4

PostPosted: Sat Dec 27, 2024 8:59 pm    Post subject: Problem with APACHE2, Tomcat6 on SuSe11 Reply with quote

On SuSe 11, I installed everything, incl. Apache, Tomacat. The only thing I want to have is Apache and Tomcat as JSP container.

I logged on as root, went to YaST, System Services, apache2 to start it - it says:
/etc/init.d/apache2 start returned 7 (program is not running):
HOWEVER, if I try to start tomcat6 from System Services, it succeeds.

if try for prompt, like this:
# /etc/init.d/apache2 start
it says:
Module "ruby" is not installed, ignoring.
Check the APACHE_MODULES setting in /etc/sysconfig/apache2.
Starting httpd2 (prefork) startproc: exit status of parent of /usr/sbin/httpd2-prefork: 1
failed

On the control panel, when right click and select Start HTTP Server, starts a little 'wizzard' thatt fails with message "error: Cannot adjust apache2 service'

None of these messages have meaning to me. This problem started after I installed Tomcat6 as an apache module (apache2-mod_jk from YaST), and then attempted to start it, and it didn't work - that was 2 days ago, but apache was working fine (page 'IT WORKS' was on). Now, apache doesn't work, and module Tomcat seems to work, but it displays empty page (of course, what a module will do w/out the apache itself)

Can't be more frustrating that that. ANY HELP ?


Back to top
View user's profile Send private message
platinummonkey
Advanced Member


Joined: 01 Mar 2024
Posts: 732
Location: Texas

PostPosted: Sun Dec 28, 2024 2:14 am    Post subject: Reply with quote

post your configs (or put them in a pastebin) Wink will help us a lot



_________________
desktop - FreeBSD 7.2
laptop & server - Archlinux i686 kernel26 2.6.32.10-1
- TAMULinux-2.0.2-ALPHA
USB Boot - Archlinux i686 kernel26 2.6.32.10-1 USB boot
Back to top
View user's profile Send private message Visit poster's website AIM Address
crouse
Site Admin


Joined: 17 Apr 2024
Posts: 11833
Location: Iowa

PostPosted: Sun Dec 28, 2024 2:30 am    Post subject: Reply with quote

Check the APACHE_MODULES setting in /etc/sysconfig/apache2
Module "ruby" is not installed, ignoring. <<<<<< comment out the ruby line in the config file above.

Either do that or INSTALL ruby.....

That might take care of ONE problem anyway.........



_________________
Veronica - Arch Linux 64-bit -- Kernel 2.6.33.4-1
Archie/Jughead - Arch Linux 32-bit -- Kernel 2.6.33.4-1
Betty/Reggie - Arch Linux (VBox) 32-bit -- Kernel 2.6.33.4-1
BumbleBee - OpenSolaris-SunOS 5.11
Back to top
View user's profile Send private message Visit poster's website AIM Address
JP
Linux Guru


Joined: 07 Jul 2024
Posts: 6670
Location: Central Montana

PostPosted: Sun Dec 28, 2024 3:55 am    Post subject: Reply with quote

ey390 Welcome to USALUG ..... Glad to have you aboard Wink



_________________
Dell Box - Arch Linux
Dell Lappy - DreamLinux 3.5 - Default OS
Mepis 8.0 - Backup
Back to top
View user's profile Send private message Visit poster's website
ey390
New Member


Joined: 27 Dec 2024
Posts: 4

PostPosted: Sun Dec 28, 2024 4:16 am    Post subject: Reply with quote

Thanks for the replies and welcoming me here!

Platinummonkey: what config file do you mean by "post your configs (or put them in a pastebin)" ? I guess some apache config file ...

I rarely, if at all. I have worked/configured apache; but I always had problems with it: in the old days of Slackware, then RedHat, then SuSe ... they all install it in different places, and I am tired of this lack of stadndards.

I will try the other advices tomorrow, and post the config file when I figure out what it is.


Back to top
View user's profile Send private message
platinummonkey
Advanced Member


Joined: 01 Mar 2024
Posts: 732
Location: Texas

PostPosted: Sun Dec 28, 2024 5:31 am    Post subject: Reply with quote

for opensuse/suse its usually in:
/etc/apache2/httpd.conf
and
/etc/sysconfig/apache2

depending on how you have it setup, apache can be configured to follow either one Wink but on most distro's it is usually located at /etc/apache2/httpd.conf

pastebin: http://pastebin.com/ (makes things easier to read an reference lines/edit Razz) plus it doesn't clutter the forum Razz



_________________
desktop - FreeBSD 7.2
laptop & server - Archlinux i686 kernel26 2.6.32.10-1
- TAMULinux-2.0.2-ALPHA
USB Boot - Archlinux i686 kernel26 2.6.32.10-1 USB boot
Back to top
View user's profile Send private message Visit poster's website AIM Address
ey390
New Member


Joined: 27 Dec 2024
Posts: 4

PostPosted: Sun Dec 28, 2024 2:29 pm    Post subject: Reply with quote

Thanks for the explanation:

now, without my intervention, on attempt to start apache, it does not complain about 'ruby' (I did nothing since last night),
But: the error log said: "No such file or directory: mod_jk: could not open JkLog file /srv/www/logs/mod_jk.log"

1. I created directory (as root of course) : No such file or directory: mod_jk: /srv/www/logs

2. and now the errror log sais: "[emerg] Error in reading worker properties
. Configuration Failed" - and at the end "Cannot adjust 'apache2 service "

3. Files "/etc/apache2/httpd.conf" and "/etc/sysconfig/apache2" are pasted on http://pastebin.com/m4ea6d59d

there must be a way to start apache2 with tomcat module ! any help is appreciated !


Back to top
View user's profile Send private message
platinummonkey
Advanced Member


Joined: 01 Mar 2024
Posts: 732
Location: Texas

PostPosted: Sun Dec 28, 2024 5:30 pm    Post subject: Reply with quote

the config looks fine Razz

did you make /srv and its subdirectories readable and executable by apache's user (nowadays it's usually "httpd" (the older versions used "nobody"))? and log directories must be writable by apache's user.
Code:
chown <apache's user> -R /srv
chmod 755 -R /srv #for everything (rwxr-xr-x)
chmod 774 -R /srv/www/logs #for the log directory (rwxrwxr--) or 700 if your paranoid :P (rwx------)

but make sure if you have any other important certificates and whatnot in /srv, be sure to use a little more secure chmod Razz chmod numbers


also that file not found on mod_jk.so bugs me Razz
Code:
cd /usr/lib/httpd/modules/
ls # make sure its there :P
# if so, lets be sure it has the right permissions:
chmod a+x mod_jk.so


also, i took a look at http://en.opensuse.org/Tomcat_HOWTO
and it describes that the mod_jk.so module is borked and you should install the source one. I would recommend taking a look at that guide and seeing if you can get it to work Smile It's pretty lengthy; but, good luck! Very Happy



_________________
desktop - FreeBSD 7.2
laptop & server - Archlinux i686 kernel26 2.6.32.10-1
- TAMULinux-2.0.2-ALPHA
USB Boot - Archlinux i686 kernel26 2.6.32.10-1 USB boot
Back to top
View user's profile Send private message Visit poster's website AIM Address
ey390
New Member


Joined: 27 Dec 2024
Posts: 4

PostPosted: Mon Dec 29, 2024 12:12 am    Post subject: Reply with quote

Thanks for the help - I will try the suggested ideas; then will read HOWTOs and will see again.


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Servers and Server Administration All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse