0 votes
1 view
in AWS by (8.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.5k 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.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !