running apache on unix


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers running apache on unix
# 1  
Old 04-26-2005
running apache on unix

Hi,
I am running an application on apache/tomcat under unix.
It was working fine until I stopped both tomcat and apache and restarted both.
Now I am getting 404 not found error.
Is there something here that I am missing.
Any help will be appreciatd.
Thx
Karthik
# 2  
Old 04-26-2005
Usually Tomcat and Apache runs independent on the same server. Starting/stopping either one should not have any effect on the other.

The 404 error is generated by Apache or Tomcat?

For Tomcat, you may need to trace from the server.xml to the deployment descriptor (web.xml) and something like that. Probably you may wish to dig out the relevant error log for more details. Or, just deploy your application again to ensure things are correct (some config may have been modified when Tomcat is running, which are not reflected until it is restarted)

For Apache, usually changes are reflected instantly, and it is easier to trace the problem as the path mapping mechanism of Apache is considerably simpler.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Red Hat

Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-la

Have no idea on what the below error message is: Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-launcher.jar org.apache.tools.ant.launch.Launcher -buildfile build.xml dist. Any help? (3 Replies)
Discussion started by: gull05
3 Replies

2. Red Hat

How do I invoke second copy of apache when running service httpd start?

Hi all I'm using the following for my os # cat /etc/redhat-release CentOS release 6.4 (Final) when I execute the following # ls -lrth /etc/init.d/httpd -rwxr-xr-x. 1 root root 3.3K Feb 22 19:20 /etc/init.d/httpd # /etc/init.d/httpd start Starting httpd: httpd: Syntax error... (1 Reply)
Discussion started by: jediwannabe
1 Replies

3. Shell Programming and Scripting

Script to restart apache when running out of memory

Hi, I have a problem with running out of memory in my Ubuntu web server (4GB RAM) because many people try to access my server. I used to restart manually my apache server to clear out the memory & swap. Can anyone tell me how to write bash script that can automatically restart apache when... (2 Replies)
Discussion started by: nica
2 Replies

4. Solaris

Which version of Apache is actually running

Hi Guys & Gals.... First of all thanks for the help with your previous postings a lot of questions answered without having to post one myself However, here is my first post. I've just done a fresh install of Solaris 10 and upgraded the version of Apache via the impatient version of... (2 Replies)
Discussion started by: fjt1973
2 Replies

5. Shell Programming and Scripting

How to keep process running after apache restart.

I have posted this on the Web subforum but it seems that nobody knows to do this, maybe someone has a solution here. Thank you I have a PHP application that starts a couple of processes on the server...the problem is that if I restart apache those running apps will die. How can I start them... (1 Reply)
Discussion started by: valiadi
1 Replies

6. Web Development

How to keep process running after apache restart.

Hi, I have a PHP application that starts a couple of processes on the server...the problem is that if I restart apache those running apps will die. How can I start them in a way that they are not killed when I restart/stop apache ? $cmdstr = "nohup ".$config."/".$config."... (6 Replies)
Discussion started by: valiadi
6 Replies

7. Shell Programming and Scripting

Running a shell script in apache

I have a shell script, that works when ran in the shell. When placed in the cgi-bin directory, it doesn't work as expected. Looking at the logs, it seems that some environmental variables are not being passed. My apache user is www. For simplicity, here is a sample script I want to run ... (2 Replies)
Discussion started by: streetfighter2
2 Replies

8. UNIX for Dummies Questions & Answers

How can you tell what version Apache your running?

I'm trying to figure out what version of Apache I have. Any suggestions??? Thanks in advance. (1 Reply)
Discussion started by: shorty
1 Replies
Login or Register to Ask a Question