sudo dnf install nginx -ysudo systemctl start nginxfirewall-cmd --permanent --zone=public --add-service=httpfirewall-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
sudo dnf install mariadb-server -ysudo systemctl start mariadbsudo mysql_secure_installationsudo mysql
sudo yum install git -y
sudo yum install zsh -y & sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
sudo dnf install php-cli php-fpm php-common php-xml php-mbstring php-json php-zip php-opcache -ysudo nano /etc/php-fpm.d/www.confand change:user = apachetouser = nginxgroup = apachetogroup = nginx
sudo systemctl start php-fpmsudo systemctl restart nginx
sudo dnf install redis -y
sudo dnf -y install wgetwget https://getcomposer.org/installer -O composer-installer.phpsudo php composer-installer.php --filename=composer --install-dir=/usr/local/bin
sudo yum install unixODBC -y
sudo apt install pptp
- add section for lsblk and mounting drives