Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-02-2005, 02:59 PM   #1
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!
Old 10-02-2005, 03:05 PM   #2
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:

<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit      256
MaxClients       256
MaxRequestsPerChild  4000
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, 03:05 PM   #3
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
you need to learn vi really... there's a lot of good cheatsheets for it around. personally i like Gentoo's one:
Old 10-02-2005, 03:39 PM   #4
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:

# 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
#    DocumentRoot /www/docs/
#    ServerName
#    ErrorLog logs/
#    CustomLog logs/ common

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, 06:33 PM   #5
LQ Newbie
Registered: Oct 2005
Posts: 3

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


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 12:52 AM
Setting a users max. no. of file descriptors for remote graphical login azrael808 Linux - Software 0 03-25-2005 01:56 PM
Fix for max users in a group urbman Linux - Software 2 10-03-2003 03:38 PM
changing users name bmike1 Linux - Software 6 08-30-2003 03:17 PM
Changing a users shell bij368 Linux - General 2 07-02-2001 09:40 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:31 AM.

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