Home >Backend Development >PHP Problem >php cannot start normally

php cannot start normally

藏色散人
藏色散人Original
2019-10-10 10:52:244495browse

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!

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