Home>Article>Development Tools> What to do if phpstorm form submission displays 502

What to do if phpstorm form submission displays 502

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼 Original
2019-08-08 13:48:38 4190browse

What to do if phpstorm form submission displays 502

phpstorm is a very powerful full-stack development tool, but as a newbie, I found that it cannot be used normally after installation. It also requires relevant configuration, otherwise it will appear. Web page opening error. Below I record some of the problems and solutions I encountered during use.

Related recommendations: "PhpStorm Usage Tutorial"

First of all, you can run php programs directly in phpstorm without manually starting the apache server. This is what I wrote with Debugging code provides great convenience, and there is no need to manually start the wampware related environment every time. The premise is that the php interpreter needs to be configured. If it is not configured, a prompt will pop up in the lower right corner during runtime and the interpreter needs to be configured. You can also configure it manually: Open the configuration interface in the file->settings->languages&frameworks->php directory, click the green " " button on the right, add your php program path, and select the relevant CLI interpreter, click ok to complete the configuration .

What to do if phpstorm form submission displays 502

However, it should be noted that the php file to be run needs to be placed in the root directory of the apache website. If you run a file that is not in this directory, 502 bad gateway will be displayed.

The above is the detailed content of What to do if phpstorm form submission displays 502. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn