how to activate apache2 as localhost?
i am on an iMac 21,5 of mid 2011; Mem 4G, 1333 MHz, DDR3 - OS X El Capitan
I have a website in HTML/CSS where I want to integrate PHP-Scripts. To test this I want to use apache2 as localhost.
But I cannot connect to it. It seems there have to be made certain adjustments in the httpd.conf file, and I got as far as to: sudo nano etc/apache2/httpd.conf on the terminal-app. But from there I got lost. I am a beginner at this and I would appreciate if someone could tell me what to do in as simple as possible a language. Thanks a lot!
iMac (21.5-inch Mid 2011), OSX 10.11.6