LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-10-2003, 07:24 PM   #1
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Rep: Reputation: 30
Apache 2.0 problems


Apache 2.0 takes up to 99% of CPU & 0.7 of Memory when Apache 1.3 on the same server used about 20% of CPU & 0.7% of Memory. At some point the load average reaches up to 8.0+ and apache freezes. The apache logs doesn't help much. Maybe it crashes before writing to the logs files.

Any ideas what should I do? And how can I catch what causes the problem?
Is the problem is related to Apache 2.0 release? Why Apache uses a lot of CPU and not much memory.

Thanks a lot.
 
Old 07-10-2003, 09:25 PM   #2
andrew001
Member
 
Registered: Nov 2002
Distribution: Slackware 9.0
Posts: 321

Rep: Reputation: 30
That is really strange. I reccomend compiling apache from source. Although its harder than using a binary, you'll get a well-configured version, and its easier to debug.

I know this doesn't really answer your problem, but apaches website says that 1.3.27 is the best version of their web server.

I just compiled a fresh 1.3.27, and my server has been up for 8 days running apache with php mysql, and ssl while maintaining a 0.00 load average.

What distro are you trying to run this on?

~Andrew
 
Old 07-10-2003, 09:38 PM   #3
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Original Poster
Rep: Reputation: 30
Red Hat 8.0
 
Old 07-10-2003, 10:04 PM   #4
esw
LQ Newbie
 
Registered: Jul 2003
Posts: 6

Rep: Reputation: 0
I have installed Redhat 9 and I have my email, network routing, ftp, and web servers running and working. I figured out that the web serverrs index.html file goes in /var/www/html but when I try to brows my domain in a browser I still get the blasted "Test Page", I've poked thru the httpd.conf file and tried the GUI HTTP Serrver application as well ... still get the blasted "Test Page" ....... anyone got a solution ...... does the index.html file need a specific permisssion set?

thx
 
Old 07-10-2003, 10:15 PM   #5
andrew001
Member
 
Registered: Nov 2002
Distribution: Slackware 9.0
Posts: 321

Rep: Reputation: 30
You need to change the DocumentRoot to where index.html is.
 
Old 07-10-2003, 10:16 PM   #6
andrew001
Member
 
Registered: Nov 2002
Distribution: Slackware 9.0
Posts: 321

Rep: Reputation: 30
mikeshn: I'm running an apache 1.3.27 on a redhat 8 without problems. Are you running the standard RedHat server or some 3rd party rpm? Or did you compile from source?

Check ps to see if httpd is running more than once.
 
Old 07-10-2003, 10:48 PM   #7
esw
LQ Newbie
 
Registered: Jul 2003
Posts: 6

Rep: Reputation: 0
The DocumentRoot line in my httpd.conf file is

DocumentRoot "/var/www/html"

do I need to restart httpd Daemon everry ttime I change the httpd.conf file?
 
Old 07-10-2003, 10:52 PM   #8
grizzly
Member
 
Registered: Jun 2003
Distribution: Slackware 9.1, Solaris 9, and IPcop
Posts: 101

Rep: Reputation: 15
I am running redhat, I think it is 7.3, with apache 1.3.27, with the mod_ssl, perl, php, etc, I have no problems with it. I did install from source.
 
Old 07-11-2003, 10:53 AM   #9
andrew001
Member
 
Registered: Nov 2002
Distribution: Slackware 9.0
Posts: 321

Rep: Reputation: 30
esw: Yes, you need to restart the daemon, and there is another place in httpd.conf that it is a good idea to change to match your DocumentRoot. Just search for the string "DocumentRoot" in vi or whatever you like to find it and change it.

~Andrew
 
Old 07-11-2003, 10:41 PM   #10
esw
LQ Newbie
 
Registered: Jul 2003
Posts: 6

Rep: Reputation: 0
Thanks ... Ill take a look through the config again ..... I discoverred tonight that if I type www.mydomain.net/index.html that my web page loads but if I type just www.mydomain.net in a browser then I just get the default "Test Page" ......
 
Old 07-12-2003, 01:21 AM   #11
esw
LQ Newbie
 
Registered: Jul 2003
Posts: 6

Rep: Reputation: 0
AH HA!

I changed the default: DocumentRoot "/var/www/html"
and changed it to: DocumentRoot /var/www/html/

then the changed the defalt line: DirectoryIndex
to: DirectoryIndex index.html

now its working fine
 
Old 07-12-2003, 10:48 AM   #12
andrew001
Member
 
Registered: Nov 2002
Distribution: Slackware 9.0
Posts: 321

Rep: Reputation: 30
Awesome.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache problems root3d Linux - Software 5 03-08-2004 04:26 PM
Apache problems BrettPower Linux - Networking 3 03-06-2004 10:52 PM
Apache problems rooster13 Linux - Networking 6 07-16-2003 11:41 PM
Apache virtualhost problems, apache install problems nyroc Linux - Software 2 06-09-2003 11:16 PM
Apache problems RecoilUK Linux - Networking 6 07-13-2001 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration