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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Dreamweaver CS6
Visual web development tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

WebStorm Mac version
Useful JavaScript development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment
