500 server error localhost permalinks wordpress [solved]

wordpress-logo_s

set AllowOverride to All in my /etc/apache2/sites-enabled/www.example.conf file below  <Directory “/var/www”>

It was overriding the httpd.conf. Hope this helps!

from https://forums.digitalpoint.com/threads/apache-500-server-error-with-my-wordpress-on-localhost.1786841/