Remote API Problem

Discussion in 'Installation/Configuration' started by djmostek, Jul 21, 2012.

  1. djmostek

    djmostek New Member

    It's me again :)
    I've made use of remote API that is enclosed with new ISPConfig and made use of its documentation and made script which makes auttomatically accounts. It makes: site, ftp and mysql database. The problem is that when i logg into ftp account made by remote API I see nothing at all - it's empty BUT the dafault page ('This is the default index page of your website.') displays which suggest that his ftp account is not empty.

    I must admit that when I create ftp account in panel directly I see all the catalogues after ftp login...

    Any suggestions how to solve this problem?

    PS. In my scrip config I made a dir where ftp accounts are created like this: /var/www/clients/client%USERID%/web%WEBDOMAINID%/web/
     
    Last edited: Jul 21, 2012
  2. till

    till Super Moderator

    Compare the database record in the ftp_user table of a account created with the api with a account that you created in the ispconfig interface and then adjust your api parameters that the account created by the api uses the correct paths and user names like the one created by the interface.
     
  3. djmostek

    djmostek New Member

    There's a difference in table ftp_user:

    for that one created by panel the fileds uid and gid looks like this:
    Code:
    uid= web8
    guid= client10
    for that one created by API using my script:
    Code:
     uid=5000
    guid=5000
    while the 'dir' is the same for both.
     
  4. till

    till Super Moderator

    Modify your script so that you insert the correct user and group name of this website instaed of the numbers 5000.
     
  5. djmostek

    djmostek New Member

    Yes, I've changed this and everything works fine ;-) I've serached into databse but not simply in ftp_user... :) thank u
     

Share This Page