Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Webuzo SDK Problems



Threaded Mode | Print  

 Webuzo SDK Problems (5 Replies, Read 6031 times)
astakos
Group: Member
Post Group: Newbie
Posts: 8
Status:
Inside the webuzo sdk there is the part of code below:
PHP Code

 /**
     * Restart services
     *
     * @category     Advanced Settings
     * @param        string $service_name Specify the service to restart
                      E.g exim, dovecot, tomcat, httpd, named, pure-ftpd, mysqld
     * @return         string $resp Response of Action. Default: Serialize
     */
    
function restart_service($service_name){
        
$act 'act=services';
        
        
$data['restart_service'] = $service_name;

        
$resp $this->curl_call($act$data);    
        
$this->chk_error();
        return 
$resp;
    }
    
    
/**
     * Start/Stop FTP
     *
     * @category     Advanced Settings
     * @param        string $action Specify start/stop to START/STOP FTP service respectively
     * @return         string $resp Response of Action. Default: Serialize
     */
    
function start_stop_ftp($action){
        
$act 'act=services';
        
        if(
$action != 'stop'){
            
$data['status'] = 'stop';
        }else{
            
$data['status'] = 'running';
        }
        
        
$resp $this->curl_call($act$data);        
        
$this->chk_error();
        return 
$resp;
    } 




As for the restart_service, I cannot make it work. I am calling it through my website and while the rest of the functions are working, it always returns false.  I am calling it using the service_name, not name.

The same applies to start_stop_ftp. Basicly I cannot understand how it works exactly. If I call it using stop as action, it will change it to running and if I call it using any other action (for example run), it will change it to stop.

Could you please let me know if any of you has managed to work with the above functions?


-----------------------
TopWebHost.gr
IP: --   

Webuzo SDK Problems
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
If no reply and you need help suggest to open a ticket https://www.softaculous.com/support/


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Webuzo SDK Problems
nikhil89
Group: Softaculous Team
Post Group: Elite Member
Posts: 467
Status:
Hi,

We have fixed the issue and released the new version of the SDK.

In the new version the restart_services function has been deprecated , instead you can use the manage_service function which you can find in the SDK.

The manage_service function takes two params "service_name" and "action"

service_name => "application id" , you can find the application id of any application from the following URL : http://api.webuzo.com/apps.php (check the aid part of any app).

action => "start or stop or restart".

Please let us know if you need any further information. We will be happy to help you.
IP: --   

Webuzo SDK Problems
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Thank you for the reply nikhil89 :)


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Webuzo SDK Problems
astakos
Group: Member
Post Group: Newbie
Posts: 8
Status:
Now everything is working correctly

Thank you very much for your direct support

-----------------------
TopWebHost.gr
IP: --   

Webuzo SDK Problems
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Thank you for the feedback astakos
   
!
Have a great time :)
Happy to hear and read the issue is fixed.  :D


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 7:45 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.020