Explore Courses Blog Tutorials Interview Questions
0 votes
in AWS by (12.9k points)

I am new on AMAZON EC2 Server, recently I have Installed PHP and MySQL and now I want to update file /etc/httpd/conf/httpd.conf

but the problem is, when I am going to update it, it display error like - Permission denied. What is the best way to update it?

1 Answer

0 votes
by (18.2k points)

You will have to change the file as root user. Here's how you can do it:

sudo nano /etc/httpd/conf/httpd.conf

Edit the file and to save the edits use ctrl+o and press enter.

After editing your httpd.conf file, restart your httpd service, for the changes to take effect.

Related questions

0 votes
1 answer

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

30.5k questions

32.5k answers


108k users

Browse Categories