Join the community today
Become a Member

Install Centmin Mod LEMP stack via Mirror

Discussion in 'Centmin Mod News' started by eva2000, Mar 9, 2016.

Thread Status:
Not open for further replies.
  1. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    10:01 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+

    China Great Firewall Blocks

    Centmin Mod LEMP stack's official code is hosted on it's Github Repo at However, for some folks in China, is blocked by the Chinese governments firewall and inaccessible [wikipedia]. So alternatively you can use Centmin Mod's Repo at which is outlined at Centmin Mod Git Repository Online Status.

    Not 100% Perfect

    Unfortunately, while Chinese folks can download Centmin Mod LEMP code itself from alternative mirror repo. The actual install script still relies on downloading and calling 3rd party source tarball files from various repositories which don't have an alternative mirror. So for Chinese folks running initial install will break as they won't be able to download the components.

    On my to do list is to work on a solution for this in the future. For now the below instructions are for folks who can access and if they want to test out initial installs using the mirror instead of official repo.

    Update: I've started the enormous task of creating a Gitlab based Git mirror repository for every repository that Centmin Mod relies on to install it's LEMP stack environment. I've created all the Gitlab Git mirrors under a Gitlab group at Currently, I have mirrored around 61+ Github repos to the Gitlab Group. These Gitlab mirrors are auto updated from the Github original repo every 60 minutes. Once I have all Github repositories mirrored to Gitlab Group, I'll have to look into how to best utilise these mirrors in Centmin Mod.

    Chinese firewall test for vs

    You can read up on more details at DNS Cache Poisoning in the People's Republic of China - Research -

    Centmin Mod Mirror

    The Centmin Mod Repo mirror is an exact mirror of the official Centmin Mod Repo down to the install instructions which assume usage not usage. So is using mirror fully requires slightly different command steps for install. These steps are outlined below.

    I've also started a Gitlab Group to mirror all the 3rd party Github repos that Centmin Mod downloads from. So far 61+ Github repos have been mirrored under the Gitlab Group at There maybe more Github repos I have yet to mirror.

    Initial Install of Centmin Mod 123.09beta01

    I will use Centmin Mod 123.09beta01 branch as an example as it's soon to be stable so best to test with the beta for newer improved features. The initial install for Centmin Mod LEMP stack using mirror is best done using the curl one liner which can be accessed directly:
    Code (Text):
    curl -O && chmod 0700 && bash

    or via version on site
    Code (Text):
    curl -O && chmod 0700 && bash Mirrors

    Looks like and are blocked from China too ! Possibly due to Route53 GeoDNS and that test site reporting unexpected DNS A record IP. So problemn is with tool itself falsely detects it as DNS poisoning. But I have a 3rd mirror domain for which is not blocked :)
    Last edited: Mar 12, 2016
Thread Status:
Not open for further replies.