Home  >  Article  >  Development Tools  >  Reasons for 404 when running PHPstorm

Reasons for 404 when running PHPstorm

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-08-08 14:23:1416715browse

Reasons for 404 when running PHPstorm

When running the relevant form submission or php page jump, 404 not found will be prompted, that is, the server cannot be found. This is because the phpstorm page runs under localhost:63342 port by default, and our apache server generally defaults to port 80, so when submitting the form to the server, it will not find the relevant php program, although your path is correct. Therefore, you need to configure the server environment of phpstorm:

In the file->settings->build, execution, deployment->Deployment page column, select the green " " button in the upper left corner to create a new one. For name and type, select inplace (meaning local debugging), and then set the web sever root url to: http://localhost.

Related recommendations: "PhpStorm Usage Tutorial"

Reasons for 404 when running PHPstorm

##Fill in the localpath under the mappings tab, which is the root directory of your apache website .

Reasons for 404 when running PHPstorm

Click ok to complete the configuration, so that after you click run, the page will run under port 80. At this time, submission or jump will not display 404 not found.

The above is the detailed content of Reasons for 404 when running PHPstorm. 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