Each website has its own user, so the grep on the user is correct, you dont need to deal with groups here.
If you get a resuilt here depends on the configuration of the sites. The sites have to use the php modes php cgi, php-fcgi or suphp and suexec has to be active. If they use mod_php, then you can not get the processes of the site as tehre are no separate processes then.
Your command above works when the correct php mode and suexec is used:
Code:
ps aux | grep web16 | grep -v grep
web16 3689 3.3 1.1 130968 44804 ? S 07:29 3:37 /usr/bin/php-cgi -d open_basedir=/var/www -d upload_tmp_dir=/var/www/clients/client15/web16/tmp -d session.save_path=/var/www/clients/client15/web16/tmp
web16 12204 2.8 1.1 131748 45052 ? S 08:02 2:05 /usr/bin/php-cgi -d open_basedir=/var/www -d upload_tmp_dir=/var/www/clients/client15/web16/tmp -d session.save_path=/var/www/clients/client15/web16/tmp
web16 15784 2.8 1.1 132000 45264 ? S 08:13 1:44 /usr/bin/php-cgi -d open_basedir=/var/www -d upload_tmp_dir=/var/www/clients/client15/web16/tmp -d session.save_path=/var/www/clients/client15/web16/tmp