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.

Installing Cpanel on FreeBSD 6.0

Discussion in 'General Discussion' started by roman, Dec 6, 2005.

  1. roman

    roman Well-Known Member
    PartnerNOC

    Joined:
    Feb 13, 2002
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    steps I went through to get freebsd 6.0 to work:
    ----------------------------------------------------------------
    I was in a small dilemma... FreeBSD 6.0 just came out, and I needed an additional Cpanel box.
    I didn't want to Install Cpanel with FreeBSD 5.4 because I sure wouldn't be happy if Cpanel
    started supporting FreeBSD 6.0 next week.. :-/

    The process is some what annoying... Cpanel's installer does not install any of the ports
    Properly as it looks for names of files that no longer exists..

    Further more.... Cpanel itself will not run because it uses shared libraries from freebsd 5.4
    which are not included with FreeBSD 6.0..

    So what we have to do to get Cpanel working is install all the ports manually and add
    Compatibility for the FreeBSD 5.4 shared libraries.

    These are the steps I did to get it all working.



    These steps are used for all FreeBSD installations (Steps 1 and 2)
    in order to the quotas / disk usage limiting working:

    *Step 1*

    Do a basic FreeBSD installation w/ kernel sources.

    *Step 2*

    For people who prefer pico over vi do the following:

    cd /usr/ports/editors/pico
    make install


    1. add quotas into the kernel.

    #cd /usr/src/sys/i386/conf
    #cp GENERIC MAIN
    #pico or vi "MAIN"

    add:
    options QUOTA

    (Save it.)

    #config MAIN

    #cd ../compile/MAIN
    #make cleandepend
    #make depend
    #make
    #make install


    #pico or vi /etc/rc.conf
    add:
    enabled_quotas="YES"
    check_quotas="YES"
    (SAVE IT)

    #pico or vi /etc/fstab
    under options for /usr or /home (where-ever your home directory is) it should like like:
    rw,userquota,groupquota

    (SAVE IT)

    reboot

    If all goes well the new kernel should work fine and quotas are now enabled.. You can test it via
    # quota -v

    You should see something like this:

    # quota -v
    Disk quotas for user root (uid 0):
    Filesystem usage quota limit grace files quota limit grace
    / 78634 0 0 1582 0 0
    /usr 1693140 0 0 175857 0 0


    *STEP 3*

    -- Cpanel appears to have problems locating the ports, so we have to install many of
    them manually.. Also my servers recently have had problems connecting to
    ftp1.freebsd.org (on freebsd 5.4 and 6.0) ... and when the cpanel installer attempts to
    make a connection to it I get stuck so I added these lines (this force ftp1 to goto ftp2):

    In /etc/hosts
    #pico or vi /etc/hosts
    add:
    130.94.149.162 ftp1.freebsd.org ftp1.us.freebsd.org

    Here we go with the manual installation of the ports:

    ***
    I had to do the entire process manually... But guess what you are lucky..
    Here is a little script I made available that will install all of the ports needed
    automatically..

    Simply do the following if you would like to do it automatically:

    cd ~root
    mkdir cpanel
    cd cpanel
    wget "http://www.escape.com/~roman/cpanel/cpinstallports.sh"
    sh cpinstallports.sh

    **Now Skip to STEP 4**** (If you used the script)


    If you choose to do it manually (This is a long process).. Simply do everything below...


    cd /usr/ports/net/rsync
    make install

    cd /usr/ports/ftp/wget
    make install

    cd /usr/ports/devel/python
    make install

    cd /usr/ports/devel/libltdl15
    make install

    cd /usr/ports/textproc/expat2
    make install

    cd /usr/ports/devel/gmake
    make install

    cd /usr/ports/devel/pkgconfig
    make install

    cd /usr/ports/security/gngpg
    make install

    cd /usr/ports/security/openssh
    make install

    cd /usr/ports/sysutils/rdate
    make install

    cd /usr/ports/graphics/jpeg
    make install

    cd /usr/ports/shells/bash
    make install

    cd /usr/ports/ftp/ncftp2
    make install

    cd /usr/ports/print/freetype2
    make install


    cd /usr/x11-fonts/fontconfig
    make install

    cd /usr/ports/lang/tcl84
    make install


    cd /usr/ports/devel/imake
    make install

    cd /usr/ports/x11/xorg-libraries
    make install

    cd /usr/ports/x11-toolkits/tk84
    make install

    cd /usr/ports/lang/expect
    make install

    cd /usr/ports/mail/cclient
    make install

    cd /usr/ports/mail/imap-uw
    make install

    cd /usr/ports/graphics/png
    make install

    cd /usr/ports/converters/tuc
    make install

    cd /usr/ports/converters/libutf-8
    make install

    cd /usr/ports/converters/i18ntools
    make install

    cd /usr/ports/databases/mysql41-client
    make install

    cd /usr/ports/databases/mysql41-server
    make install

    cd /usr/ports/devel/ncurses
    make install

    cd /usr/ports/databases/gdbm
    make install

    cd /usr/ports/databases/db4
    make install

    cd /usr/ports/devel/patch
    make install

    cd /usr/ports/devel/m4
    make install

    cd /usr/ports/bison
    make install

    cd /usr/ports/lang/gcc28
    make install

    cd /usr/ports/devel/tdl
    make install

    cd /usr/ports/textproc/aspell
    make install

    cd /usr/ports/devel/autoconf213
    make install

    cd /usr/ports/devel/automake14
    make install

    cd /usr/ports/misc/compat5x
    make install

    cd /usr/ports/archivers/unzip
    make install

    cd /usr/ports/www/lynx
    make install

    *This adds 5.4 binary compatibility (required for cpanel)*

    cd /usr/ports/misc/compat5x
    make install

    **STEP 4**

    Now we are ready to install cpanel:

    #cd ~root
    #mkdir cpanel
    #cd cpanel
    #wget "http://layer1.cpanel.net/cpanel-universal-install.sea"
    #sh ccpanel-universal-install.sea

    NOW WAIT, Sit back and relax until it's done, the installation process takes a while..

    Everything appeared to work fine for me except for FTP... So what I did to fix the problem was run:

    # /script/ftpup --force

    ---

    Cpanel should now be installed and work perfectly.. I have not ran into any problems as of yet...

    The only issue that exists is, Cpanel will not SUPPORT running on FreeBSD 6.0 ... So until they
    officially support FreeBSD 6.0 .. Don't expect any support from them.

    If you need assistance feel free to send me a private message on this forum or you can reach
    me at the following messangers: aim: romannycny icq: 10839254 yahoo: romankazan


    Enjoy FreeBSD 6.0.. ;-)
     
  2. Kionic

    Kionic Member
    PartnerNOC

    Joined:
    Dec 7, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Wichita, KS
    Is Front Page 2003 working properly in your FreeBSD boxes, Roman?


    Thanks.
     
  3. roman

    roman Well-Known Member
    PartnerNOC

    Joined:
    Feb 13, 2002
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    I personally haven't tested Front Page recently.. However one of my customers has had frontpage issues with FreeBSD 5.4... in regards to access /etc/pwd.db .... But I do have a number of other customers using FreeBSD w/ their cpanel installations who have not mentioned any issues to me with frontpage...some of them are hosting companies.... As soon as I have time I'll run some tests myself... and let you know the outcome..
     
  4. lagoth

    lagoth Member

    Joined:
    Apr 5, 2003
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    This is great now we can try 6.0!

    By the way, I also have problems with frontpage on BSD. I have a ticket in and still no reply.

    It does seem OWSADM.EXE does not have permissions to read /etc/spwd.db if i change /etc/spwd.db to chmod 604 it works fine!

    owsadm seems to not be excuting with full permissions as it should.

    Well would be nice to know if it works on 6.0
     
  5. Kionic

    Kionic Member
    PartnerNOC

    Joined:
    Dec 7, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Wichita, KS
    That is good, lagoth. FP doesn't work at all in our BSD boxes unless httpd.conf has 604 or above.

    Maybe when Roman has the time, he can let us know how things go :)
     
  6. roman

    roman Well-Known Member
    PartnerNOC

    Joined:
    Feb 13, 2002
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    There does appear to be an issue with frontpage.. The issue exists with all freebsd servers as far as I am aware.. I tested it on freebsd 5.4 and 6.0...

    When installing frontpage extensions it can not find the username that cpanel is installing the extensions for..... since it does not have access to spwd.db (which is root readable only) ... However changing the permissions to world readable for spwd.db resolves the issue, but it is not a solution since it would be a very bad idea to have spwd.db world readable...as it would allow anyway access to the encrypted version of the passwords and any password cracker can be used to run a dictionary against all the accounts..


    Hopefully Cpanel will have this resolves asap... in the mean time I am working on a workaround (if possible) ....
     
  7. samuel82

    samuel82 Registered

    Joined:
    Dec 12, 2005
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    connetion faiiled

    I'm Sorry if my english not good.


    I have been finished install cpanel in my freeBSD 6 server.
    But, when being opened by me http://web/cpanel went out information

    ERROR
    The
    requested URL could the note be retrieved
    While trying to retrieve the URL: http://web:2086/

    what I must be doing ??
     
  8. hexstar

    hexstar Active Member

    Joined:
    Jun 23, 2004
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Internet
    make sure that the firewall running on your server has that port open and if you are using a router for your server be sure that the router has that port open and is set to forward requests for the port to your server, if that's all set and you still have an issue make sure cpanel is running
     
  9. devnu11

    devnu11 Registered

    Joined:
    Jan 3, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I am on my third install of FreeBSD 6 and cpanel and I received the samer error as Samuel82. It's not looking good. I have done the release install of 6.0 and cvsup'ed to stable. Has anyone found a work around for this or have any insight as to what the problem is? (other than 6.0 is not supported :P)
     
  10. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    Check www.cpanel.net list of supported OS. FreeBSD 6.x is not supported yet.
     
  11. roman

    roman Well-Known Member
    PartnerNOC

    Joined:
    Feb 13, 2002
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    I have cpanel working fine with v6.0 for a little over a month now.. without any issues.. The server's uptime is still ticking since it was first put up..

    1:21PM up 34 days, 20:15, 1 user, load averages: 0.14, 0.03, 0.00


    Did you run the script that I provided in this post? That should install everything you need to get freebsd 6.0 working.. You may be missing the compat port..
     
  12. evilrabbi

    evilrabbi Registered

    Joined:
    Apr 13, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    a small typo

    You wrote a very good tutorial =). I'm new to cpanel and I love freebsd so before embarking on this journy blind I decied to look to see if anyone had done it first and you did an excellent job from what I can tell from reading this. I only found one typo.

    enabled_quotas="YES"

    shouldn't that be enable_quotas="YES" ?

    any how cheers and good job.

    btw why does cpanel require X11?
     
    #12 evilrabbi, Apr 25, 2006
    Last edited: Apr 25, 2006
  13. jackie46

    jackie46 BANNED

    Joined:
    Jul 25, 2005
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    0
    No wonder i had so many problems getting quota to work. Thanks for pointing that out.
     
  14. Ophelus

    Ophelus Registered

    Joined:
    Nov 23, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Any chance your going to write a tutorial for 6.1?

    I was trying your steps on 6.1 but my kernel had a compile error and that be where about I got stuck..
     
  15. Espinha

    Espinha Registered

    Joined:
    Jun 21, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I had the exact same problem as you, if you try to do /scripts/upcp --force you'll notice that some steps fail due to the script not being able to find some files it needs.

    Create this symlinks and do again /scripts/upcp --force, should work after it:
    Code:
    ln -s /usr/local/lib/compat/libc_r.so.5 /usr/lib/libc_r.so.4
    ln -s /usr/lib/libc_r.so.5 /usr/lib/libc_r.so.4
    ln -s /usr/local/lib/compat/libc.so.5 /usr/lib/libc.so.4
    Good luck ;)
     
  16. mrcpu

    mrcpu Member

    Joined:
    Feb 7, 2005
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Install the compat5x and compat4x packages. The symlinks are unnecessary.

    Make sure you have the COMPAT stuff configured in your kernel.
     
Loading...

Share This Page