Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Apache will not start Linux RedHat ES 3.0

Posted on 2006-03-28
8
Medium Priority
?
1,241 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
0
Comment
Question by:baxleyb
  • 3
  • 3
6 Comments
 
LVL 1

Expert Comment

by:andy_thedestroyer
ID: 16317027
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?
0
 

Author Comment

by:baxleyb
ID: 16321996
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
0
 

Author Comment

by:baxleyb
ID: 16323561
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?
0
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
LVL 1

Expert Comment

by:andy_thedestroyer
ID: 16324696
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
0
 

Author Comment

by:baxleyb
ID: 16326153
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
0
 
LVL 1

Accepted Solution

by:
andy_thedestroyer earned 2000 total points
ID: 16326619
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
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month14 days, 17 hours left to enroll

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question