1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

How do i use the plesk api?

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by jaimet, Apr 23, 2010.

  1. jaimet

    jaimet Guest

    0
     
    Hi,

    I was wondering if it is possible to execute a command like:

    /usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=domain.com -a -v

    With Php. I try to do it using the exec or system php commands, but i think the scripts do not have enought privileges.

    Is it possible to do this operation with the plesk api?

    And how do i use it with php? is there any documentation about it?


    REally appreciate help!!!
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,244
    Location:
    Novosibirsk, Russia
  3. jaimet

    jaimet Guest

    0
     
    this api documentation is very low level.


    Any example on how do i execute the command line operation with php?
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,244
    Location:
    Novosibirsk, Russia
  5. jaimet

    jaimet Guest

    0
     
    yes, but is it possible to automatically reconfigure a domain (after editing it's vhosts.conf file) with the api and php?

    Or this operation cannot be achieved?
     
Loading...