hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Limiting the % of usage by a CGI
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Limiting the % of usage by a CGI

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-04-2001, 02:05 PM
jic jic is offline
Web Hosting Evangelist
 
Join Date: Jan 2001
Posts: 495
Is it possible to limit the % of system usage a CGI uses. I know some people have memory / processor hogging CGI's that lag up a system. Please let me know anyway you guys have gotten around this problem.

We are running Apache / Slackware Linux

Thanks,

James R. Clark II
Nethosters Inc.

Reply With Quote


Sponsored Links
  #2  
Old 03-05-2001, 05:00 AM
Tim Greer Tim Greer is offline
<insert something witty>
 
Join Date: Apr 2000
Location: California
Posts: 3,051
Quote:
Originally posted by jic
Is it possible to limit the % of system usage a CGI uses. I know some people have memory / processor hogging CGI's that lag up a system. Please let me know anyway you guys have gotten around this problem.

We are running Apache / Slackware Linux

Thanks,

James R. Clark II
Nethosters Inc.
Yes, have the user's CGI scripts run as their own user and group by using Apache with the SuEXEC feature. This is safer and allows you to have more control over the user's processes. The user's can set the permissions on their executable scripts and files that are created, written to or the like to 700, rathe than 755. Since only their user can read, write and execute the file in question, no one else, even in their same group can execute it.

SuEXEC does security checks as well, which might make some people's scripts error (but only if they have them set up improperly with ownership or permission problems), which should fail anyway, at that point. There's other advantages as well, too many to list at this time of night.

Anyway, go to http://httpd.apache.org/docs/mod/directives.html
and search for the words: RLimitMEM, RLimitCPU and RLimitNPROC. That will explain it pretty well if you're at all familiar with Apache Directives. Be sure to put them in each VirtualHost block though, for each user. And, be sure their scripts are running with the SuEXEC wrapper and as their user and group.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Open Data Center Alliance Adds Frameworks for Software Entitlement, Data Security Web Hosting News 2013-03-14 15:33:01
Open Data Center Alliance Publishes PaaS, SaaS Cloud Usage Models Web Hosting News 2012-08-20 16:12:05
Open Data Center Alliance Releases Security-Focused Cloud Computing Usage Models Web Hosting News 2012-04-05 15:04:50
Green Grid, Open Data Center Alliance to Drive Efficient Cloud Standards Web Hosting News 2011-11-09 15:03:49
SSL Certificate Authority GlobalSign Launches CloudSSL Product Web Hosting News 2011-08-12 19:33:59


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?