Running Linux, Apache, PHP 5.3 with FastCGI Handler.
Is it possible to find out the script that is being executed for a linux process? I've been searching on google and haven't been able to find anything useful.
Depending on your setup this could be managed via fast-cgi or mod_php or even php-fpm. If you use mod_php , then there will be no "php processes" visible for ps . You can still see if your PHP engine is in use by using lsof : $ lsof -ln [...]
Open Terminal using Ctrl + Alt + T , now type sudo -H gedit , then type your password and press enter . This will open the gEdit program with root permission. Now open your . php file where it's located or just drag the file into gEdit.
PHP code is executed on the server.
pstree | grep php ps aux | grep php ps xuww | grep php ...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With