LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-02-2005, 03:59 PM   #1
aquatambourine
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Rep: Reputation: 0
changing max users


I've got a vds RH9, and they tell me that max users is set at 10, thus, server is locking up and needs to be restarted, because I'm getting decent traffic. They say I need to edit httpd.conf and change max user setting twice to 100 or 150.

Having trouble getting at this file. In putty, this is what I tried:

vi /etc/httpd/conf/httpd.conf


I am a big time linux newbie, and they told me that this change could be done in a minute. I know how to use ssh to access server. I know a little about using vi commands. Could someone please advise me. I've searched, but, searching on-line rarely answers questions for me.

Many thanks!
a.t.
 
Old 10-02-2005, 04:05 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
You'll probably find pico or nano an easier text editor to deal with than vi. Find the section of your httpd.conf that looks like:

Code:
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit      256
MaxClients       256
MaxRequestsPerChild  4000
</IfModule>
Your numbers will be different since your limits are set lower. Change your ServerLimit and MaxClients to whatever you want, save, and then do "service httpd restart" and you should be all set.
 
Old 10-02-2005, 04:05 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
you need to learn vi really... there's a lot of good cheatsheets for it around. personally i like Gentoo's one:

http://www.gentoo.org/images/vicheat-final.png
 
Old 10-02-2005, 04:39 PM   #4
aquatambourine
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
My host told me to use vi /etc/httpd/conf/httpd.conf and that would let me edit the max user setting. this is what i get when i enter that into putty:

Code:
#
# Use name-based virtual hosting.
#
#NameVirtualHost *

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

Include /etc/httpd/conf/httpd.include
AddType text/html .shtml
"/etc/httpd/conf/httpd.conf" 1048L, 35233C       cation/x-tar .tgz
-- INSERT --
see, my problem is i don't see where to change max user setting......
thanks, a.t.
 
Old 10-02-2005, 07:33 PM   #5
aquatambourine
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
i got it done correctly!
many thanks!
a.t.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
I need to set a max number of processes for users zahadumy Linux - Software 1 11-15-2005 01:52 AM
Setting a users max. no. of file descriptors for remote graphical login azrael808 Linux - Software 0 03-25-2005 02:56 PM
Fix for max users in a group urbman Linux - Software 2 10-03-2003 04:38 PM
changing users name bmike1 Linux - Software 6 08-30-2003 04:17 PM
Changing a users shell bij368 Linux - General 2 07-02-2001 10:40 AM


All times are GMT -5. The time now is 05:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration