Install Cloudlinux in cPanel

  • Post author:
  • Post category:cPanel

PREPARATION

  • Obtain the Cloud Linux License from manage2.cpanel.net
  • Obtain permission from the customer to reboot the server.
  •   

    In cPanel:

    /usr/local/cpanel/cpkeyclt
    /usr/local/cpanel/bin/cloudlinux_system_install -k

    ~Possible error: Might see "Yum error: Plugins are disabled".

    ~Add "plugins=1" to /etc/yum.conf and try again.
    echo "plugins=1" >> /etc/yum.conf that should do the trick

    shutdown -ar now

    ~When its back up rebuild apache.

    /usr/local/cpanel/scripts/easyapache --build

      
    3rd party license

    wget http://repo.cloudlinux.com/cloudlinux/sources/cln/cpanel2cl
    sh cpanel2cl -k $key
    ~Replace $key with your license key.
    reboot
    /scripts/easyapache --build

      

    (more…)

    Continue ReadingInstall Cloudlinux in cPanel

    mod_cloudflare and mod_cloudflare cpan

    • Post author:
    • Post category:Apache

    mod_cloudflare

    When using Cloudflare, in order to retrieve the actual visitors IP that connect to your server, you must install mod_cloudflare. Normally when using Cloudflare, all of the IP’s that connect to your web server will come from a Cloudflare IP address. mod_cloudflare is an Apache module that forces Apache to log actual visitor IP addresses instead of cloudflare server IP’s. It can be installed on servers running cPanel, using the following commands:

    cd /usr/local/src
    wget --no-check-certificate http://github.com/cloudflare/CloudFlare-Tools/raw/master/mod_cloudflare.c
    apxs -a -i -c mod_cloudflare.c
    service httpd restart
    /usr/local/cpanel/bin/apache_conf_distiller --update

    (more…)

    Continue Readingmod_cloudflare and mod_cloudflare cpan

    10 must-know Apache directives and modules

    • Post author:
    • Post category:Apache

    By Jack Wallen From techrepublic.com – April 11, 2012

    Takeaway: Apache can be extended in many ways. Here are a few key directives and modules that can help you tap into its flexibility and power.

    If you use the Apache Web server, you know how flexible it is. One of the reasons for this flexibility is the availability of the directives and modules in the Apache configuration file. There are a LOT of them. Although your needs will dictate which ones are most important, I decided to list those I’ve used the most over the years. These directives and modules are, in my opinion, the ones all Apache admins should know well and be able to implement to get the most flexibility and power from their Apache server.

    (more…)

    Continue Reading10 must-know Apache directives and modules

    9 uses for cURL worth knowing

    • Post author:
    • Post category:CLI

    From httpkit.com

    Working with HTTP from the command-line is a valuable skill for HTTP architects and API designers to have. The cURL library and curl command give you the ability to design a Request, put it on the pipe, and explore the Response. The downside to the power of curl is how much breadth its options cover. Running curl –help spits out 150 different flags and options. This article demonstrates nine basic, real-world applications of curl.

    In this tutorial we’ll use the httpkit echo service as our end point. The echo server’s Response is a JSON representation of the HTTP request it receives.

     
    (more…)

    Continue Reading9 uses for cURL worth knowing