

This is because the phpstorm page runs under localhost: 63342 by default, and our apache server generally defaults to port 80, so it will not find the relevant php program when submitting the form to the server, even though your path is correct. Secondly, when running related form submission or php page jump, it will prompt 404 not found, that is, the server can not be found.

If you run a file that is not in this directory, it will display 502 bad gateway. However, it should be noted that the running php file needs to be placed in the root directory of the apache website. You can also manually configure it yourself: open the configuration interface in the file->settings->languages&frameworks->php directory, and the green "+" button on the right, add your php program path, and select the relevant CLI interpreter, click ok to complete the configuration If there is no configuration, a prompt will pop up in the lower right corner when running, and the interpreter interpreter needs to be configured.

The premise is that the php interpreter needs to be configured. The following records some of the problems and solutions I encountered in use.įirst of all, in phpstorm, you can directly run the php program without manually starting the apache server, which provides a lot of convenience for me to write and debug code, without manually starting the wampware related environment every time. Phpstorm is a very powerful full-stack development tool, but as a newcomer, I found that it can not be used normally after installation, and related configuration is required, otherwise a webpage opening error will occur.
