Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Install Nginx, MariaDB and PHP centos rhel

# Ok sometimes this is a time consuming thing, first let's try:

> dnf install -v -y nginx mariadb-server php php-cli php-bcmath php-xmlrpc php-intl php-mysqli php-gd php-pdo php-posix php-json php-curl php-zip php-fpm unzip -y

# ➥If you see something like:
    #  "All matches were filtered out by exclude filtering for argument: nginx
	#  "Error: Unable to find a match: nginx
    	try:
        > vim /etc/yum.conf	 # You need to REMOVE "php", "httpd" and "nginx" from this line: "exclude=httpd php nginx.." and then save and quit (esc + :wq)
        
#ELSE:
> sudo dnf install epel-release 		# Installation of EPEL repository
> dnf module list nginx 				# Run to view the available Nginx versions after EPEL installation
> sudo dnf module enable nginx:1.18 	# Enabling the latest Nginx web server module
 	# ➥If you see something like:
    #  "Problems in request: (..)
    #  "Modular dependency problems with 
    #  "Defaults: (..) Problem: module php:7.2(...) requires module(nginx:1.14), but none of the providers can be installed"
    	try:
        > sudo dnf module reset nginx
        
> sudo dnf -y install nginx 			# Install Nginx web server
> sudo systemctl enable --now nginx 	# Starting and enabling the Nginx service daemon
> sudo systemctl status nginx 			# Checking the Nginx service status

> sudo firewall-cmd --permanent --add-service http		#  Add HTTP service permanently in the firewall
> sudo firewall-cmd --permanent --add-service https		#  Add HTTPS service permanently in the firewall
> sudo firewall-cmd --reload 							#  After allowing the service, we need to reload the firewall service daemon.

# Checking the Nginx web server:
#
# Now, you can test your Nginx web server that if it is up and running or not by accessing the public IP of your server or domain name from your web browser.
# http://domain_name_or_IP
# For Instance, if the IP address of the server is 192.xxx.xx.164. So, the link will look like http://192.xxx.xx.164
#
#
Comment

PREVIOUS NEXT
Code Example
Shell :: bashrc file location in linux 
Shell :: os environ select defaut gpu 
Shell :: fatal: index file corrupt 
Shell :: change gunicor port and to https 
Shell :: generate ssh key paitr 
Shell :: ubuntu set scale to 150 
Shell :: bash timout 
Shell :: cmd delete recursive 
Shell :: batch copy silent 
Shell :: delete all deployments kubernetes 
Shell :: check how much memory linux 
Shell :: ng g c --skipTests true 
Shell :: how to untar a tar file 
Shell :: Uninstall WPS Office from Ubuntu 
Shell :: powershell 7 install 
Shell :: get user password linux 
Shell :: vite react + eslint 
Shell :: how to uninstall programms on ubuntu 
Shell :: command to open linux home folder in windows 
Shell :: suid privilege escalation systemctl 
Shell :: settings not showing in ubuntu 
Shell :: nvidia driver ubuntu 20.04 
Shell :: install drupal using composer 
Shell :: how to remove a file from commit 
Shell :: restart cronjob 
Shell :: kubectl set context not working 
Shell :: count occurrences of word in file linux 
Shell :: Failed to fetch https://packages.sury.org/php/dists/jessie/main/binary-amd64/Packages HttpError404 
Shell :: docker container could not open port /dev/ttyUSB0 
Shell :: Create and mount the FAT & ext4 filesystems 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =