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

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type