linux - Show full list of php scripts on server -
how show full list of running php sripts on linux server? see httpd service, or pid not specific php file source, need analyze script take more memory , fixed it. thanks
you have 2 options:
log urls requested server , end in php scripts being executed can use php feature, allows add php script apache request sent php. enable adding root .htaccess:
php_value auto_prepend_file append.php
in append.php add logging feature, can insert url requested, time took generate response , max memory used. if add tab separated file, import in db table , see happening on server.
more info here: http://www.electrictoolbox.com/php-automatically-append-prepend/
- debug apache doing, using strace start apache strace. debug operations apache , subsequently php doing. watch out, there lot of noise in debug output.
more info here: http://bobcares.com/blog/?p=103
Comments
Post a Comment