LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-20-2007, 04:11 PM   #1
juice99
LQ Newbie
 
Registered: Sep 2005
Posts: 12

Rep: Reputation: 0
php settings


hello, is there anyway to limit each script by the owner of the file?

i have free hosting, and the only way i could see that one script is run by one user and another by another is pathname which contains username and owner of the file

i want to stop people doing fork bombs... there are limits on each php script, but that doesnt help me if there are like 10 000 scripts run every second.

apache and php are running on same username - www-data. i can't run them on seperate usernames. but i would like to see somehow that if someone runs /home/user.domain.com/script.php and for example there are like 1000 of these scripts in memory, i can somehow block them

any idea how to do it? i'm using apache mpm worker ran as mod_fcgid

i have script that runs php:

PHPRC="/etc/php4/cgi/php.ini"
export PHPRC
PHP_FCGI_CHILDREN=8
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=500
export PHP_FCGI_MAX_REQUESTS
exec /usr/lib/cgi-bin/php4

so, maybe i could use some other FCGI viariables? or make some small script that will check something?

it has to be efficient though, i have many hits

P.S. where can i find official documentation for settings like PHP_FCGI_MAX_REQUESTS ? it's not on fastcgi.com or apache.org (or i couldnt find it there). not in google too.
 
  


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
Gnome settings overriding KDE settings frode SUSE / openSUSE 2 04-21-2007 02:35 PM
Network settings / DNS Server settings uid0sd Linux - Newbie 3 02-22-2007 03:39 PM
php mail settings jagster Linux - Networking 1 11-10-2005 02:13 PM
Mandrake 10.0 Gnome/KDE Taskbar icon settings...are there settings? LiquidRezin Linux - Newbie 2 03-22-2004 09:27 AM
Changing US keyboard settings to Spain (SP) settings or Mexico. zLinuxz Linux - General 4 12-01-2002 12:49 AM

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

All times are GMT -5. The time now is 01:56 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