LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   php settings (https://www.linuxquestions.org/questions/linux-software-2/php-settings-547692/)

juice99 04-20-2007 04:11 PM

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.


All times are GMT -5. The time now is 09:45 PM.