I am new on AMAZON EC2 Server, recently I have Installed PHP and MySQL and now I want to update file
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?
You have to change the file as root user. Do this:
sudo nano /etc/httpd/conf/httpd.conf
Make your changes and save with ctrl + O, Enter. Done.
I have found solution and its working…
$ sudo nano /etc/httpd/conf/httpd.conf
It would be prompting you a alert, that you can duplicate it. So
- So duplicate it, store it on desktop with same name
- Edit it for your use(remove comment ‘#’)
- Save it
- Now replace the original file with this one
- it’ll prompt for your password, provide that
Now all updates you did are saved in httpd.conf