Setting up new video streaming servers

Discussion in 'Server Management' started by MultiBam, Apr 16, 2015.

  1. MultiBam

    MultiBam Administrator Staff Member

    Set swap to 8000 MB and / to the rest of the disks. Use raid 1.

    Start by changing root password:


    CentOS 7/6.6/5.11 and Red Hat (RHEL) 7/6.6/5.11 Remi repository

    ## Remi Dependency on CentOS 6 and Red Hat (RHEL) 6 ##
    rpm -Uvh
    ## CentOS 6 and Red Hat (RHEL) 6 ##
    rpm -Uvh

    Create file /etc/yum.repos.d/nginx.repo and add following content to repo file:

    name=nginx repo

    Install Nginx, PHP 5.6.6 and PHP-FPM

    yum install php
    yum --enablerepo=remi,remi-php56 install nginx php-fpm php-common

    Install PHP 5.6.6 modules

    yum --enablerepo=remi,remi-php56 install php-opcache php-pecl-apcu php-cli php-pear php-pdo php-mysqlnd php-pgsql php-pecl-mongo php-pecl-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml

    Start Nginx

    service nginx start ## use restart after update

    Start PHP-FPM

    service php-fpm start ## use restart after update

    Autostart Nginx and PHP-FPM on boot

    chkconfig --add php-fpm

    chkconfig --add nginx
    chkconfig --levels 235 nginx on

    chown apache:apache /home/video11/remote_control.php

    vi /etc/nginx/nginx.conf

    vi /etc/nginx/conf.d/default.conf

    adduser video11
    passwd video11

    chown video12:apache video12

    chown -R video11:video11 /home/video11

    yum install pure-ftpd

    chkconfig --levels 235 pure-ftpd on
    chkconfig pure-ftpd on

    chkconfig pure-ftpd on

    vi /etc/pure-ftpd/pure-ftpd.conf

    pure-pw useradd video11 -u video11 -g video11 -d /home/video11

    service pure-ftpd restart

    pure-pw mkdb

    update system:

    yum update

    add domain to
    /etc/hosts localhost

    yum remove nginx

    Last edited: Mar 19, 2016

Share This Page