Problem with new ftp account

Discussion in 'General' started by kwickcut, Mar 26, 2011.

  1. kwickcut

    kwickcut Member HowtoForge Supporter

    i am running ISPConfig 3.0.1.6 with Ubuntu Linux 9.10

    edit i also used this how to http://www.howtoforge.com/perfect-server-ubuntu-9.10-ispconfig-3

    i have about 15 websites and fpt accounts running and have no troubles until last night.

    i added a new site and ftp account they were able to upload there site to the /web folder but they can not overwrite any files delete any files they are getting a 505 error the folders can not be chmoded from the ftp if they want files deleted or changed i have to do it through the server.


    what should i look at to set there permissions

    why is this the only site i am having troubles with


    Kwick
     
    Last edited: Mar 26, 2011
  2. falko

    falko Super Moderator Howtoforge Staff

    Did you check the ISPConfig logs?

    Can you post the permissions of the new web site?
     
  3. kwickcut

    kwickcut Member HowtoForge Supporter

    i think this is it not sure /etc/apache2/sites-available

    Code:
    <Directory /var/www/site.net>
        AllowOverride None
        Order Deny,Allow
        Deny from all
    </Directory>
    
    <VirtualHost *:80>
          DocumentRoot /var/www/site.net/web
      
        ServerName site.net
        ServerAlias www.site.net
        ServerAdmin [email protected]
    
        ErrorLog /var/log/ispconfig/httpd/site.net/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 503 /error/503.html
    	
        <Directory /var/www/site.net/web>
            Options FollowSymLinks
            AllowOverride All
            Order allow,deny
            Allow from all
            
            # ssi enabled
            AddType text/html .shtml
            AddOutputFilter INCLUDES .shtml
            Options +Includes
        </Directory>
        <Directory /var/www/clients/client1/web20/web>
            Options FollowSymLinks
            AllowOverride All
            Order allow,deny
            Allow from all
            
            # ssi enabled
            AddType text/html .shtml
            AddOutputFilter INCLUDES .shtml
            Options +Includes
        </Directory>
    
        # cgi enabled
    	<Directory /var/www/clients/client1/web20/cgi-bin>
          Order allow,deny
          Allow from all
        </Directory>
        ScriptAlias  /cgi-bin/ /var/www/clients/client1/web20/cgi-bin/
        AddHandler cgi-script .cgi
        AddHandler cgi-script .pl
        # suexec enabled
        SuexecUserGroup web20 client1
        # mod_php enabled
        AddType application/x-httpd-php .php .php3 .php4 .php5
        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i [email protected]"	
        php_admin_value upload_tmp_dir /var/www/clients/client1/web20/tmp
        php_admin_value session.save_path /var/www/clients/client1/web20/tmp
        php_admin_value open_basedir /var/www/clients/client1/web20/web:/var/www/clients/client1/web20/tmp:/usr/share/php5
    
    
    </VirtualHost>
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Do permissions in the output of
    Code:
    ls -la /var/www/site.net/web/
    look like the permissions of your other web sites, or do you notice anything strange?
     
  5. kwickcut

    kwickcut Member HowtoForge Supporter

    this is the out put for the site

    Code:
    /home/kwick# ls -la /var/www/site.net/web/
    total 136
    drwx--x--- 21 web20 client1  4096 2011-03-26 13:46 .
    drwxr-x--x  6 web20 client1  4096 2011-03-22 00:28 ..
    drwxrwxrwx 10 web20 client1  4096 2011-03-22 15:48 administrator
    drwxrwxrwx  2 web20 client1  4096 2011-03-22 16:11 cache
    drwxrwxrwx 12 web20 client1  4096 2011-03-22 16:12 components
    -rwxrwxrwx  1 web20 client1  1731 2011-03-22 16:52 configuration.php
    drwxrwxrwx  2 web20 client1  4096 2011-03-24 01:09 downloads
    drwxrwxrwx  2 web20 client1  4096 2011-03-22 00:28 error
    -rwxrwxrwx  1 web20 client1   421 2011-03-26 01:32 .htaccess
    -rwxrwxrwx  1 web20 client1  2425 2011-03-22 15:48 htaccess.txt
    drwxrwxrwx  4 web20 client1  4096 2011-03-22 16:15 images
    drwxrwxrwx  2 web20 client1  4096 2011-03-22 16:16 includes
    -rwxrwxrwx  1 web20 client1  1389 2011-03-22 15:48 index.php
    drwxrwxrwx 10 web20 client1  4096 2011-03-22 16:16 installation1
    -rwxrwxrwx  1 web20 client1  1238 2011-03-22 15:48 joomla.xml
    drwxrwxrwx  4 web20 client1  4096 2011-03-22 16:20 language
    drwxrwxrwx  6 web20 client1  4096 2011-03-22 16:21 libraries
    -rwxrwxrwx  1 web20 client1 17816 2011-03-22 15:48 LICENSE.txt
    drwxrwxrwx  2 web20 client1  4096 2011-03-22 16:25 logs
    drwxrwxrwx  8 web20 client1  4096 2011-03-22 16:25 media
    drwxrwxrwx 25 web20 client1  4096 2011-03-22 16:34 modules
    drwxrwxrwx  2 web20 client1  4096 2011-03-22 15:39 orginal site files
    drwxrwxrwx 10 web20 client1  4096 2011-03-22 16:35 plugins
    -rwxrwxrwx  1 web20 client1  4493 2011-03-22 15:48 README.txt
    -rwxrwxrwx  1 web20 client1   301 2011-03-22 15:48 robots.txt
    drwxr-xr-x  2 root  root     4096 2011-03-23 00:30 stats
    drwxrwxrwx  7 web20 client1  4096 2011-03-27 08:06 templates
    drwxrwxrwx  4 web20 client1  4096 2011-03-28 01:06 tmp
    drwxr-xr-x  2 web20 client1  4096 2011-03-26 13:46 weapons
    
    another site with no troubles
    Code:
    ls -la /var/www/site2.org/web/
    total 412
    drwx--x--- 30 web10 client5  4096 2010-12-16 21:56 .
    drwxr-x--x  6 web10 client5  4096 2010-05-10 23:05 ..
    drwxr-xr-x 11 web10 client5  4096 2010-05-09 22:20 administrator
    drwxrwxrwx  2 web10 client5  4096 2010-11-07 22:15 artical images
    drwxrwxrwx 24 web10 client5  4096 2010-12-08 20:19 cache
    -rw-r--r--  1 web10 client5 97981 2010-05-09 22:27 CHANGELOG.php
    drwxrwxrwx 17 web10 client5  4096 2010-12-22 01:19 components
    -rw-rw-rw-  1 web10 client5  2087 2011-02-12 02:30 configuration.php
    -rw-r--r--  1 web10 client5  1175 2010-05-09 22:27 COPYRIGHT.php
    -rw-r--r--  1 web10 client5 14894 2010-05-09 22:27 CREDITS.php
    drwxr-xr-x  2 web10 client5  4096 2010-08-17 23:44 ebooks
    drwxr-xr-x  2 web10 client5  4096 2010-04-28 22:52 error
    -rwxr-xr--  1 web10 client5  1406 2010-05-09 23:10 favicon.ico
    -rw-r--r--  1 web10 client5 85460 2010-05-09 22:27 globe.swf
    -rwxrwxrwx  1 web10 client5   686 2010-12-15 22:13 .htaccess
    -rw-r--r--  1 web10 client5  2773 2010-05-01 21:36 htaccess.txt
    drwxrwxrwx  7 web10 client5  4096 2010-12-18 14:46 images
    drwxr-xr-x  8 web10 client5  4096 2010-05-09 22:22 includes
    -rw-r--r--  1 web10 client5   591 2010-05-09 22:27 index2.php
    -rw-r--r--  1 web10 client5  2052 2010-05-09 22:27 index.php
    drwxr-xr-x  7 web10 client5  4096 2010-05-09 22:22 installation1
    -rw-r--r--  1 web10 client5  4344 2010-05-09 22:27 INSTALL.php
    drwxr-xr-x  2 web10 client5  4096 2010-05-09 23:36 joomla
    drwxrwxrwx  2 web10 client5  4096 2010-10-08 00:20 just for fun pics
    drwxrwxrwx  4 web10 client5  4096 2010-05-09 22:22 language
    drwxr-xr-x 16 web10 client5  4096 2010-05-09 22:23 libraries
    -rw-r--r--  1 web10 client5 17816 2010-05-09 22:27 LICENSE.php
    -rw-r--r--  1 web10 client5 27984 2010-05-09 22:27 LICENSES.php
    drwxrwxrwx  2 web10 client5  4096 2010-05-09 22:23 logs
    drwxrwxrwx  4 web10 client5  4096 2010-06-11 19:08 media
    drwxrwxrwx  3 web10 client5  4096 2010-09-24 16:13 membersarea
    drwxrwxrwx 34 web10 client5  4096 2010-12-08 20:19 modules
    drwxrwxrwx 15 web10 client5  4096 2010-05-10 23:05 moodledata
    drwxrwxrwx  2 web10 client5  4096 2010-10-28 20:41 pdf
    drwxrwxrwx 12 web10 client5  4096 2010-06-11 19:08 plugins
    drwxr-xr-x  2 web10 client5  4096 2010-10-08 00:44 Promotional Material
    -rw-r--r--  1 web10 client5   304 2010-05-09 22:27 robots.txt
    drwxrwxrwx 34 web10 client5  4096 2010-05-10 23:10 school
    drwxr-xr-x  2 root  root     4096 2011-03-02 00:30 stats
    drwxr-xr-x 17 web10 client5  4096 2010-05-09 23:34 store
    drwxrwxrwx  9 web10 client5  4096 2010-05-09 22:26 templates
    drwxrwxrwx  6 web10 client5  4096 2010-12-22 01:19 tmp
    drwxr-xr-x  2 web10 client5  4096 2010-05-09 22:27 weblinks
    drwxr-xr-x  4 web10 client5  4096 2010-05-09 22:27 xmlrpc
    
    kwick
     

Share This Page