Public Repository

Last pushed: 3 years ago
Short Description
fedora21 + mainline(nginx) + php(remi)
Full Description

Nginx(main-line), PHP-FPM, SSHD, SUPERVISORD

Additional repositories used/installed: nginx, remi, rpmfusion-free/non-free

echo "Adding repos: REMI, rpmfusion (free, non free)"

yum-config-manager, sudo, ps-tools

yum install -y yum-utils psmisc sudo

echo system usability and basic packages

yum install -y GeoIP # 44MB

yum install -y -q --nogpgcheck net-tools curl colordiff tmux unzip unrar pigz htop bash-completion vim-common vim-enhanced mc lbzip2 xz wget
yum install -y -q --nogpgcheck screen htop bc hostname fish bind-utils rsync git

manuals: comment to save some space

yum install -y -q man-db

fix missing locale

yum reinstall -y glibc-common

echo OPENSSH server
yum install -y -q openssh openssh-clients openssh-server
/usr/bin/ssh-keygen -A


yum install -y supervisor
cp /root/install/sshd-nginx-php.ini /etc/supervisord.d/sshd-nginx-php.ini

nginx from CentOS 7

cp /root/install/nginx.repo /etc/yum.repos.d/
yum install -y nginx

PHP Core + must have libs

yum install -y -q php php-fpm php-mcrypt php-mbstring php-pecl-apcu php-opcache php-pecl-igbinary php-pecl-jsonc

extra libs

yum install -y -q php-pecl-xdebug php-xml php-pear php-gd

php connectivity

yum install -y -q php-mysqlnd php-pdo php-pecl-mongo php-pecl-memcached php-pecl-gearman php-pecl-redis

echo System Tuning

allow sudo w/o term - always use public keys

perl -pi -e 's/Defaults requiretty/#Defaults requiretty/' /etc/sudoers # F21 have sane defaults

perl -pi -e 's/^%wheel\s+ALL=(ALL)\s+ALL$/#%wheel ALL=(ALL) ALL/' /etc/sudoers

wheel ~= root

perl -pi -e 's/# %wheel\s+ALL=(ALL)\s+NOPASSWD: ALL$/%wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers

echo Cleaning up
yum clean all

Docker Pull Command