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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
07-10-2003, 07:24 PM
|
#1
|
Member
Registered: Feb 2002
Posts: 586
Rep:
|
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.
|
|
|
07-10-2003, 09:25 PM
|
#2
|
Member
Registered: Nov 2002
Distribution: Slackware 9.0
Posts: 321
Rep:
|
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
|
|
|
07-10-2003, 09:38 PM
|
#3
|
Member
Registered: Feb 2002
Posts: 586
Original Poster
Rep:
|
Red Hat 8.0
|
|
|
07-10-2003, 10:04 PM
|
#4
|
LQ Newbie
Registered: Jul 2003
Posts: 6
Rep:
|
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
|
|
|
07-10-2003, 10:15 PM
|
#5
|
Member
Registered: Nov 2002
Distribution: Slackware 9.0
Posts: 321
Rep:
|
You need to change the DocumentRoot to where index.html is.
|
|
|
07-10-2003, 10:16 PM
|
#6
|
Member
Registered: Nov 2002
Distribution: Slackware 9.0
Posts: 321
Rep:
|
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.
|
|
|
07-10-2003, 10:48 PM
|
#7
|
LQ Newbie
Registered: Jul 2003
Posts: 6
Rep:
|
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?
|
|
|
07-10-2003, 10:52 PM
|
#8
|
Member
Registered: Jun 2003
Distribution: Slackware 9.1, Solaris 9, and IPcop
Posts: 101
Rep:
|
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.
|
|
|
07-11-2003, 10:53 AM
|
#9
|
Member
Registered: Nov 2002
Distribution: Slackware 9.0
Posts: 321
Rep:
|
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
|
|
|
07-11-2003, 10:41 PM
|
#10
|
LQ Newbie
Registered: Jul 2003
Posts: 6
Rep:
|
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" ......
|
|
|
07-12-2003, 01:21 AM
|
#11
|
LQ Newbie
Registered: Jul 2003
Posts: 6
Rep:
|
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 
|
|
|
07-12-2003, 10:48 AM
|
#12
|
Member
Registered: Nov 2002
Distribution: Slackware 9.0
Posts: 321
Rep:
|
Awesome.
|
|
|
All times are GMT -5. The time now is 02:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|