
30th January 2013, 09:19
|
|
Senior Member
|
|
Join Date: Nov 2012
Location: Netherlands, Almere
Posts: 146
Thanks: 10
Thanked 13 Times in 12 Posts
|
|
Active processes
Hi, %username% !
Command:
Code:
ps aux | grep apache2 | grep web6 | grep -v grep
will return all proccesses of the current user? So like this i can control user server load, right?
Thank you
|

30th January 2013, 10:07
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,896
Thanks: 693
Thanked 4,190 Times in 3,208 Posts
|
|
You should remove the grep on apache2, as your current statement does not include all processes of the user.
|

30th January 2013, 10:12
|
|
Senior Member
|
|
Join Date: Nov 2012
Location: Netherlands, Almere
Posts: 146
Thanks: 10
Thanked 13 Times in 12 Posts
|
|
Hi Till,
Thank you.
But it still doesn't work. What i want is:
I want to see all processes of usergroup client1. I made a ,heavy for server, php script, i runned it from 3 several computers, i runned command
Code:
ps aux | grep web6 | grep -v grep
, but i'v got an empty result. Why?
Thank's
|

30th January 2013, 10:14
|
|
Senior Member
|
|
Join Date: Nov 2012
Location: Netherlands, Almere
Posts: 146
Thanks: 10
Thanked 13 Times in 12 Posts
|
|
Will
Code:
AssignUserID client1 web6
(in v-host) help?
|

30th January 2013, 10:19
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,896
Thanks: 693
Thanked 4,190 Times in 3,208 Posts
|
|
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
|
|
The Following User Says Thank You to till For This Useful Post:
|
almere (1st February 2013)
|

30th January 2013, 10:36
|
|
Senior Member
|
|
Join Date: Nov 2012
Location: Netherlands, Almere
Posts: 146
Thanks: 10
Thanked 13 Times in 12 Posts
|
|
Just tested, works perfect. Is there a big difference between mod_php and fast cgi? Will all sites (and main cms) works on fast cgi ?
|

30th January 2013, 11:02
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,896
Thanks: 693
Thanked 4,190 Times in 3,208 Posts
|
|
Normally all sites should work on fastcgi, especially cms systems will work even better. mod_php should not be used on shared hosting enviroment as all sites run under the apache user then which might allow clients to access fat from other sites.
|
|
The Following User Says Thank You to till For This Useful Post:
|
almere (1st February 2013)
|

30th January 2013, 11:05
|
|
Senior Member
|
|
Join Date: Nov 2012
Location: Netherlands, Almere
Posts: 146
Thanks: 10
Thanked 13 Times in 12 Posts
|
|
Thank you , Till.
Soon, i will present my module to control users server load.
|

1st February 2013, 08:36
|
|
Junior Member
|
|
Join Date: Feb 2013
Location: India
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Fastcgi is very simple and it is the extension of cgi, it is a language independent, it runs applications in processes isolated from the core web server, it is provides the great security, while compare to the others. It is a very stable protocol. Generally, when loading mod_php as an apache module, it allows to internet php files.
__________________
Reliable it support london
|
|
The Following User Says Thank You to pandyarenu For This Useful Post:
|
almere (1st February 2013)
|

1st February 2013, 08:45
|
|
Senior Member
|
|
Join Date: Nov 2012
Location: Netherlands, Almere
Posts: 146
Thanks: 10
Thanked 13 Times in 12 Posts
|
|
Thank you, pandyarenu
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 08:54.
|
Recent comments
23 hours 43 min ago
1 day 9 hours ago
1 day 10 hours ago
1 day 13 hours ago
1 day 17 hours ago
1 day 18 hours ago
1 day 20 hours ago
2 days 6 hours ago
2 days 11 hours ago
2 days 12 hours ago