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"
##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 Reasons for 404 when running PHPstorm. For more information, please follow other related articles on the PHP Chinese website!