Skip to content

Instantly share code, notes, and snippets.

@BeKnowDo
Last active January 22, 2021 16:13
Show Gist options
  • Save BeKnowDo/d89453a01700fb98da682e353da40238 to your computer and use it in GitHub Desktop.
Save BeKnowDo/d89453a01700fb98da682e353da40238 to your computer and use it in GitHub Desktop.
Red Hat 8 Setup

Nginx

  • sudo dnf install nginx -y
  • sudo systemctl start nginx
  • firewall-cmd --permanent --zone=public --add-service=http
  • firewall-cmd --permanent --zone=public --add-service=https

** NOTE ** When adding NGINX entries within RHEL, apparently you MUST checkout your code into the /var/www/ directory. I will update this once I learn why NINX entries can't point outside of of this directory.

** LARAVEL SPECIFIC ** I spent almost a day trying to learn why permissions kept on getting reset after any reboots or git pulls. This is due to SELinux which is installed as part of CentOS (Red Hat Enterprise Linx). To remedy this issue run the following command: sudo semanage permissive -a httpd_t

Maria DB

  • sudo dnf install mariadb-server -y
  • sudo systemctl start mariadb
  • sudo mysql_secure_installation
  • sudo mysql

Git

sudo yum install git -y

ZSH

sudo yum install zsh -y & sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

PHP

  • sudo dnf install php-cli php-fpm php-common php-xml php-mbstring php-json php-zip php-opcache -y
  • sudo nano /etc/php-fpm.d/www.conf and change:
    • user = apache to user = nginx
    • group = apache to group = nginx
  • sudo systemctl start php-fpm
  • sudo systemctl restart nginx

Redis

  • sudo dnf install redis -y

Composer

  • sudo dnf -y install wget
  • wget https://getcomposer.org/installer -O composer-installer.php
  • sudo php composer-installer.php --filename=composer --install-dir=/usr/local/bin

ODBC

sudo yum install unixODBC -y

NetExtender Requires PPTP

sudo apt install pptp

TODO:

  • add section for lsblk and mounting drives
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment