php - MacOS X Yosemite Apache localhost ERR_CONNECTION_REFUSED -


i'm trying hand @ html , php. goal create password protected site gets gif-images server , displays them in table. nothing fancy. work tried php. test locally (i don't have server anyway) set localhost described here: https://ole.michelsen.dk/blog/setup-local-web-server-apache-php-osx-yosemite.html.

everything worked well, no problems whatsoever. tried setup password protection local site. created .htaccess file , saved in site-directory content:

authtype basic authname "restricted area" authuserfile htpasswd require valid-user 

then created .htpasswd in same directory , manually inserted user/password generated here: http://www.web2generators.com/apache-tools/htpasswd-generator.

i saved both files , refreshed page. prompted enter username , password entered. since message in browser localhost refused connection "err_connection_refused".

now can't access localhost anymore. same error occurs. tried restart apache. tried restarting computer. afterwards tried go through guide again beginning. problem? there way reset apache defaults?


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -