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
sudo dnf install mariadb-server -y
sudo systemctl start mariadb
sudo mysql_secure_installation
sudo 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 -y
sudo nano /etc/php-fpm.d/www.conf
and change:user = apache
touser = nginx
group = apache
togroup = nginx
sudo systemctl start php-fpm
sudo systemctl restart nginx
sudo dnf install redis -y
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
sudo yum install unixODBC -y
sudo apt install pptp
- add section for lsblk and mounting drives