The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel problem

Discussion in 'General Discussion' started by korsakoff, May 19, 2004.

  1. korsakoff

    korsakoff Member

    Joined:
    May 19, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hello,
    I have a problem with my cpanel, this is the problem: when I try to connect to the webmail server write "Error 500" and when I'm logged in cpanel he write: DB MySQL There was an error setting uids. Please have the admin check permissions on: /usr/local/cpanel/bin/mysqlwrap CP-Wrap Critcal Error (signal 13 from wrapped program)! This may indicate a corrupt admin binary in /usr/local/cpanel/bin/ / 1000

    What's the problem? Help me please.
     
  2. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    765
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    N.W. Iowa
    check the cpwrap file, the mysqlwrap file is symbolicly linked to it.. make sure the file looks like this:
    Code:
    -rwsr-xr-x    1 root     wheel        9768 Apr 21 05:17 cpwrap*
    
    Mickalo
     
  3. korsakoff

    korsakoff Member

    Joined:
    May 19, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hello,
    on my server:

    -rwsr-xr-x 1 root wheel 9768 Apr 16 05:32 cpwrap
     
  4. korsakoff

    korsakoff Member

    Joined:
    May 19, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hello,
    all of my problem come from this scripts:

    ScriptAliasMatch ^/cpanel/(.*) /usr/local/cpanel/base/redirect.cgi
    ScriptAlias /cpanel /usr/local/cpanel/base/redirect.cgi
    ScriptAlias /whm /usr/local/cpanel/base/whmredirect.cgi
    ScriptAlias /securewhm /usr/local/cpanel/base/swhmredirect.cgi
    ScriptAlias /webmail /usr/local/cpanel/base/wredirect.cgi
    ScriptAliasMatch ^/webmail/(.*) /usr/local/cpanel/base/wredirect.cgi
    ScriptAliasMatch ^/kpanel/(.*) /usr/local/cpanel/base/redirect.cgi
    ScriptAlias /controlpanel /usr/local/cpanel/base/redirect.cgi
    ScriptAlias /securecontrolpanel /usr/local/cpanel/base/sredirect.cgi

    All script write error 500 when I try to do http://ip/webmail/ (example). Help me please :confused:
     
  5. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    765
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    N.W. Iowa
    what does your error log say in the /usr/local/apache/logs/error_log file ??

    Mickalo
     
  6. korsakoff

    korsakoff Member

    Joined:
    May 19, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hello,
    this is a copy of error_log:

    [Thu May 20 00:14:29 2004] [error] [client 212.40.5.172] Premature end of script headers: /usr/local/cpanel/base/wredirect.cgi
    [Thu May 20 00:19:28 2004] [error] [client 212.40.5.172] Premature end of script headers: /usr/local/cpanel/base/wredirect.cgi
    [Thu May 20 00:19:56 2004] [error] [client 212.40.5.172] Premature end of script headers: /usr/local/cpanel/base/wredirect.cgi
    [Thu May 20 00:19:56 2004] [error] [client 212.40.5.172] Premature end of script headers: /usr/local/cpanel/base/wredirect.cgi
    [Thu May 20 00:20:06 2004] [error] [client 212.40.5.172] Premature end of script headers: /usr/local/cpanel/base/wredirect.cgi
    [Thu May 20 00:20:29 2004] [error] [client 212.40.5.172] Premature end of script headers: /usr/local/cpanel/base/wredirect.cgi
    [Thu May 20 00:20:38 2004] [error] [client 212.40.5.172] Premature end of script headers: /usr/local/cpanel/base/wredirect.cgi
    [Thu May 20 00:20:39 2004] [error] [client 212.40.5.172] Premature end of script headers: /usr/local/cpanel/base/wredirect.cgi
    [Thu May 20 00:20:43 2004] [error] [client 212.40.5.172] Premature end of script headers: /usr/local/cpanel/base/wredirect.cgi
    [Thu May 20 00:22:07 2004] [error] [client 212.40.5.172] Premature end of script headers: /usr/local/cpanel/base/wredirect.cgi
    [Thu May 20 00:22:10 2004] [error] [client 212.40.5.172] Premature end of script headers: /usr/local/cpanel/base/wredirect.cgi
    [Thu May 20 00:25:16 2004] [error] [client 212.40.5.172] Premature end of script headers: /usr/local/cpanel/base/swhmredirect.cgi
     
  7. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    765
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    N.W. Iowa
    these are just simple basic perl scripts.... are they all executable and did you made some sort of changes to these??

    are you having problems with other perl scripts ??

    sound like you got some other problems too.

    Mickalo
     
  8. korsakoff

    korsakoff Member

    Joined:
    May 19, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
  9. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    765
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    N.W. Iowa
    they should be chmoded 0755(rwx+rx+rx).

    Mickalo
     
  10. korsakoff

    korsakoff Member

    Joined:
    May 19, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hello mickalo,

    root@gaia [/usr/local/cpanel/base]# chmod 0755 wredirect.cgi
    root@gaia [/usr/local/cpanel/base]# ./wredirect.cgi
    Location: http://:2095
    root@gaia [/usr/local/cpanel/base]#

    if I try: www.e-planet.ch/webmail/ you can see error 500 but if I try www.e-planet.ch:2095 all works good.

    I don't understand what's the problem.
     
  11. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    765
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    N.W. Iowa
    You might want to check your apache httpd.conf file, for the webmail ScriptAliasMatch and ScriptAlias make sure it's correct and pointing to the correct paths... this is what redirects when you enter the URL http://www.yourdomain.com/webmail the it's redirected by the wredirect.cgi script to the webmail login.

    Also check the /var/cpanel/cpanel.config and sure the
    alwaysredirecttossl=1 says 1

    You may also try a different browser... see if you get the same thing.


    Mickalo.
     
    #11 mickalo, May 20, 2004
    Last edited: May 20, 2004
  12. korsakoff

    korsakoff Member

    Joined:
    May 19, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hi,
    there is nothing to do, the problem is all time here.

    I tryed :

    Also check the /var/cpanel/cpanel.config and sure the
    alwaysredirecttossl=1 says 1

    I rebooted the server but all time the same problem.
     
Loading...

Share This Page