Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th July 2008, 20:13
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default Web Users and permissions

Hi folks,

which is the web user who manage the apache?

when I have developed my application I have supposed that If I upload a file in a web5 dir the user owner is apache and not web5.

How can I solve this problem?

Furthermore if I try to install, for instance, Joomla the files installed will have the user: apache and not the user web5. Why?

thanks
Reply With Quote
Sponsored Links
  #2  
Old 31st July 2008, 01:10
Darren996 Darren996 is offline
Junior Member
 
Join Date: Jul 2008
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Default

For Joomla you have to run under the user not apache, so you want to user suExec or suPHP. I had more luck with suPHP.

http://www.howtoforge.com/apache2_suphp_php4_php5
Reply With Quote
  #3  
Old 31st July 2008, 07:18
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

Hi Darren996,

but if you create a simple uplload form in your web5 user when you upload a file which is the user and which are the permissions?

thanks
Reply With Quote
  #4  
Old 31st July 2008, 08:09
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,386 Times in 4,231 Posts
Default

Quote:
Originally Posted by mturillo View Post
but if you create a simple uplload form in your web5 user when you upload a file which is the user and which are the permissions?
This depends on your server configuration:

if you use mod_php, the file is owned by the apache user. If you use suphp, the file is owned by the administrator of the web.

Generally it is better if a file is owned by the administrator of the web. You can easily make it readable for the apache user by executing a chmod +r on the file in the upload script.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 31st July 2008, 08:22
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

Hi Till,

yes, it is what I thought. So there is not an automatic way to assign the owner at the uploaded file without the suPHP. Right?

thanks
Reply With Quote
  #6  
Old 31st July 2008, 08:31
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,386 Times in 4,231 Posts
Default

SuPHP is assigning the correct owner, and this is the administrator of the webiste. The apache user is not the correct owner. If you want all files to be owned by the apache user, use mod_php and not suphp.
__________________
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
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 17:26
Samba and filesystem permissions Anteaus Server Operation 0 17th July 2007 09:19
Hardening the system without breaking ISPConfig Norman Installation/Configuration 20 12th May 2007 14:22
WEB UI FTP not working gimhan90 Installation/Configuration 2 16th March 2006 08:03
Ability to add components for users webstergd Feature Requests 1 20th December 2005 10:25


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


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