Permissions on apache2 directory
I didn't have permission to change things in the apache2 directory.


Because the directory is owned by root user and not the logged-in user.


  Now I cannot see any contents in finder in the apache2 directory.


Because the current permission is on apache2 directory is drw-rw-rw-, hence you cannot change (cd) into that directory, as you are missing the execute (x) permission bit. Add the execute permission to be able to change to apache2 directory. Execute the following command-line:

sudo chmod a+x /etc/apache2

To edit the httpd.conf (or any other file), use sudo, like:

sudo vim /etc/apache2/httpd.conf