We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Apache will not start Linux RedHat ES 3.0

baxleyb
baxleyb asked
on
Medium Priority
1,347 Views
Last Modified: 2013-12-06
Hello,

Apache will not start. Here is what I have done:

1. There were 2 network interfaces (eth0 and eth0:1) I reduced this down to just one eth0
2. I ran a apachectl configtest and the syntax is ok
3. The apache error log contains the following and this is when the errors began to surface:

[Mon Mar 27 12:01:08 2006] [warn] child process 2300 still did not exit, sending a SIGTERM
[Mon Mar 27 12:01:08 2006] [notice] caught SIGTERM, shutting down
[Mon Mar 27 13:01:48 2006] [alert] (EAI 3)Temporary failure in name resolution: mod_unique_id: unable to find IPv4 address of "RedDot"
Configuration Failed!
[Mon Mar 27 13:14:24 2006] [notice] Digest: generating secret for digest authentication ...
[Mon Mar 27 13:14:24 2006] [notice] Digest: done
PHP Warning:  Unknown(): Unable to load dynamic library './imap.so' - ./imap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './ldap.so' - ./ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './odbc.so' - ./odbc.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library './pgsql.so' - ./pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Mon Mar 27 13:14:25 2006] [notice] Apache/2.0.46 (Red Hat) configured -- resuming normal operations
[Mon Mar 27 13:14:39 2006] [error] [client 10.70.19.100] File does not exist: /var/www/html/infor
[Mon Mar 27 13:15:29 2006] [error] [client 10.70.19.100] Directory index forbidden by rule: /var/www/html/
[Mon Mar 27 13:24:16 2006] [warn] child process 2569 still did not exit, sending a SIGTERM
[Mon Mar 27 13:24:17 2006] [notice] caught SIGTERM, shutting down
[Mon Mar 27 14:02:05 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Mar 27 14:02:26 2006] [alert] (EAI 3)Temporary failure in name resolution: mod_unique_id: unable to find IPv4 address of "us-cos-rdw1"
Configuration Failed!
[Tue Mar 28 05:31:12 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

Any assistance with this is greatly appreciated!

BB
Comment
Watch Question

Is this a new instillation or an upgrade from an earlier version of apache. Anyways here are a couple of easy tests you can try before you start messing with your config files.

as root
/etc/init.d/apache2 start

the apache deamon might be called httpd in which case you would run
/etc/init.d/httpd start

apache 2 deamon is usually callled apache2 though.

if these don't work.. what is the error message that gets printed to the screen(not the log)?

also .. is the deamon running and nothing can connect to it or everytime your try to start it it fails?

Author

Commented:
Well I commented out a couple of SSL references and now it seems like the service is running.

The problem now is that the pages are not being served out of port 80. Do you know how to test that?

Thanks,

BB

Author

Commented:
Well I got everything working, figured out there was an issue with the etc/hosts file.

I would like to start 2 services automatically once the server is rebooted.

Do you know how and where I can make this happen?
in the httpd.conf

set
StartServers 5

or 8 or what ever you want.. however the defualt is 5 so I would be suprised if you are only starting 1.. my guess is you are already starting 5


Listen 80
is the line you are looking for to check the port but unless someone messed with the sys the defualt is 80 and thats what it should be
to check sun the command

grep "Listen" /$pathto$/httpd.conf
grep "StartServers" /$pathto$/httpd.conf

Author

Commented:
andy_thedestoyer,

these commands were helpful but my question is relalted to starting 2 services OUTSIDE of apach on boot. Apache alreay starts on boot but I need to start tomcat and another service as well.

Thanks in advance.

BB
Oh.. sorry I misunderstood

you will need to create a symbolic link in
/etc/rc3.d
to the service you want started

The name of the link is important
It starts with S which tells the system that you want the service started.

Followed by this are two letters that indicate the order of the processes.
look for the highest number in the directory and add one.

then the rest of the name i.e. jsvc for tomcat

the line should look something like this when done

lrwxrwxrwx  1 root  root     18 Jan 14 11:59 S81jsvc -> /etc/init.d/jsvc
This is an example for tomcat assuming that it resideds in /etc/init.d

Here is a good like with some more info.
http://www.linux.com/howtos/HighQuality-Apps-HOWTO/boot.shtml

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.