Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Feb 2005
    Posts
    18

    Default Cpanel/WHM seems to work under FreeBSD 6.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. #2
    Member nyjimbo's Avatar
    Join Date
    Jan 2003
    Location
    New York
    Posts
    1,105

    Default

    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 ?.
    "A dog has raised it’s hind leg on the age of nevermore !"
    -- Rolf

  3. #3
    Member
    Join Date
    Feb 2004
    Posts
    53

    Default

    I hope so.

    FreeBSD 6.2 is coming out soon.

  4. #4
    Member nyjimbo's Avatar
    Join Date
    Jan 2003
    Location
    New York
    Posts
    1,105

    Default

    Quote Originally Posted by Scott Greczkows
    I hope so.

    FreeBSD 6.2 is coming out soon.
    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.
    "A dog has raised it’s hind leg on the age of nevermore !"
    -- Rolf

  5. #5
    Registered User
    Join Date
    Jan 2005
    Posts
    4

    Default 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!
    Last edited by akbardotinfo; 10-11-2006 at 09:59 AM.

Similar Threads & Tags
Similar threads

  1. freebsd & cpanel/whm
    By ourweb in forum New User Questions
    Replies: 0
    Last Post: 10-09-2007, 10:00 AM
  2. cPanel/WHM on FreeBSD
    By Sergiu Tot in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-24-2007, 10:45 AM
  3. Does cpanel work well on freebsd 5.4 64bit?
    By hostultra in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-15-2005, 10:14 PM
  4. WHM doesn't work - FreeBSD
    By VH-Robert in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-01-2003, 11:45 AM
  5. .htaccess files don't work (FreeBSD & cPanel)
    By rnh in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-04-2003, 05:51 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube