CentOS: git repository one liner OpenLiteSpeed install command

Discussion in 'OpenLiteSpeed Tips and Guides' started by eva2000, Sep 11, 2013.

  1. eva2000

    eva2000 Member

    Here's a one liner shell install command of OLS via git repository that i use for quick tests.

    Note: Git requires you that have opened port 9418 for git if you have firewall in place ;)

    echo; echo "Install OpenLiteSpeed via git:"; read -ep "Where do you want to download OpenLiteSpeed source files to ? i.e. /usr/local/src: " DIR; echo; echo "Installing yum packages required..."; echo; yum -q -y install git gcc gcc-c++ make autoconf glibc; yum -q -y install pcre-devel expat-devel openssl-devel geoip-devel zlib-devel; echo; echo "yum packages installed"; cd $DIR; git clone https://github.com/litespeedtech/openlitespeed.git; cd ${DIR}/openlitespeed; BRANCH=$(git branch -r | tail -1); git checkout -t $BRANCH;./configure; make && make install; echo; echo "Web Admin Console: https://$(uname -n):7080"; echo "Admin: admin Pass: 123456"; echo; echo "Default sample site: http://$(uname -n):8088"; echo
    Combine it with my shell script for default out of the box tweaks http://openlitespeed.com/threads/openlitespeed-server-tweaks-script.52/

    And you have a good starting point for OLS :D
    lsmichael likes this.
  2. pamamolf

    pamamolf Guest

    After that how i can install MariaDB on my Centos 64bit server so it can work together?
    Last edited by a moderator: May 5, 2014
  3. pamamolf

    pamamolf Guest

    Ok i fix it by changing this:

    cd ${DIR}/openlitespeed;


    cd ${DIR}openlitespeed;

    And now i am getting this error :

    CDPATH="${ZSH_VERSION+.}:" && cd . && aclocal-1.13
    /bin/sh: aclocal-1.13: command not found
    make: *** [aclocal.m4] Error 127
    Last edited by a moderator: May 7, 2014

Share This Page