Remote: FTP User Create :: SOAP Error: directory_error_notinweb

Discussion in 'Developers' Forum' started by DOLARiON, May 22, 2010.

  1. DOLARiON

    DOLARiON New Member

    Hi,

    so... the problem is:
    Code:
    SOAP Error: directory_error_notinweb
    when I'm trying to do this:
    Code:
    $params	= array(
    	"server_id"			=> "1",
    	"parent_domain_id"	=> "1",
    	"username"			=> "mysite_newuser",
    	"password"			=> "1234567890",
    	"quota_size"		=> "-1",
    	"active"			=> "y",
    	
    	"uid"				=> "web1",
    	"gid"				=> "client1",
    	"dir"				=> "/var/www/clients/client1/web1",
    	"quota_files"		=> "100",
    	"ul_ratio"			=> "-1",
    	"dl_ratio"			=> "200",
    	"ul_bandwidth"		=> "-1",
    	"dl_bandwidth"		=> "100",
    
    );
    
    
    /**
    * Save
    */
    $client_id = 1;
    
    $user_id = $client->sites_ftp_user_add($session_id, $client_id, $params);
    echo 'User ID: '.$user_id.'<br />';
    
    The question is: what is wrong?
     
  2. DOLARiON

    DOLARiON New Member

    Code:
    $client_id = 0;
    here is an error
    but I'm not shure why...
     
  3. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ls -la /var/www/clients/client1/
    ?
     
  4. DOLARiON

    DOLARiON New Member

    Code:
    server:~# ls -la /var/www/clients/client1/
    total 12
    drwxr-xr-x 3 root root    4096 Май 23 22:41 .
    drwxr-xr-x 3 root root    4096 Май 13 14:03 ..
    lrwxrwxrwx 1 root root      30 Май 13 14:03 {her_is_mysite}.com -> /var/www/clients/client1/web1/
    drwxr-x--x 6 web1 client1 4096 May 13 14:03 web1
    
     
  5. falko

    falko Super Moderator ISPConfig Developer

    Can you try this?
    Code:
    chmod 755 /var/www/clients/client1/web1
     
  6. maumar

    maumar Member HowtoForge Supporter

    I have the same error :(
    have you solved?
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    The error means that you try to set an FTP directory that is outside of the web. Example:

    the website directory is:

    /var/www/clients/client1/web1

    When you now try to pass e.g.


    /var/www/clients/client1/web2

    or /home/abc

    as FTP user directory, then you'll get this error. But using e.g.:

    /var/www/clients/client1/web1
    /var/www/clients/client1/web1/web
    /var/www/clients/client1/web1/web/abc
    /var/www/clients/client1/web1/private

    is fine as they all are in the website that this FTP user belongs to.
     
    Jesse Norell likes this.

Share This Page