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

Plesk 10 Stats gives me 500 Internal Server Erro

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by fearz, Apr 17, 2011.

  1. fearz

    fearz Regular Pleskian

    25
    57%
    Joined:
    Feb 29, 2008
    Messages:
    170
    Likes Received:
    0
    Hi,

    Yesterday i noticed that some domains didn't report their stats (awstats or webalizer) mentioning:

    then i came across this:
    I replaced the file by doing the following:
    then i replaced it with the new file,

    then i did
    I then received a Segmentation fault:
    Now i received 500 internal server error & i found this in:

    /var/log/sw-cp-server/error_log
    Now i reverted the file back to normal, and re-ran statistics...same segmentation fault and same 500 internal server error....

    I'm using Plesk 10.2.0 on Centos OS 5

    Appreciating your support please
     
  2. fearz

    fearz Regular Pleskian

    25
    57%
    Joined:
    Feb 29, 2008
    Messages:
    170
    Likes Received:
    0
    It seems i backed up the wrong file...now i need the old StatisticsController.php :(

    Any support will be highly appreciated
     
  3. fearz

    fearz Regular Pleskian

    25
    57%
    Joined:
    Feb 29, 2008
    Messages:
    170
    Likes Received:
    0
    -rw-r--r-- 1 root psaadm 9087 Apr 17 02:54 StatisticsController.php

    This is the version i got..i tried chown root:root and the above as well doesn't work...same 500 internal error
     
  4. fearz

    fearz Regular Pleskian

    25
    57%
    Joined:
    Feb 29, 2008
    Messages:
    170
    Likes Received:
    0
    Anyone please?
     
  5. fearz

    fearz Regular Pleskian

    25
    57%
    Joined:
    Feb 29, 2008
    Messages:
    170
    Likes Received:
    0
    Not a single response?

    Come on guys...support...where are you?

    Can anyone at least attach their StatisticsController.php?
     
  6. EugeneL

    EugeneL Regular Pleskian

    20
    57%
    Joined:
    Feb 18, 2011
    Messages:
    461
    Likes Received:
    0
    Parallels Panel 10.2, CentOS5 x86
    /usr/local/psa/admin/smb/application/controllers/StatisticsController.php
     

    Attached Files:

  7. fearz

    fearz Regular Pleskian

    25
    57%
    Joined:
    Feb 29, 2008
    Messages:
    170
    Likes Received:
    0
    Thank you Eugenel...It still doesn't work, however, if i chmod 700 StatisticsController.php i don't get 500 server error, instead the page load but tells me: Error: Invalid URL was requested.

    And in the log file i get:

    ERR (3): Requested URL: /smb/statistics
    ERR (3): Invalid URL was requested.
     
  8. EugeneL

    EugeneL Regular Pleskian

    20
    57%
    Joined:
    Feb 18, 2011
    Messages:
    461
    Likes Received:
    0
    There are correct permissions for file StatisticsController.php:
    # ls -la /usr/local/psa/admin/smb/application/controllers/StatisticsController.php
    -rw-r--r-- 1 root root 9007 Mar 31 10:59 /usr/local/psa/admin/smb/application/controllers/StatisticsController.php

    Also check permissions for /smb/statistics directory:
    # ls -la /usr/local/psa/admin/smb/application/views/scripts/statistics/
    total 20
    drwxr-xr-x 2 root root 4096 Apr 18 18:11 .
    drwxr-xr-x 32 root root 4096 Apr 11 09:10 ..
    -rw-r--r-- 1 root root 1068 Mar 31 10:59 _big_gauge.phtml
    -rw-r--r-- 1 root root 3401 Apr 18 18:10 index.phtml
    -rw-r--r-- 1 root root 836 Mar 31 10:59 _usage.phtml
     
  9. fearz

    fearz Regular Pleskian

    25
    57%
    Joined:
    Feb 29, 2008
    Messages:
    170
    Likes Received:
    0
    Thanks again, I got the same files & permissions as you, just that when i chmod 644 (like you) StatisticsController I get 500 internet server error or a blank page (on IE) along with:

    2011-04-18 13:44:08: (mod_fastcgi.c.2582) FastCGI-stderr: PHP Parse error: syntax error, unexpected T_STRING, expecting ']' in /usr/local/psa/admin/smb/application/controllers/StatisticsController.php on line 83
     
  10. fearz

    fearz Regular Pleskian

    25
    57%
    Joined:
    Feb 29, 2008
    Messages:
    170
    Likes Received:
    0
    Same issue :(
     
  11. EugeneL

    EugeneL Regular Pleskian

    20
    57%
    Joined:
    Feb 18, 2011
    Messages:
    461
    Likes Received:
    0
    Could you please try again? Previous file seems to be corrupted.

    Please pay attention that file can be corrupted if you move it between Win and Linux using WinSCP.
     

    Attached Files:

  12. fearz

    fearz Regular Pleskian

    25
    57%
    Joined:
    Feb 29, 2008
    Messages:
    170
    Likes Received:
    0
    Well, good news, it finally worked, the weird thing is i tried later to rename the file and unzip the file in:

    http://kb.odin.com/en/9743

    but the same problem appeared again..blank / 500 server error...
     
  13. EugeneL

    EugeneL Regular Pleskian

    20
    57%
    Joined:
    Feb 18, 2011
    Messages:
    461
    Likes Received:
    0
    Happy to hear that you've restored initial configuration.

    I'll try to investigate if this KB is correct and if this patch is applicable for 10.2.
     
  14. EugeneL

    EugeneL Regular Pleskian

    20
    57%
    Joined:
    Feb 18, 2011
    Messages:
    461
    Likes Received:
    0
    I have to apologize but hot-fix from KB is not applicable for Parallels Panel 10.2 installed on Linux. KB article is now updated to reflect this information.

    I'll update you when fix for 10.2 will be released.

    Regards.
     
  15. fearz

    fearz Regular Pleskian

    25
    57%
    Joined:
    Feb 29, 2008
    Messages:
    170
    Likes Received:
    0
    The fact that having you respond to my issue and update me with it is enough for me..no need to apologize,

    Thanks once again for the update.
     
  16. EugeneL

    EugeneL Regular Pleskian

    20
    57%
    Joined:
    Feb 18, 2011
    Messages:
    461
    Likes Received:
    0
  17. fearz

    fearz Regular Pleskian

    25
    57%
    Joined:
    Feb 29, 2008
    Messages:
    170
    Likes Received:
    0
    Thanks a lot EugeneL...It is confirmed that this micro update has fixed this problem...
     
Loading...