#1  
Old 16th May 2012, 21:32
TheFuzzy0ne TheFuzzy0ne is offline
Member
 
Join Date: Aug 2008
Posts: 32
Thanks: 3
Thanked 0 Times in 0 Posts
Default user/group www-data

Hi there.

Recently I did an update on my server using aptitude, and lately I've noticed a problem. The problem could be related, but I'm not sure. For some reason, all files uploaded via PHP are showing as having the user and group set to www-data and not client1 as it should do. The site in question is set up to use FastCGI (I think that was the default) and not suPHP.

Please could you tell me what I need to change to put it back the way it was? The Web site was shared over Dropbox, and at the moment, external changes won't sync because of the issue with permissions.

Many thanks in advance.
Reply With Quote
Sponsored Links
  #2  
Old 17th May 2012, 12:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

That's strange. Did you check the Apache vhost configuration and the Fast-CGI starter file?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 17th May 2012, 14:48
TheFuzzy0ne TheFuzzy0ne is offline
Member
 
Join Date: Aug 2008
Posts: 32
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I haven't, because I'm not quite sure what I'm looking for. xD (Sorry)
Reply With Quote
  #4  
Old 21st May 2012, 19:20
TheFuzzy0ne TheFuzzy0ne is offline
Member
 
Join Date: Aug 2008
Posts: 32
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I'm bumping this hoping for some guidance.

I can find my way around a Linux system easily, but I'm not sure where ISPC keeps it's configuration files, or what I can/can't change without breaking my Web server.

Many thanks in advance.
Reply With Quote
  #5  
Old 22nd May 2012, 08:09
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,434
Thanks: 813
Thanked 5,209 Times in 4,085 Posts
Default

If you use fastcgi, then ensure that the checkbox "suexec" is enabled in that website. If suexec is not enabled, then all uploaded data is owned by a wrong user and group.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 22nd May 2012, 14:26
TheFuzzy0ne TheFuzzy0ne is offline
Member
 
Join Date: Aug 2008
Posts: 32
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Thanks for the reply.

The SuEXEC checkbox is checked, and was already checked.

I'd appreciate any more suggestions.

On the PHP dropdown box, would it help if I changed that from Fast-CGI to SuPHP?
Reply With Quote
  #7  
Old 23rd May 2012, 14:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Quote:
Originally Posted by TheFuzzy0ne View Post
On the PHP dropdown box, would it help if I changed that from Fast-CGI to SuPHP?
It should work with FastCGI as well. Can you post the Apache vhost configuration of that website?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 23rd May 2012, 15:16
TheFuzzy0ne TheFuzzy0ne is offline
Member
 
Join Date: Aug 2008
Posts: 32
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Sure!

Code:
<Directory /var/www/sfogb.mydomain.com>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost *:80>
      DocumentRoot /var/www/sfogb.mydomain.com/web
  
    ServerName sfogb.mydomain.com
    ServerAdmin webmaster@sfogb.mydomain.com
DirectoryIndex index.php index.html
    ErrorLog /var/log/ispconfig/httpd/sfogb.mydomain.com/error.log


    ErrorDocument 400 /error/400.html
    ErrorDocument 401 /error/401.html
    ErrorDocument 403 /error/403.html
    ErrorDocument 404 /error/404.html
    ErrorDocument 405 /error/405.html
    ErrorDocument 500 /error/500.html
    ErrorDocument 502 /error/502.html
    ErrorDocument 503 /error/503.html

    <IfModule mod_ssl.c>
    </IfModule>
    <Directory /var/www/sfogb.mydomain.com/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /var/www/clients/client1/web2/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>



    # suexec enabled
    SuexecUserGroup daz client1
    # Clear PHP settings of this website
    <FilesMatch "\.ph(p3?|tml)$">
        #SetHandler None
    </FilesMatch>
    # php as fast-cgi enabled
	# For config options see: http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
    <IfModule mod_fcgid.c>
        #IdleTimeout 300
        #ProcessLifeTime 3600
        ## MaxProcessCount 1000
        #DefaultMinClassProcessCount 0
        #DefaultMaxClassProcessCount 100
        #IPCConnectTimeout 3
        #IPCCommTimeout 360
        #BusyTimeout 300
    </IfModule>
    <Directory /var/www/sfogb.mydomain.com/web>
        #AddHandler fcgid-script .php .php3 .php4 .php5
	AddHandler php5-script .php
	#AddHandler php-fastcgi .php
        #FCGIWrapper /var/www/php-fcgi-scripts/web2/.php-fcgi-starter .php
        Options +ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /var/www/clients/client1/web2/web>
        #AddHandler fcgid-script .php .php3 .php4 .php5
	#AddHandler x-httpd-php5 .php
	AddHandler php5-script .php
	#AddHandler php5-fastcgi .php
        #FCGIWrapper /var/www/php-fcgi-scripts/web2/.php-fcgi-starter .php
        Options +ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>


    # add support for apache mpm_itk
    <IfModule mpm_itk_module>
      AssignUserId web2 client1
    </IfModule>

    <IfModule mod_dav_fs.c>
	  # Do not execute PHP files in webdav directory
      <Directory /var/www/clients/client1/web2/webdav>
	    <FilesMatch "\.ph(p3?|tml)$">
          SetHandler None
        </FilesMatch>
      </Directory>
      # DO NOT REMOVE THE COMMENTS!
      # IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
      # WEBDAV BEGIN

      Alias /webdav/sfogb /var/www/clients/client1/web2/webdav/sfogb
      <Location /webdav/sfogb>
        DAV On
        AuthType Digest
        AuthName "sfogb"
        AuthUserFile /var/www/clients/client1/web2/webdav/sfogb.htdigest
        Require valid-user 
        Options +Indexes 
        Order allow,deny 
        Allow from all 
      </Location> 
      # WEBDAV END
    </IfModule>

AccessFileName .htaccess2
</VirtualHost>
Looking at it now, I have a vague recollection of commenting out some of the lines due to the problem mentioned here, but I'm not sure. I wonder if that's what's broken it?

Thanks for your assistance so far.
Reply With Quote
  #9  
Old 24th May 2012, 13:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
 
Default

Quote:
Originally Posted by TheFuzzy0ne View Post
Looking at it now, I have a vague recollection of commenting out some of the lines due to the problem mentioned here, but I'm not sure. I wonder if that's what's broken it?
I suggest you undo your changes and test again.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
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
squirrelmail and postfix witoszek General 12 1st December 2009 18:07
Security problem 2 ???? the revenge :) albertux Installation/Configuration 2 22nd September 2009 18:44
Mail Log Question - Is This Normal gwiz Installation/Configuration 7 12th September 2009 03:09
550 Sender verify failed Allen15 Installation/Configuration 11 13th February 2009 14:02
Problem recieving mail webstergd Installation/Configuration 19 16th December 2005 12:08


All times are GMT +2. The time now is 12:57.


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