Introduction

Pronginx is the cpanel nginx webserver for Linux web servers based .this document helping you to better use pronginx plgin for up your server performance and security.


Pronginx provides

  • Nginx Proxy Settings : Easy to use and manage nginx configuration setting

  • All Nginx Configuration : You can change all nginx configuration setting

  • Web Appliction Firewall (WAF) : Pronginx pervent your site and server from site side attack like SQL Injection,XSS and pervent from etc...

  • Nginx Firewall : Pronginx pervent your site and server from Ddos and Slowloris attack and pervent your site of security scanner

  • Multi PHP Managment : You can manage all php version in pronginx.

  • Google Page Speed : you can enable google pagespeed for any account you have

  • More pronginx features : please visit https://pronginx.com/Features

  • Requirements



    Operating system

    • CentOS 6.x
    • Centos 7.x and higher
    • CloudLinux OS 6 and 7

    Hosting Conrol Panel

    • cPanel/WHM 11.58 and higher

    Easy Apache

    • EasyApache 4 and higher

    Required browsers

    • Safari version 10 or later
    • Chrome version 39 or later
    • Firefox version 28 or later
    • Edge version 17 or later

    Ioncube

    • Ioncube should be activated in whm

    Installation Instructions


    Note

    Make sure that you have a license key. You can purchase it or get a trial license key at https://www.pronginx.com/. Finally, you will receive an email with a license key.


    Installation Pronginx


    1. Log in with root privileges to the server where Pronginx should be installed.

    2. Go to your root directory and run the commands:

    To install Pronginx proceed the following steps:

    cd /root && curl -o pronginx -L https://securedownload.pronginx.com/pronginx && chmod 0755 pronginx && sh pronginx

    OR


    cd /root
    curl -o pronginx -L https://securedownload.pronginx.com/pronginx
    chmod 0755 pronginx
    sh pronginx

    Uninstallation Pronginx

    To uninstall Pronginx, run:

    wget https://securedownload.pronginx.com/pronginxuninstaller
    chmod 0755 pronginxuninstaller
    sh pronginxuninstaller

    Upgrade

    To upgrade Pronginx, run:

    cd pronginx

    * if you have pronginx installation folder in your server.

    sh upgrade.sh

    3rdparty


    For access to pronginx agent features from command-line interface (CLI), use the following command.


    nginxctl

    Optional arguments:
    nginxctl help Returns the help message


    Basic usage:
    nginxctl [options] [command]  [parameters]

    Available commands:

    For Example:

    nginxctl restart

    nginxctl rebuildvhost domain.com

    enable Enable pronginx
    disable Disable pronginx
    status Check nginx status in your server
    restart Restart nginx
    version Check version
    build nginx Build nginx
    setupphpfpm Install multi-php fpm
    cleanfpm Clean FPM
    templaterebuild Rebuild all template
    build nginx --version x.x.x Change nginx version
    build vhosts Build vhost
    build sslcerts build ssl cerstificate
    rebuildvhost [ domain name ] Rebuild domain vhost
    rmvhost [ domain name ] Remove domain vhost
    rebuilduservhost [ cpanel user name ] Rebuild cpanel user
    rmuservhost [ cpanel user name ] Remove cpanel user vhost

    Change Nginx Version


    Pronginx install nginx 1.16.0 by defult in your server.if you want change nginx version please enter following command. pronginx download nginx from nginx.org


    nginxctl  build nginx --version x.x.x

    For example


    This command install nginx 1.17.2 in your server


    nginxctl  build nginx --version 1.17.2

    Build multi-php


    pronginx install all php version from 5.4 to 7 automatically use rpm. If you want to rebuild the php-fpm , simply run the following command.


    nginxctl  setupphpfpm

    Nginx conf directory


    Pronginx will installing nginx on /usr/local/nginx . you can see all nginx conf directory :


    Directory Comment
    /usr/local/nginx/conf/ Contains the configuration files
    /usr/local/nginx/conf/nginx.conf Nginx global configuration
    /usr/local/nginx/conf/conf.d/ Configuration files included on nginx global scope
    /usr/local/nginx/conf/vhost.d/ Virtual host configurations of domains and sub-domains
    /usr/local/nginx/conf/vhost.ssl.d/ SSL virtual host configurations of domain and sub-domains
    /usr/local/nginx/conf/ssl.cert.d/ SSL certificates location of your domain and sub-domains
    /usr/local/nginx/conf/ssl.key.d/ SSL key files links to your domains and sub-domains
    /usr/local/nginx/conf/ssl.ca.d/ CA-Bundle files of your domain and sub-domains .
    /usr/local/nginx/logs Contains the nginx server logs.

    11

    Some content.

    12

    Some content in menu 1.

    13

    Some content in menu 1.

    14

    Some content.

    15

    Some content in menu 1.

    16

    Some content in menu 1.

    17

    Some content in menu 1.

    18

    Some content.

    19

    Some content in menu 1.

    20

    Some content.

    21

    Some content in menu 1.

    22

    Some content in menu 1.

    23

    Some content.

    24

    Some content in menu 1.

    25

    Some content in menu 1.

    26

    Some content.

    27

    Some content in menu 1.

    28

    Some content.

    29

    Some content in menu 1.

    30

    Some content in menu 1.

    31

    Some content.

    32

    Some content in menu 1.

    33

    Some content in menu 1.

    34

    Some content.

    35

    Some content in menu 1.

    36

    Some content in menu 1.

    37

    Some content in menu 1.

    38

    Some content.

    39

    Some content in menu 1.

    40

    Some content in menu 1.

    41

    Some content.

    42

    Some content in menu 1.

    43

    Some content.

    45

    Some content in menu 1.

    46

    Some content.

    47

    Some content in menu 1.

    48

    Some content in menu 1.

    49

    Some content.

    50

    Some content in menu 1.

    51

    Some content.

    52

    Some content in menu 1.

    53

    Some content in menu 1.

    54

    Some content.