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

Deactivating a Client Account

Discussion in 'Plesk for Linux - 8.x and Older' started by HiltonT, Feb 16, 2005.

  1. HiltonT

    HiltonT Guest

    0
     
    Hi all,

    When I use(d) a CPanel hosting control panel, if I suspended a client's account, they would then see an "Account Suspended" page. In Plesk, all you get is the boring "Plesk Default - no web site has been configured" page.

    An "Account Suspended" page tends to get the attention of clients a lot faster.

    Any chance this can be arranged in Plesk?
     
  2. Whistler

    Whistler Guest

    0
     
    I would create a index.php file in the /home/vhosts/default htdocs directory, checking the $_SERVER['HTTP_HOST'] var for the deactivated hostname, showing a "account deactivated" version of the default index.html file.

    Ie.

    PHP:
    <?php
    if ( $_SERVER['HTTP_HOST'] == 'deactivated.domain.com' )
      include 
    'index.deactivated.html';
    else
      include 
    'index.noaccount.html';
    ?>
     
  3. HiltonT

    HiltonT Guest

    0
     
    Hi Geert,

    Thanks for the info, however I have done this and unfortunately the default (now "index.noaccount.html") page is still being displayed. There are no other errors.
     
  4. Whistler

    Whistler Guest

    0
     
    My examplecode was more a kind of pseudocode, it has to be a little more refined for real life use I think.

    What have you written in your code, and what's the exact name of the deactivated domain?
     
  5. HiltonT

    HiltonT Guest

    0
     
    Hi,

    I thought that maybe Plesk put some header in deactivated domains, but obviously not. :)

    It would be really nice if they did something similar to what CPanel does (in this situation) as this is one of the few areas where CPanel wins out in a comparison.
     
  6. Whistler

    Whistler Guest

    0
     
    Actually you could just lookit up in the PSA database... Shoulden't be to hard to do...
     
  7. HiltonT

    HiltonT Guest

    0
     
    Hhmmm, that's an idea. Now to figure out how to search the database from a php script...
     
  8. HiltonT

    HiltonT Guest

    0
     
    Damn, it appears that Deactivating a domain in Plesk removes it from the DNS - well, at least now I cannot any longer resolve the domain that was deactivated.

    This is not right - this is FAR from what should happen with "deactivated" or "suspended" domains/accounts - they shouldn't have their domain removed from the Internet, but be redirected to an "Account Suspended - please email the Administrator" page.

    The way Plesk appears to handle this is to remove the domain's ability to be found on the Internet - bad. CPanel redirects to a "suspended" page - good.

    Maybe I should post this in the "Wish List" or more likely the "bugs" list.
     
Loading...