#1  
Old 21st July 2012, 13:29
djmostek djmostek is offline
Member
 
Join Date: Aug 2007
Posts: 63
Thanks: 5
Thanked 1 Time in 1 Post
Default Remote API Problem

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 by djmostek; 21st July 2012 at 13:51.
Reply With Quote
The Following User Says Thank You to djmostek For This Useful Post:
robertoshulze2257 (30th July 2014)
Sponsored Links
  #2  
Old 23rd July 2012, 08:55
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,499
Thanks: 813
Thanked 5,264 Times in 4,128 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 23rd July 2012, 14:45
djmostek djmostek is offline
Member
 
Join Date: Aug 2007
Posts: 63
Thanks: 5
Thanked 1 Time in 1 Post
Default

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.
Reply With Quote
  #4  
Old 23rd July 2012, 14:47
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,499
Thanks: 813
Thanked 5,264 Times in 4,128 Posts
Default

Modify your script so that you insert the correct user and group name of this website instaed of the numbers 5000.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
djmostek (23rd July 2012)
  #5  
Old 23rd July 2012, 23:22
djmostek djmostek is offline
Member
 
Join Date: Aug 2007
Posts: 63
Thanks: 5
Thanked 1 Time in 1 Post
 
Default

Quote:
Originally Posted by till View Post
Modify your script so that you insert the correct user and group name of this website instaed of the numbers 5000.
Yes, I've changed this and everything works fine ;-) I've serached into databse but not simply in ftp_user... thank u
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
added client through remote api can't add database paddox Developers' Forum 2 27th February 2012 12:59
[Info] Remote Desktop Solutions for Linux mar.and65 Desktop Operation 0 27th April 2011 07:05
MySQL Error Nolan Installation/Configuration 12 16th February 2011 02:15
remote api problem germinator Developers' Forum 1 13th February 2011 21:27
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20


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


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