I created a new project in PhpStorm and my all php files were running successfully. But suddenly it started showing 502 bad gateway error. I am using PhpStorm 9.0 and xampp server using port no 80 and 443. How can I fix it.
You must install php-cgi on your server.
For more information you can see this link:
http://darrendev.blogspot.com/2011/07/apache-use-both-php-module-and-php-cgi.html
localhost:63342 means it is handled by phpstorm built in server. if you want to use xampp, just open your browser and type correct URL manually.
Example:
localhost/PROJECT_NAME/path/in/the/project