I keep getting an error when I try to save my apache2.conf file? AM I doing something wrong here?

Posted August 21, 2014 1.4k views

error writing etc apache2 apache2 conf no such file or directory

I removed this:

<DirectoryMatch ^.*/wp-admin/> 
AuthType Basic 
AuthName "Restricted Area" 
AuthUserFile /etc/apache2/.htpasswd 
Require valid-user 

Please, help?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

What is the exact command you used to edit the file? It sounds like there may have been a typo in the command. It should be:

sudo nano /etc/apache2/apache2.conf

Check out this article for all the info on configuring the WordPress one-click app: