#1  
Old 11th March 2007, 01:54
jonwatson jonwatson is offline
Senior Member
 
Join Date: Feb 2007
Posts: 176
Thanks: 15
Thanked 3 Times in 3 Posts
Default suPHP: Unworkable.

Hello,

I'm disabling suPHP. I simply can't figure out how my users are supposed to use their hosting accounts with it turned on.

For example, when a mortal user uploads Wordpress or Simple Machines, they are unable to run the index.php or install.php scripts because the target UID (nobody) doesn't match the actual UID (the user) of the script file. Since mortal users cannot chmod a file to be owned by the nobody user, they're stuck. I have to go in and chmod all of the files that suPHP whines about.

I think it's a good idea, but in practise it's not workable. I think there should be a way to shut this off within ISPConfig.
Reply With Quote
Sponsored Links
  #2  
Old 11th March 2007, 12:03
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,812
Thanks: 821
Thanked 5,339 Times in 4,188 Posts
Default

SuPHP works pretty well.

1) All files that you upload with FTP are uploaded under the same user that uses suPHP too. If this is not the case in your setup, you configured something wrong.
2) All users can chmod a file if you allow chmod for FTP, but thats not nescessary at all if you use suPHP
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 12th March 2007, 13:12
jonwatson jonwatson is offline
Senior Member
 
Join Date: Feb 2007
Posts: 176
Thanks: 15
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by till
SuPHP works pretty well.

1) All files that you upload with FTP are uploaded under the same user that uses suPHP too. If this is not the case in your setup, you configured something wrong.
2) All users can chmod a file if you allow chmod for FTP, but thats not nescessary at all if you use suPHP
The users are correct, but suPHP requires some (I have yet to determine why it only complains about some files) files to be owned by 65534 (nobody) before it will let them run. I see this with Wordpress's install.php and SMF Forums install.php. There are some other files in Wordpress' wp-admin/ directory that it also won't let run. I have to chown them to nobody before they can run.

I haven't actually tried FTP, I've been scp or wgetting files in the shell, but I'm doing it as the user and not as root.

I'm willing to reconfigure suPHP, but given that there is no user-end configuration for it in the HowTo or duing the ISPConfig install, it's highly unlikely that I configured it wrong.
Reply With Quote
  #4  
Old 12th March 2007, 14:45
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,812
Thanks: 821
Thanked 5,339 Times in 4,188 Posts
Default

There no chown of a user nescessary. Mybe you uplodaed the files with wrong mode, they must be world redable so the apache webserver can access them, or you must add the user nobody to the website group.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 28th March 2007, 23:57
jonwatson jonwatson is offline
Senior Member
 
Join Date: Feb 2007
Posts: 176
Thanks: 15
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by till
There no chown of a user nescessary. Mybe you uplodaed the files with wrong mode, they must be world redable so the apache webserver can access them, or you must add the user nobody to the website group.
After some time with suPHP, it seems that you're right. My users never have a problem, I only see the problem when I move and install scripts as root.

So, the lesson is to su into the user that's going to own the script before installing it and that seems to make everything work.

But I guess you knew that.
Reply With Quote
  #6  
Old 29th March 2007, 00:04
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

This week Falko posted my howto, which shows you how to setup suPHP on an ISPConfig-server.
(for you too late) but hopefully a nice guide for future use.

Here it is:
http://www.howtoforge.com/suphp_debian_ispconfig
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
  #7  
Old 29th March 2007, 09:03
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,812
Thanks: 821
Thanked 5,339 Times in 4,188 Posts
 
Default

Quote:
So, the lesson is to su into the user that's going to own the script before installing it and that seems to make everything work. But I guess you knew that.
Yes, it can not work when the files owned by root. Either su to the user bfeore you start the installation or chown the files recursively to the user and group of the website after installation or upload the files by FTP or login with the admin user of the website by SSH.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
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
suPHP -couldn't create child process error tipsy HOWTO-Related Questions 10 26th November 2007 00:56
Suphp issue edony44 Installation/Configuration 11 4th December 2006 13:31
suPHP and mod_vhost_alias Wiesemarc HOWTO-Related Questions 0 6th November 2006 16:45
OpenSuSE 10 suphp and apache2? doom4 Installation/Configuration 1 19th September 2006 15:19
Big issue with suPHP ddelbia General 13 23rd June 2006 12:44


All times are GMT +2. The time now is 16:40.


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