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

Panel Access down after upgrade

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by damogill, Jun 8, 2011.

  1. damogill

    damogill Guest

    0
     
    Hi Peeps,

    We recently upgraded from 9.5.4 to 10.2 and had no issues with the install, afterwards I was able to get into the cpanel and everything appeared to be fine.

    Now when I try and get to the cpanel it redirects from https://109.228.21.239:8443/ to https://localhost.localdomain:8443/relay

    Found two suggestions, one was to change the host file for which I have the following:

    The other suggestion was to edit the ServerName directive in the httpd.conf however since v9 I believe this has changed to /etc/sw-cp-server/applications.d/plesk.conf and I cant see any mention of ServerName. I can find it in the client httpd.conf but that isnt relevant here I dont think. I know my hostname is right in the above host file, have tried changing the loopback address as well but that didnt help so changed it back.


    Does anyone have any suggestions?
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Check in Plesk database that you have correct hostname there:

    mysql> select * from misc where param='FullHostName';

    Also check sso settings with

    # /usr/local/psa/bin/sso -g
     
  3. EugeneL

    EugeneL Regular Pleskian

    20
    57%
    Joined:
    Feb 18, 2011
    Messages:
    461
    Likes Received:
    0
    If you've installed Customer & Business Manager then try to execute the following commands:
    /usr/share/plesk-billing/update-hostname --new-hostname=<your domain>
    /usr/share/plesk-billing/repair-integration --command=repair-all --idp-url=https://<your domain>:8443

    See http://kb.odin.com/en/11204 for details
     
  4. damogill

    damogill Guest

    0
     
  5. damogill

    damogill Guest

    0
     
    Actuall dont worry it was sorted with command

    # /usr/share/plesk-billing/update-hostname --new-hostname=server109-228-21-239.live-servers.net


    Thank you for your help guys! :) :)
     
  6. MartinCelis

    MartinCelis Guest

    0
     
    I need your help

    Hi

    I try to use the solution mentioned but I'm still with the problem that redirects me to:

    https://localhost.localdomain:8443/relay

    When I use te:

    /usr/share/plesk-billing/update-hostname --new-hostname=myserver

    I receive this:

    Local Parallels Plesk Panel server (https://myserver).. [ FAILED ] The following error occurred in panel 'Local Parallels Plesk Panel server (https://myserver)': Failed to parse XML document: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>404 Not Found</title>
    </head><body>
    <h1>Not Found</h1>
    <p>The requested URL /myserver:8443/enterprise/control/agent.php was not found on this server.</p>
    <hr>
    <address>Apache Server at localhost Port 443</address>
    </body></html>


    I could support telling me how I could fix this, I'm using Plesk 11.0.9

    thank you for your support, or guidance to give me to solve this
     
  7. EugeneL

    EugeneL Regular Pleskian

    20
    57%
    Joined:
    Feb 18, 2011
    Messages:
    461
    Likes Received:
    0
    It looks like misconfigured Panel settings or broken installation.
    Could you please post here the output of
    ls -l /etc/sw-cp-server/applications.d/
    ls -l /usr/local/psa/admin/htdocs/enterprise/control

    and attach the content of /opt/plesk-billing/lib/lib-billing/include/config/config.php
     
  8. EugeneL

    EugeneL Regular Pleskian

    20
    57%
    Joined:
    Feb 18, 2011
    Messages:
    461
    Likes Received:
    0
    As a temporary solution - disable SSO with command
    /usr/local/psa/bin/sso -d
     
  9. MartinCelis

    MartinCelis Guest

    0
     
    Hi EugeneL

    i try tu use but send me this:

    [root@loft8236 ~]# /etc/sw-cp-server/aplications.d/
    -bash: /etc/sw-cp-server/aplications.d/: No such file or directory
    [root@loft8236 ~]# /usr/local/psa/admin/htdocs/enterprise/control
    -bash: /usr/local/psa/admin/htdocs/enterprise/control: is a directory
    [root@loft8236 ~]# /opt/plesk-billing/lib/lib-billing/inlude/config/config.php
    -bash: /opt/plesk-billing/lib/lib-billing/inlude/config/config.php: No such file or directory

    And use the temporary recommendation, and with it go to plesk
     
  10. EugeneL

    EugeneL Regular Pleskian

    20
    57%
    Joined:
    Feb 18, 2011
    Messages:
    461
    Likes Received:
    0
    Hello,

    You made a couple of mistakes while copying and pasting my instructions.

    ls -l /etc/sw-cp-server/applications.d
    ls -l /usr/local/psa/admin/htdocs/enterprise/control
    cat /opt/plesk-billing/lib/lib-billing/include/config/config.php
     
  11. MartinCelis

    MartinCelis Guest

    0
     
    Hi
    EugeneL

    i try but send me this:

    login as: root
    root@188.138.8.124's password:
    Last login: Wed Jul 11 04:41:05 2012 from 189.240.246.62
    [root@loft8236 ~]# /etc/sw-cp-server/applications.d
    -bash: /etc/sw-cp-server/applications.d: is a directory
    [root@loft8236 ~]# -l/etc/sw-cp-server/applications.d
    -bash: -l/etc/sw-cp-server/applications.d: No such file or directory
    [root@loft8236 ~]# -|/etc/sw-cp-server/applications.d
    -bash: /etc/sw-cp-server/applications.d: is a directory
    -bash: -: command not found
    [root@loft8236 ~]# |s -|/etc/sw-cp-server/applications.d
    -bash: syntax error near unexpected token `|'
    [root@loft8236 ~]# |s -|/etc/sw-cp-server/applications.d
    -bash: syntax error near unexpected token `|'
    [root@loft8236 ~]# |s -|/etc/sw-cp-server/applications.d
    -bash: syntax error near unexpected token `|'
    [root@loft8236 ~]# -|/etc/sw-cp-server/applications.d
    -bash: -: command not found
    -bash: /etc/sw-cp-server/applications.d: is a directory
    [root@loft8236 ~]# ^C
    [root@loft8236 ~]# -|/usr/local/psa/admin/htdocs/enterprice/control
    -bash: -: command not found
    -bash: /usr/local/psa/admin/htdocs/enterprice/control: No such file or directory
    [root@loft8236 ~]# cat/opt/plesk-billing/lib/lib-billing/include/config/config.php
    -bash: cat/opt/plesk-billing/lib/lib-billing/include/config/config.php: No such file or directory
    [root@loft8236 ~]#
     
  12. EugeneL

    EugeneL Regular Pleskian

    20
    57%
    Joined:
    Feb 18, 2011
    Messages:
    461
    Likes Received:
    0
    Hello,

    It seems that you are not familiar with Linux command line
    'ls' is a CLI command, reduction of 'LIST'. 'ls' are two English letters, 'l' from 'list' and 's' from 'list'
    '-l' is a CLI command option, 'l' is again an English letter
    'cat' is a CLI command

    So you should type 'ls <space> -l <space> /etc/sw-cp-server/applications.d'
    and 'cat <space> /opt/plesk-billing/lib/lib-billing/include/config/config.php'
     
  13. MartinCelis

    MartinCelis Guest

    0
     
    Hi EugeneL thanks for your support

    Hi
    EugeneL

    you're right I'm not familiar with the command line, thanks for the support

    now with the commands that I indicated, this was what I got

    'ls <space> -l <space> /etc/sw-cp-server/applications.d':

    [root@loft8236 ~]# ls -l /etc/sw-cp-server/applications.d
    total 28
    -rw-r--r-- 1 root root 949 May 31 08:35 00-sso-cpserver.conf
    -rw-r--r-- 1 hspc hspc 602 Jul 1 07:11 hspc-httpd.conf
    -rw-r--r-- 1 hspc hspc 602 Jul 1 05:17 hspc-httpd.conf.orig
    -rw-r--r-- 1 root root 718 Jun 8 11:41 plesk.conf
    -rwxr-xr-x 1 root root 5805 Jun 8 11:41 plesk.socket.sh
    -rwxr-xr-x 1 root root 3347 May 31 08:35 sso.socket.sh
     
  14. EugeneL

    EugeneL Regular Pleskian

    20
    57%
    Joined:
    Feb 18, 2011
    Messages:
    461
    Likes Received:
    0
    What about commands
    ls -l /usr/local/psa/admin/htdocs/enterprise/control
    cat /opt/plesk-billing/lib/lib-billing/include/config/config.php
    ???

    copy and past them into command line
     
  15. MartinCelis

    MartinCelis Guest

    0
     
    // The system queue can persist itself in any of 3 ways:
    // 1. by recursively doing an http client request back to RunEvents
    // 2. by forking off of a CGI process, and daemonizing the child
    // 3. by just being run from the command line
    // The following two variables affect the logic of which method to use.

    // Possible Values: NULL (for auto-detect), true, false
    $CONF["forcePersistableTo"] = NULL;

    // Possible Values: NULL (for auto-detect), true, false
    $CONF["forceDaemonableTo"] = NULL;

    // If you server has a firewall where the remote IP is dispatched to a
    // local IP, then enter the local IP here. This will allow the events
    // queue to call itself locally instead of using the primary domain.
    $CONF["localURL"] = "";

    // Define whether to let the system queue run till its dead or give it a
    // limit. Set to "1" and the system queue thread will be stopped as soon
    // as it tries to restart itsself. See "killOldQueueThreads" example usage
    // below.
    $CONF["killOldQueueThreads"] = 0;

    // Define the time in seconds that a system queue thread can keep running.
    // This should be 45 seconds to a minute less then the time that cron
    // waits to hit the system.
    // If cron hits every 5 minutes, this should be 4 minutes, or 240 seconds.
    // If cron hits every minute, this needs to be like 15 seconds.
    // If cron hits every hour, this needs to be 59 minutes, or 59*60 seconds
    $CONF["killOldQueueThreadsLimit"] = 240;

    // Example usage for "killOldQueueThreads" cont'd ...
    // If its originating thread is older then the limit below
    // Reason: If there are 100 things in the system queue to run that all
    // are supposed to run right now, we dont want the system queue to start
    // a new thread running them every 5 minutes if the cron runs the system
    // queue that often.
    //
    // An ascii art illistration would look as follows:
    //
    // Timeline is in minutes:
    //
    // IF "killOldQueueThreads" = 0:
    //
    // 0 5 10 15 20 25 30 35 40 45 50
    // |-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|
    // thread 1: .............................................................
    // thread 2: .......................................................
    // thread 3: .................................................
    // thread 4: ...........................................
    // thread 5: .....................................
    // thread 6: ...............................
    // thread 7: .........................
    // thread 8: ...................
    // thread 9: .............
    // thread 10: .......
    //
    // IF "killOldQueueThreads" = 1:
    //
    // 0 5 10 15 20 25 30 35 40 45 50
    // |-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|
    // thread 1: ......
    // thread 2: ......
    // thread 3: ......
    // thread 4: ......
    // thread 5: ......
    // thread 6: ......
    // thread 7: ......
    // thread 8: ......
    // thread 9: ......
    // thread 10: .......

    // --------------------------------------------------------------------------
    // IPC SETTINGS (experimental advanced performance settings)
    // --------------------------------------------------------------------------
    // Please do not enable these unless you are familiar with manually
    // administering shared memory on a Unix box. They also do not necessarily
    // flush at the appropriate times yet, and will likely break something
    // eventually. It is recommended to only enable locale caching since the
    // locale data rarely becomes stale and only this setting makes a
    // significant impact on performance. See ipcs(1) and ipcrm(1).

    // Cache locale object in shared memory (Unix-only)
    // Cache hit saves about 0.2 seconds
    // Extensions:
    // Required: sysvshm
    // Optional: sysvsem
    $CONF["enableSharedMemoryLocaleCache"] = false;

    // Persist admin lookups
    // Cache hit saves about 0.02 seconds
    // Extensions:
    // Required: sysvshm, sysvsem
    $CONF["enableSharedMemoryAdminCache"] = false;
    $CONF["adminCacheSeconds"] = 300;

    // Persist mb_path() cache in shared memory (Unix-only)
    // Cache hit saves about 0.02 seconds.
    // Extensions:
    // Required: sysvshm, sysvsem
    $CONF["enableSharedMemoryMBPathCache"] = false;

    // --------------------------------------------------------------------------
    // SMARTY TEMPLATE SETTINGS
    // --------------------------------------------------------------------------

    // Define the absolute path where the compiled tpl files will be saved.
    // If the directory does not exist, you must create it.
    // ** This directory must be chmod 777
    $CONF["smarty"]["compileDirectory"] = '/var/lib/plesk-billing/smarty' . DIRECTORY_SEPARATOR . "compile";

    // Define the absolute path where the cached tpl files will be saved.
    // If the directory does not exist, you must create it.
    // ** This directory must be chmod 777
    $CONF["smarty"]["cacheDirectory"] = '/var/lib/plesk-billing/smarty' . DIRECTORY_SEPARATOR . "cache";

    // Enable smarty template caching:
    // Possible Values: true (Not Recommended) or false (Default)
    $CONF["smarty"]["enableCaching"] = false;

    // If "enableCaching" = "true, set the lifetime (in seconds) of cached
    // smarty templates. (1 Default)
    $CONF["smarty"]["cacheLifetime"] = 1;

    // Enable smarty template compile checking:
    // Possible Values: true (Default) or false
    $CONF["smarty"]["enableCompileChecking"] = true;

    // Enable high security mode in smarty templates. This will stop tpl
    // files from executing bad code.
    // Possible Values: true (Not Recommended) or false (Default)
    $CONF["smarty"]["enableSecurity"] = false;

    // Enable smarty template debugging window. Tis will display the SMARTY
    // popup window for debugging tpl files.
    // Possible Values: true (Debugging Only) or false (Production Mode - Default)
    $CONF["smarty"]["enableDebugging"] = false;

    // --------------------------------------------------------------------------
    // SMARTY TEMPLATE SETTINGS (advanced settings)
    // --------------------------------------------------------------------------

    // Enable the logging of unknown translation constants in smarty templates.
    // Possible Values: true (Internal Use Only) or false (Default)
    $CONF["smarty"]["logUnknownConstants"] = false;

    // --------------------------------------------------------------------------
    // ADDITIONAL SETTINGS - DO NOT CHANGE (advanced settings)
    // --------------------------------------------------------------------------

    if (!defined("MB_LIBPATH")){
    define("MB_LIBPATH", realpath(dirname(__FILE__)."/../../.."));
    require_once(MB_LIBPATH."/lib-pkg/parsefunction.php");
    }
    require mb_path("/lib-billing/include/config/internal/ColumnMap.php");
    require mb_path("/lib-billing/include/config/internal/QueryMasterMap.php");
    if (substr($CONF["standardURL"], -1)=="/") {
    $CONF["standardURL"] = substr($CONF["standardURL"], 0, -1);
    }
    if (substr($CONF["secureURL"], -1)=="/") {
    $CONF["secureURL"] = substr($CONF["secureURL"], 0, -1);
    }
    $hparts = explode("/", $CONF["standardURL"]);
    $CONF["standardHost"] = $hparts[0];
    $hparts = explode("/", $CONF["secureURL"]);
    $CONF["secureHost"] = $hparts[0];
    if ($CONF["secureURLProtocol"]=="http"){
    $CONF["relativeWebRoot"] = substr($CONF["standardURL"], strpos($CONF["standardURL"], $CONF["standardHost"])+strlen($CONF["standardHost"]));
    } else {
    $CONF["relativeWebRoot"] = substr($CONF["secureURL"], strpos($CONF["secureURL"], $CONF["secureHost"])+strlen($CONF["secureHost"]));
    }

    // set items to try again no sooner than 1 day from time of failure
    $CONF["billingAccountShareRetryTime"] = (60*60*24);

    define("INVOICE_PROCESS_PACKAGE_LOCK_TIMEOUT", 5*60); // 5 minutes
    define("USE_PREDEFINED_RESELLER_VOLUME_DISCOUNTS", 0);
    define("RESELLER_VOLUME_PRODUCT_GROUP_API_NAME", "dedicatedservers");
    define("DEFAULT_MAXIMUM_DISCOUNT", 100);
    define("ENABLE_MBAPI_COMMAND_HOOKS", 0);
    define("NUMBER_OF_INVOICES_PER_EVENT", 25);
    define("MBACTION_DEFAULT_NUM_RECORDS", 30);
    define("MAX_AUTOCOMPLETE_RESULTS", 20);
    define("CREATE_PLAINTEXT_PACKAGE_PASSWORD", 0);
    define("DEFAULT_CONTACT_EMAIL_FORMAT", 1);

    define("PAYMENT_PROCESS_PACKAGE_LOCK_TIMEOUT", 60*60);
    define("BILLING_ACCOUNT_RETRY_PUSH_TIME", 60*60*24*7);

    // keep this at 0 unless this is a demo.
    define('DEMOMODE', 0);

    //$CONF["remoteMBAPIURL"] = array_rand((array)$CONF["remoteMBAPIURL"]);

    define("ALLOW_DEBUG_LOGGING", false);

    $CONF["libDirectory"] = '/var/lib/plesk-billing';
     
  16. EugeneL

    EugeneL Regular Pleskian

    20
    57%
    Joined:
    Feb 18, 2011
    Messages:
    461
    Likes Received:
    0
    Hello,

    Could you please send SSH credentials via private message?
    It will be faster if I look on your server by myself
     
  17. MartinCelis

    MartinCelis Guest

    0
     
    Please click one of the Quick Reply icons in the posts above to activate Quick Reply.
    Ok EugeneL i send private message

    Thanks for your support
     
  18. EugeneL

    EugeneL Regular Pleskian

    20
    57%
    Joined:
    Feb 18, 2011
    Messages:
    461
    Likes Received:
    0
    Please check the private message - I can't connect to your server
     
  19. EugeneL

    EugeneL Regular Pleskian

    20
    57%
    Joined:
    Feb 18, 2011
    Messages:
    461
    Likes Received:
    0
    Hello, Martin

    I fixed your server - for some reason in /opt/plesk-billing/lib/lib-billing/include/config/config.php parameters 'standardURL' and 'secureURL' were set to 'https://domain.com' instead of 'domain.com'
    I fixed the values and executed utility '/usr/share/plesk-billing/integration -command=repair-all' and it fixed everything.

    Please check from your side
     
  20. EugeneL

    EugeneL Regular Pleskian

    20
    57%
    Joined:
    Feb 18, 2011
    Messages:
    461
    Likes Received:
    0
    Proper way to fix this issue:
    1. Execute '/usr/share/plesk-billing/integration --command=update --hostname=domain.com'
    Pay attention - 'domain.com', neither 'https://doman.com' nor 'https://domain.com:8443/' nor something else
    2. Execute '/usr/share/plesk-billing/intgration --command=repair-all'
     
Loading...