

echo "" > /usr/share/nginx/html/phpinfo.php sudo chmod 2775 /usr/share/nginxįind /usr/share/nginx -type d -exec sudo chmod 2775 \ Ĭreate a PHP file in the Nginx document root. To add group write permissions and to set the group ID on future subdirectories, change the directory permissions of /usr/share/nginx and its subdirectories. sudo chown -R ec2-user:nginx /usr/share/nginxġ1. Change the group ownership of /usr/share/nginx and its content to the nginx group. Now log out then log in back to fetch the new group and then verify your membership.ġ0. Nginx configuration file location: /etc/nginx/nf.Īdd your user (in this case, ec2-user) to the nginx group using following command. Your Default directory location: /usr/share/nginx/html

Add NGINX, PHP-FPM and Mysql service start to boot sequence sudo chkconfig nginx on Start Nginx, PHP-FPM, Mysql Services sudo service mysqld startĦ.
#Install nginx phpmyadmin ubuntu 20.04 install
Install Mysql 5.7 sudo yum -y install mysql57-server mysqlĥ. Install PHP 7.2 extensions sudo yum install php72-mcrypt php72-xml php72-mcrypt php72-zip php72-xmlrpc php72-gd php72-curl php72-pdo php72-mysqlnd php72-mbstring php72-gmp -y Install PHP-APC sudo yum install -y php-pecl-apcĤ. Install Nginx & PHP 7.2 sudo yum install nginx php72-fpm -yģ. Perform a quick software update on your instance to keep all the software packages up to date. In order to allow SSH (port 22), HTTP (port 80), and HTTPS (port 443) connections you must configured your security group. In this tutorial we are assuming that you have already launched a new instance using the Amazon Linux AMI with the help of public DNS name which is within the internet range.
