skip to Main Content

Whenever I send the following packet to the plesk API I get the following error: 503 Service Temporarily Unavailable.

<?php
$ftpdeleterequest = <<<XML
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.6.0">
<ftp-user>
<del>
   <filter>
      <name>$ftpusername->name</name>
    </filter>
 </del>
</ftp-user>
</packet>
XML;
$ftpdeleteresponse = $client->request($ftpdeleterequest);

The packet works, it does delete the user, but still outputs the error page.

I can create and edit a ftp user without a problem, but whenever I delete the user it goes wrong.

2

Answers


  1. Chosen as BEST ANSWER

    After some more searching and trying I found that this problem occurs when you are trying to make a delete request from your own domain to your own domain. https://talk.plesk.com/threads/removing-ftp-user-through-api-results-in-500-internal-server-error-php.332874/ It is a strange bug, but the problem wont occur when you are trying to delete a different domain.

    Example: Your domain is domain.tld and you have 2 domains registered in plesk: domain.tld and example.tld. When you are trying to delete a ftp user from domain.tld you get the error, but when you delete the ftp user from example.tld there is no error.

    Hope this clears it up a little for other people with the same problem.


  2. Most probably that php-fpm service is stopped. Check what version of php-fpm is used by domain in Plesk > Domains > domain.tld > PHP Settings. And then start it, for example for php-fpm 5.6:

    /etc/init.d/plesk-php56-fpm start

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search