#1  
Old 11th April 2012, 14:43
planetcaravan planetcaravan is offline
Member
 
Join Date: May 2011
Posts: 35
Thanks: 2
Thanked 1 Time in 1 Post
Default Permissions and file owner

Hi there,

I'm using ISP Config 3. I've configured a couple of clients and all it's working fine.

I don't understand how permissions are working. Many times I have to setup 775 permissions to run many scripts. In Joomla, after a component installation, its folder owner is www-data and not client7.

How can I made file permissions and owner recursive for each client folder?
Reply With Quote
Sponsored Links
  #2  
Old 11th April 2012, 15:02
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,070
Thanks: 826
Thanked 5,396 Times in 4,240 Posts
Default

Quote:
I don't understand how permissions are working. Many times I have to setup 775 permissions to run many scripts. In Joomla, after a component installation, its folder owner is www-data and not client7.
There are no directory permission cahnges required, you used just the wrong website settings. Joomla and other cms system require the following website settings:

Suexec: on
PHP mode: php-fcgi

as described in the ispconfig manual.

The chown / chmod that you did is insecure and can cause that other sites get hacked on your server. You shoudl undo these changes and chnage the settings for the website as I suggested above.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 11th April 2012, 15:41
planetcaravan planetcaravan is offline
Member
 
Join Date: May 2011
Posts: 35
Thanks: 2
Thanked 1 Time in 1 Post
Default

Thanks for your answer. I've purchased the manual.
So are you suggesting me to use

Code:
Suexec: on
PHP mode: php-fcgi
on each site I'm having permission problems?

Do I have to restart Apache afeter this update?
Reply With Quote
  #4  
Old 11th April 2012, 15:46
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,070
Thanks: 826
Thanked 5,396 Times in 4,240 Posts
 
Default

Quote:
on each site I'm having permission problems?
Yes. Xou should use this setting on every site that runs a php based cms system. With these settings, php runs udner the owner of the website and not the www-data user, that is more secure in case that a site gets hacked and it allows the cms system to store addons and install updates without needing a chmod.

Quote:
Do I have to restart Apache afeter this update?
No. Thats all handled by ispconfig. Just wait a minute until the items in the jobqueue (ispconfig monitor) are disappeared.
__________________
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:
planetcaravan (11th April 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
Cron issue in Debian 6 Nolan Installation/Configuration 6 18th April 2011 16:36
All my mail is going to /var/mail/vmail _sluimers_ Installation/Configuration 21 10th January 2011 13:21
error: File /root/rpm/SOURCES/postfix-2.3.3-vda.patch: No such file or directory mxtdn Installation/Configuration 1 25th July 2009 09:20
HotSaNIC domino Tips/Tricks/Mods 23 6th November 2006 05:19
BIND broke adamluz Installation/Configuration 4 2nd June 2006 21:31


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


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