PhpStorm:参数1中出错,char 2:未找到选项S.

So PHPstorm is running the PHP code fine in its console when I click run; that's great but I want to see it in the browser.

So, I created a Built in Server inside project.

A screenshot of error and configuration

Now, when I clicked on Run -> Run Project, I'm getting error as:

"Error in argument 1, char 2: option not found S"

Help.

I see that you have pointed your PHP Interpreter to php-cgi while it should be just php...

php-cgi does not support -S option -- that's exactly what message says. You can verify that with php-cgi -h command (and compare to php -h output).