Home > Article > Backend Development > php cannot start normally
What should I do if php cannot start normally?
1. Port conflict:
Another server occupies port 80 (such as IIs server or tomcat). Because the default port is 80, this problem will occur.
I checked, installed the IIs server, started it, and then stopped the service, but still couldn't start apache.
I see that some people say that other software industries may occupy this port. Then, enter the command in the cmd command line: netstat -na;
Check, no other software is occupying it.
2. Check the PHP manual and find a sentence
"You can choose other paths but it is best not to use paths with spaces in the middle (for example: C:\Program Files\PHP is not suitable." OK), some web servers will crash if you do this."
My php files are placed under D:\Program Files\PHP. So that might be the problem.
So, modify the path to D:\php.
Restart apache successfully.
For more PHP related knowledge, please visit PHP Chinese website!
The above is the detailed content of php cannot start normally. For more information, please follow other related articles on the PHP Chinese website!