Home >Development Tools >phpstorm >What to do if phpstorm form submission displays 404
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, give it a name, type Select inplace (meaning local debugging), and then set the web sever root url to: http://localhost.
Related recommendations: "PhpStorm Usage Tutorial"
##Fill in the localpath under the mappings tab, which is the root directory of your apache website . 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 What to do if phpstorm form submission displays 404. For more information, please follow other related articles on the PHP Chinese website!