PHP stops working after creating .htaccess file

Hi guys,

I'm running Apache + PHP locally as a testing server. The php parsed fine, but when I created an .htaccess file it stopped working (now the browser asks if I'd like to save or open the php file)

.htaccess content is:

AuthName "test server"
AuthType Basic
AuthUserFile /var/www/html/.htpasswd

require valid-user

Any help much appreciated!

Maqueo

 

 

 

 

Top