#1  
Old 7th June 2012, 10:30
Captain Captain is offline
Senior Member
 
Join Date: Feb 2009
Posts: 287
Thanks: 82
Thanked 8 Times in 7 Posts
Question SuPHP in ISPConfig3

Hello!

I use SuPHP for all my web-sites in ISPConfig3
But in htop I see www-data user only.

But in my old server ISPCOnfig2 I use suphp mod too, but I see all users who use apache (not www-data).

How to solve this thing?

Thank you.
Reply With Quote
Sponsored Links
  #2  
Old 7th June 2012, 11:04
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,001
Thanks: 840
Thanked 5,650 Times in 4,460 Posts
Default

ISPConfig has a better mode then suphp which was not available in ispconfig 2 which also allows your sites to run under different users but its much faster. The recommended php mode in ispconfig 3 is:

Suexec: On
PHP mode: fast-cgi

If you prefer to use the slower suphp kode, then you should first check under which user php is really run. You can do that with a script like this:

<?php
touch('test.txt');
?>

upload it to a website directory and open it in a browser. You will either get a error message that the file test.php could not be written to the directory were the php file is, this indicates that suphp is really not working. If you dont get a error message, then a test.txt file must have been created in the same directory, check on the shell or with a ftp client which user owns this file, is it www-data or is it the user of the website.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
Captain (7th June 2012)
  #3  
Old 7th June 2012, 14:54
Captain Captain is offline
Senior Member
 
Join Date: Feb 2009
Posts: 287
Thanks: 82
Thanked 8 Times in 7 Posts
Default

yes. file created. and owner is web-site owner (like web1:client1)

But what about security questions with fast-cgi?

And how I can to see which user run script in htop or top (now I see only that is www-data)?

Thank you Till.
Reply With Quote
  #4  
Old 7th June 2012, 14:58
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,001
Thanks: 840
Thanked 5,650 Times in 4,460 Posts
Default

Quote:
But what about security questions with fast-cgi?
When you enable suexec as I recommended above, then fastcgi runs the php binary under the web user like suphp is doing it, so its as secure as suphp but faster.

Quote:
And how I can to see which user run script in htop or top (now I see only that is www-data)?
The processes that you have seen are most likely apache processes and apache runs always as www-data. The php cgi scripts spawned by suphp run only a very short time, so you might not see them at all.

If you switch to fastcgi, then you can see the processes and their owners with top, as fastcgi processes run a loner time as they were reused for new php processing requests.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
Captain (7th June 2012)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
amavis rejects all inbound emails aclhkaclhk Installation/Configuration 5 28th February 2010 05:24
SugarCRM Install on ISPConfig3 w/ SuPHP clucena Installation/Configuration 1 9th February 2010 10:29
suPHP 0.7.0 compatible with ISPConfig2 ? Hans Installation/Configuration 9 30th January 2009 13:52
ISPConfig3 : suphp on debian etch and a few other questions omry Installation/Configuration 15 19th September 2008 00:48
Goal: user separation (but apache can't read what suPHP wrote) berny Installation/Configuration 1 26th April 2008 19:22


All times are GMT +2. The time now is 03:57.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.