Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > ISPConfig 3 Priority Support

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th July 2013, 18:02
concept21 concept21 is offline
Senior Member
 
Join Date: Dec 2011
Posts: 146
Thanks: 28
Thanked 18 Times in 13 Posts
Unhappy ISPC 3.052 Owner under suphp site is Wrong!

Help about ISPConfig 3.052!

Please see my uploaded photo. It is an example showing the web1 public site's statistics directory and owner under suphp mode. As you know, they are not correct. The correct owner should be web1:client1. The same problem happen to all newly created directories under /web1/web/. If the owner setting cannot be corrected, many web software cannot be installed nor run.

In the ISPConfig 3.046, I could reset the owner correctly by disabling and then enabling web1, but in ISPConfig 3.052, this technique does not work anymore.

What should I do to correct this problem?
Attached Images
File Type: jpg Capture.JPG (84.8 KB, 10 views)
Reply With Quote
Sponsored Links
  #2  
Old 19th July 2013, 18:59
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,166
Thanks: 829
Thanked 5,412 Times in 4,255 Posts
Default

The ownership of the above files is correct. The html files are created by awstats and shall be owned by the root user as they shall not be ditable by the web user. This is not related to running or installing any software in the site as the stats folder is a system folder, so website scripts might neither alter nor modify any files in this folder. Website scripts are installed in the /web folder and not in the /web/stats subfolder.

Regarding suphp: suphp is deprecated and should not be used anymore. The recommended php mode is php-fcgi or php-fpm whith suexec checkbox enabled. This mode will run the scripts php under the owner of the website and is much faster then suphp.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 19th July 2013, 19:22
concept21 concept21 is offline
Senior Member
 
Join Date: Dec 2011
Posts: 146
Thanks: 28
Thanked 18 Times in 13 Posts
Default

Hi Till,
You misunderstood.

The same problem happens to all newly created directories under /web1/web/. How to change these new directory owner from root:root to web1:client1?


And for the new php mode, which one is more secure: php-fcgi or php-fpm?


Thanks.
Reply With Quote
  #4  
Old 19th July 2013, 19:32
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,166
Thanks: 829
Thanked 5,412 Times in 4,255 Posts
Default

Quote:
The same problem happens to all newly created directories under /web1/web/. How to change these new directory owner from root:root to web1:client1?
How did you create these directories? ISPConfig creates only the directory stats inside the web dir and this directory shall be owned by root as it is system directory. Here is the output of ls that shows folders and files with correct permissions:

Code:
root@server1:/var/www/clients/client1/web1/web# ls -la
total 32
drwx--x--- 3 web1 client1 4096 Jul 16 07:10 .
drwxr-xr-x 9 root  root    4096 Jul 16 07:10 ..
-rwxr-xr-- 1 web1 client1 7358 Jul 16 07:10 favicon.ico
-rwxr-xr-- 1 web1 client1   26 Jul 16 07:10 .htaccess
-rwxr-xr-- 1 web1 client1 1861 Jul 16 07:10 index.html
-rwxr-xr-- 1 web1 client1   14 Jul 16 07:10 robots.txt
drwxr-xr-x 2 root  root    4096 Jul 16 07:10 stats
Quote:
And for the new php mode, which one is more secure: php-fcgi or php-fpm?
Its the same. The security is done by enabling suexec.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 20th July 2013, 07:40
concept21 concept21 is offline
Senior Member
 
Join Date: Dec 2011
Posts: 146
Thanks: 28
Thanked 18 Times in 13 Posts
Unhappy

Hi Till,
Let me show you more pictures. You should be able to understand my problem.

I upload a file vpn.zip to /web1/web/ and then extract it. It's owned by root (picture 1). All its subdirectories and files are also owned by root (picture 2).

In ISPConfig 3.046, I could reset the owner correctly to web1:client1 by disabling and then enabling web1 again, but in ISPConfig 3.052, this technique does not work anymore.

What should I do to correct this problem?
Attached Images
File Type: jpg Capture1.JPG (33.6 KB, 8 views)
File Type: jpg Capture2.JPG (25.6 KB, 8 views)
Reply With Quote
  #6  
Old 22nd July 2013, 08:29
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,166
Thanks: 829
Thanked 5,412 Times in 4,255 Posts
 
Default

Quote:
I upload a file vpn.zip to /web1/web/ and then extract it. It's owned by root (picture 1). All its subdirectories and files are also owned by root (picture 2).
Ok,now its clear.Thats not a ispconfig problem, the probem is that you uploaded and unpacked the files as root user so the resulting files and foldeer are owned by root. Thats the case on all Linux system and not ispconfig specific.

There are several ways to ensure that the files are woned by the correct user:

a) unpack them on your desktop and upload them by FTP with the FTP user of this site.
b) Upload the zip file with a ssh user of thsi website instead of root and unpack it as this ssh user, the unpacked files will then be owned by the web user.
c) When you want to upload and unpack them as root, the chown the files after you uploaded them to the correct user:

chown -R web1:client1 vpn
__________________
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:
concept21 (23rd July 2013)
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
Site Files In The Wrong Folder mudder-board Installation/Configuration 2 2nd September 2007 23:35
Hostingplan gives wrong values when creating a site dimitar General 2 10th May 2007 16:55
Static Web Site Configurations christopher Installation/Configuration 8 18th November 2006 14:43
site configuration and wrong error page jeanjacquesjeanjacques Installation/Configuration 3 16th January 2006 19:41
after web-form edit, site creation from hostingplan gives wrong values raveneye Installation/Configuration 2 7th November 2005 00:51


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


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