Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want httpd(apache http server) and tomcat to start when my box starts up, I installed httpd using yum and tomcat I did manual installation and I created tomcat file and added it to chkconfig
this shows both tomcat and httpd .When I reboot machine both tomcat and httpd does not start , please help me. I want both of these to start automatically when I machine start up.Please advice.
Let's try to get a bit more information to find the core cause of the issue...
Can you get us the sections of the logs for both apache and tomcat where it attempts to start and then fails out? You can check a couple locations:
/var/log/messages
/var/log/apache2/error_log
[/var/log/tomcat#/,/opt/tomcat#/logs/]catalina.out (Could be either directory, depending on your install. The '#' is the version number of your tomcat, which will be part of the path.)
[Tue May 15 22:18:07 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:18:37 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:19:07 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:19:37 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:20:07 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:20:37 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:21:07 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:21:37 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:22:07 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:22:37 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:23:07 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:23:37 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:24:07 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:24:37 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:25:07 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:25:37 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:26:07 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:26:37 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:27:07 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:27:37 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:28:07 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:28:37 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:29:07 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:29:37 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:30:07 2012] [error] [client 10.70.91.131] File does not exist: /var/www/html/artms
[Tue May 15 22:30:12 2012] [notice] caught SIGTERM, shutting down
[Tue May 15 22:37:54 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue May 15 22:37:54 2012] [notice] Digest: generating secret for digest authentication ...
[Tue May 15 22:37:54 2012] [notice] Digest: done
[Tue May 15 22:37:54 2012] [notice] Apache/2.2.22 (Unix) DAV/2 configured -- resuming normal operations
[Tue May 15 22:37:56 2012] [error] [client 74.116.63.13] Directory index forbidden by Options directive: /var/www/html/
[Tue May 15 22:37:56 2012] [error] [client 74.116.63.13] File does not exist: /var/www/html/favicon.ico
[Tue May 15 22:40:20 2012] [notice] caught SIGTERM, shutting down
Unable to open logs
Unable to open logs
Quote:
Originally Posted by ShadowCat8
Well,
Let's try to get a bit more information to find the core cause of the issue...
Can you get us the sections of the logs for both apache and tomcat where it attempts to start and then fails out? You can check a couple locations:
/var/log/messages
/var/log/apache2/error_log
[/var/log/tomcat#/,/opt/tomcat#/logs/]catalina.out (Could be either directory, depending on your install. The '#' is the version number of your tomcat, which will be part of the path.)
Well, from the following snippet of the original post:
Code:
tomcat 0:off 1:off 2:off 3:on 4:on 5:on 6:off
That says that Tomcat *should* be running on the standard boot of the machine and showing the "Install Success" page on http://domU-12-31-39-0E-AA-22:8080/ (by default configuration.)
So, when you try to browse to that page inside your network, or from the system itself, do you get anything? BTW, if you have no GUI on the server, or are only ssh'd into it, you can use 'lynx' to check it from the console on the server itself. You can try the above URL and/or try http://127.0.0.1:8080/ and see if anything comes up.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.