2

I'm trying upload the edited apache2.conf but getting File Permission Denied Error.

Status: Starting upload of O:\Users\Circle Radius\SRPL\apache2.conf
Command:    cd "/etc/apache2"
Response:   New directory is: "/etc/apache2"
Command:    put "O:\Users\Circle Radius\SRPL\apache2.conf" "apache2.conf"
Error:  /etc/apache2/apache2.conf: open for write: permission denied
Error:  File transfer failed
d a i s y
  • 5,551
Arpit Mittal
  • 29
  • 2
  • 2
  • 6

2 Answers2

3

Based on the communication in comments, it is visible you use account which do not have proper permissions to write in /etc

The better and more secure way to accomplish your task is:

  1. Upload the file (via ordinary user) in /var/tmp
  2. Login to the terminal
  3. Become root: sudo su -
  4. Make a backup of the original file:

    cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf_original
    
  5. Copy the new file:

    cp /var/tmp/apache2.conf /etc/apache2/apache2.conf
    
  6. Restart apache

d a i s y
  • 5,551
Romeo Ninov
  • 709
  • 7
  • 13
0

Login to the terminal Become root: sudo su -

Make a backup of the original file:

cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf_original

Copy the new file:

cp /var/tmp/apache2.conf /etc/apache2/apache2.conf

Restart apache

<Directory /var/www/html/>
   Options FollowSymLinks
   AllowOverride All
</Directory>
vanadium
  • 97,564