Linux Server
De JarfilWiki
Contenido |
suPHP
suPHP::LookupException
problem
# cat suphp_log [Sun Sep 09 21:15:06 2007] [info] Executing "/home/www/awstats/awstats.pl" as UID 500, GID 500
# cat ssl_error_log [Sun Sep 09 21:15:09 2007] [error] [client 85.84.236.116] terminate called after throwing an instance of 'suPHP::LookupException' [Sun Sep 09 21:15:09 2007] [error] [client 85.84.236.116] Premature end of script headers: awstats.pl
cause
suPHP_UserGroup user non-valid-group
solution
suPHP_UserGroup user valid-group
SPF
DomainKeys
- DKIM (DomainKeys Identified Mail) - DKIM.org
- "DKIM-signature"
Squid + php-cgi + phpbb/etc
Problema
Se pierde la información de REMOTE_ADDR.
Solución 1
vi /usr/share/php5/prepend.php <?php $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR']; $_ENV['REMOTE_ADDR'] = $_ENV['HTTP_X_FORWARDED_FOR']; ?> vi /etc/php/cgi-php5/php.ini auto_prepend_file = "prepend.php" include_path = ".:/usr/share/php5:/usr/share/php"
Var
Renice user processes
ps xa -o pid,user,gid,nice -g 100 | sed "s/^ *//;s/ */ /g" | grep " 100 0$" | cut -d " " -f 1 | xargs renice +10 -p
