I've been using PhpStorm only for client side development until now, now I need php and can't get this set up.
I have apache set up locally and php tested and working. I changed apache config to point to my PhpStorm project folder as server root.
I added some php code to my .html files, and changed the extension to .php,
However now the "preview in browser" has been disabled in the menu, and I can't see my php pages.
I tried setting up a run configuration, however for "PHP Web Application" it needs a server which I don't have,
I tried the "PHP Built-in Web Server" but it gives me this error "Failed to listen on localhost:80 (reason: An attempt was made to access a socket in a way forbidden by its access permissions."
So how am I supposed to get this working, any help is greatly appreciated