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. 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.
Originally Answered: How can I edit a file on EC2 directly from my localhost? On your local-machine, you can mount the EC2 directory using sshfs (or even NFS if you are ready to setup the exports) and edit the required file.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With