Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th January 2009, 10:25
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,262
Thanks: 78
Thanked 24 Times in 20 Posts
Default regarding ownership of files inside the different web directories

hi there.

I am using ispcfg 2.XX latest version on a server that was installed by following the perfect debian sarge install.

My question is the following:

I am hosting several wordpress installations, for me and friends. Now I have some fundamental understanding problem.

ISPCFG uses i.e. web1_user1 as the format for usernames and web1 as the format for group names. now if I, logged in with the admin account ftp/ssh into my account, all files I create/modify are owned by me and my group aka similar to doing a chown -R web1_user1:web1 /web

BUT to use the wordpress core update and plugin update features, I have to make www-data (the apache2 user used on Debian) the owner, thus enabling any php script, i.e. the wordpress plugin my FTP to write to all files on the server in any of the wordpress installations as they are now all owned by www-data...

I mean now any web can run an online editor and point it to another web-directory and thus modify other users files, as they are all owned by www-data...

I feel there is a solution to this please point me into the right directory or ask for any relevant data I can provide you with.
Reply With Quote
Sponsored Links
  #2  
Old 12th January 2009, 18:34
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,704
Thanks: 819
Thanked 5,321 Times in 4,174 Posts
Default

Quote:
I mean now any web can run an online editor and point it to another web-directory and thus modify other users files, as they are all owned by www-data..
This is the case on all webservers and not specific to ispconfig. there are 2 solutions:

1) enable php safemode.
2) switch from mod_php to suphp
__________________
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:
Tenaka (12th January 2009)
  #3  
Old 12th January 2009, 19:21
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,262
Thanks: 78
Thanked 24 Times in 20 Posts
Default

thx :-) I'll do some reading up on these two options to find out what suits me best. Thx for the hints and clarifying.
Reply With Quote
  #4  
Old 16th January 2009, 11:03
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,262
Thanks: 78
Thanked 24 Times in 20 Posts
Default

can I install my new server according to the ISPCFG 3.0RC1 installation instructions, then add the tutorial for ssh chroot (http://howtoforge.com/chroot_ssh_sftp_debian_etch) then add the tutorial for suphp (http://howtoforge.com/suphp_debian_etch_ispconfig or http://howtoforge.com/install-suphp-...2.20-and-above)

wil this be a working combination or are there problems?

any advice against employing suphp? I realized it uses php-cgi, what about fastcgi? what do other users use?

Last edited by Ovidiu; 16th January 2009 at 11:29.
Reply With Quote
  #5  
Old 16th February 2009, 08:51
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,262
Thanks: 78
Thanked 24 Times in 20 Posts
Default

just curios what others in this forum use? what solution do you employ?
Reply With Quote
  #6  
Old 16th February 2009, 11:55
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,704
Thanks: 819
Thanked 5,321 Times in 4,174 Posts
 
Default

In ISPConfig 2 you have only the solutions I posted above. In ISPConfig 3 you have also php as fastcgi.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Tags
group, owner, permission, user

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
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 17:26
Creating Custom Web Directories pcburner HOWTO-Related Questions 1 2nd April 2008 13:22
get thousands of "Mailsize" mails from own server torusturtle Installation/Configuration 20 24th December 2006 14:51
Web home directories world writable? zarrelli Installation/Configuration 1 25th July 2006 11:56
uploaded web files not accessable DTGorm General 3 30th May 2006 00:50


All times are GMT +2. The time now is 04:35.


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