HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=33)
-   -   Remote: FTP User Create :: SOAP Error: directory_error_notinweb (http://www.howtoforge.com/forums/showthread.php?t=46056)

DOLARiON 22nd May 2010 08:24

Remote: FTP User Create :: SOAP Error: directory_error_notinweb
 
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?

DOLARiON 22nd May 2010 10:04

Code:

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

falko 23rd May 2010 19:03

What's the output of
Code:

ls -la /var/www/clients/client1/
?

DOLARiON 25th May 2010 23:19

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


falko 26th May 2010 14:41

Can you try this?
Code:

chmod 755 /var/www/clients/client1/web1


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

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