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/WHM seems to work under FreeBSD 6.1

Discussion in 'General Discussion' started by mrcpu, Jun 23, 2006.

  1. mrcpu

    mrcpu Member

    Joined:
    Feb 7, 2005
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    I have a need to run cpanel under FreeBSD 6.x. Cpanel support doesn't show it QA'd under that version, and there is a bugzilla report showing it not running.

    However, with a minor bit of monkeying around, I seem to have it up and running.

    I do not recall all the steps, but in essence:

    Fresh install of FreeBSD 6.1. Sup the ports (tag=.) and put them in /usr/ports2. (Cpanel will
    overwrite, and you need the 6.x/current version of ports for a couple things.

    Go to your ports2 directory, and install openssl, portupgrade, gdbm (W/o compatibility headers), and wget. symlink /usr/local/bin/wget to /usr/bin/wget as there are a few
    hardcoded paths in the install system, and 6.x doesn't include wget anymore. Install
    compat5x and compat4x, and make sure your kernel config has the COMPAT flags
    for FreeBSD 4 and 5, as well as QUOTA support. Install perl 5.8.8 from ports2 as well.

    After this is done, snag the latest installer, and run it. IIRC, it almost all installs,
    except the stunnel stuff. Login to WHM under normal http on 2086, configure cpanle
    to use the CURRENT release, and disable port updates.

    Then run /scripts/upcp --force and I believe after that, kyou will have everything.

    Add the necessary _enable flags to /etc/rc.conf, reboot, and voila.

    I had to do a little monkeying with the startup order, to get it to start mysql before exim but I believe that's common under all the FreeBSD releases. Wish they'd use rcorder...

    I've installed a couple test domains, everything seems to be working. Only oddity I've noticed is the IP deny manager shows a bungled perl ref when there are are no IP's being
    blocked, but when you add an IP, it DTRT.

    IF anybody tries it let me know. I am off and on, or email me directly, and I"ll see what I can do...
     
  2. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    I've said it several times before and will say it again, I am very concerned about the lack of 6.x support of Freebsd.

    Does anyone know if they will ever support that branch ?.
     
  3. Scott Greczkows

    Scott Greczkows Well-Known Member

    Joined:
    Feb 5, 2004
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    I hope so.

    FreeBSD 6.2 is coming out soon. :)
     
  4. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    As I noted in a different thread I am convinced that they are slowly abandoning support for freebsd. Nobody has stepped up to deny that and nothing from the 6.x branch or the last release of the 5.x branch is being supported.
     
  5. akbardotinfo

    akbardotinfo Member

    Joined:
    Jan 3, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    so far so good, just a little bit

    Hi, I'm using freebsd 6.1 as production as well with cpanel. I'm not moving the /usr/ports, just install the cpanel using 'latest', so far so good, just like you said that compat4x and 5x should be enable on rc.conf (after reinstall kernel)
    jailshell enable as well, but I just found out, when we type 'df' (after several user ssh to the server using jailshell) the df show just like these:

    Filesystem 1K-blocks Used Avail Capacity Mounted on
    /dev/da0s1a 507630 90136 376884 19% /
    devfs 1 1 0 100% /dev
    /dev/da0s1h 95496146 7016246 80840210 8% /home
    /dev/da0s1f 1012974 112 931826 0% /tmp
    /dev/da0s1d 14874478 4705466 8979054 34% /usr
    /dev/da0s1e 19834638 108942 18138926 1% /var
    /dev/da0s1g 2971278 55290 2678286 2% /var/log
    devfs 1 1 0 100% /var/named/dev
    procfs 4 4 0 100% /proc
    /home/idata 95496146 7016246 80840210 8% idata
    /libexec 507630 90136 376884 19% libexec
    /lib 507630 90136 376884 19% lib
    /usr/lib 14874478 4705466 8979054 34% usr/lib
    /usr/sbin 14874478 4705466 8979054 34% usr/sbin
    /usr/share 14874478 4705466 8979054 34% usr/share
    /usr/bin 14874478 4705466 8979054 34% usr/bin
    /usr/man 14874478 4705466 8979054 34% usr/man
    /usr/X11R6 14874478 4705466 8979054 34% usr/X11R6
    /usr/libexec 14874478 4705466 8979054 34% usr/libexec
    /usr/local/bin 14874478 4705466 8979054 34% usr/local/bin
    /usr/local/lib 14874478 4705466 8979054 34% usr/local/lib
    /var/spool 19834638 108942 18138926 1% var/spool
    /var/lib 19834638 108942 18138926 1% var/lib
    /var/run 19834638 108942 18138926 1% var/run
    /var/log 2971278 55290 2678286 2% var/log
    /home/oolazy 95496146 7016246 80840210 8% oolazy
    /tmp 1012974 112 931826 0% tmp
    /dev 1 1 0 100% dev
    /bin 507630 90136 376884 19% bin
    /proc 4 4 0 100% proc


    but when we reboot the machine, the df runs normal again(until user ssh to server) (when user using jail shell at the first time this message show:stat() on unopened filehandle _ at /usr/local/cpanel/bin/setupvirtfs line 89)

    that's ok actually (there's no load or disk space effect) just curious :)

    Thanks!
     
    #5 akbardotinfo, Oct 11, 2006
    Last edited: Oct 11, 2006
Loading...

Share This Page