Permission denied inside /var/www/html when creating a file

 Trying to configure my ec2 instance and then bump into this issue.

Thanks for stack overflow, all i need to do is this below
sudo chown -R $USER:$USER /var/www
Setting up web server. Note: there's a difference between where you put the -y options. In my case, it has to be yum install -y and not yum install httpd -y


sudo yum update -y

sudo yum install httpd –y

sudo systemctl start httpd

sudo systemctl enable httpd

sudo cat "<h1>hello there! </h1>" > /var/www/html/index.html


Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm