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.

OpenVZ to LXC Conversion

Discussion in 'General Discussion' started by zefie, Apr 17, 2017.

Tags:
  1. zefie

    zefie Registered

    Joined:
    Jun 13, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Proxmox recently discontinued 3.x, forcing me to migrate over to 4.x.

    Long story short, after converting the OpenVZ cPanel VM to LXC and re-configuring it, I booted it and all of my sites returned error 500.

    I looked at the apache logs and found errors like:
    [Tue Apr 18 04:12:11.207619 2017] [cgid:error] [pid 5454:tid <tid>] [client <myip>:59504] End of script output before headers: redirect.cgi

    This error is one of the remaining errors I have, when you try to go to domain/cpanel or domain/whm. I fixed the sites by checking:

    /usr/local/cpanel/bin/rebuild_phpconf --current

    which reported all (except the default) PHP were using suphp instead of cgi.
    When I switched the default php to suphp, sites worked, but the redirection still does not.

    I believe something happened that is blocking cgi. Any ideas?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @zefie,

    Could you review our Linux Containers document and verify you followed the recommended steps?

    Thank you.
     
  3. zefie

    zefie Registered

    Joined:
    Jun 13, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks for the response. I just checked the document, I have CentOS 6.9, but am not experiencing any issues with MySQL or Dovecot, just cgi.

    Everything else on the document checks out. It is running with privileges. (Unprivileged mode unchecked)
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    We do have an internal case open (EA-5010) related to "suexec" (/usr/sbin/suexec) using file capabilities to specify setuid/setgid permissions instead of the traditional file mode bits. Could you open a support ticket using the link in my signature and reference this case number so we can verify if your system is affected by this issue?

    Thank you.
     
  5. zefie

    zefie Registered

    Joined:
    Jun 13, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I am just re-rolling a new CentOS 7 VM in KVM instead of fighting with LXC. I believe AppArmor was an issue too as it was messing up named. However, I tried putting that lxc.aa_profile var in various config locations without success. Therefore I decided for the sake of fast repair, and to hopefully prevent issues in future Proxmox forced conversions/breakage, that a KVM would be better.

    Thanks though.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @zefie,

    Let us know if you encounter any additional issues after switching to KVM.

    Thank you.
     
Loading...

Share This Page