In general, our local PHP environment uses more phpstudy software deployment, which is much faster than our own custom deployment. We can directly deploy and install with one click and select Nginx and Apache engines. In addition, it supports multiple different PHP and other applications, which is suitable for debugging local PHP programs in WIN. However, there is a problem that phpstudy Apache cannot start.
The troubleshooting process is recorded here.
1. Check port occupancy
Let's check whether port 80 is occupied. Open a command prompt window (press Win+R and enter "cmd"), enter the command "netstat - ano" and enter. Find the process ID listening to port 80 in the returned results, and find the process in the task manager and end it.
2. Check configuration file
Open the conf directory under the PHPStudy installation directory, find the httpd.conf file, and double-click to open it. Check whether there are errors or duplicates in the file. If necessary, back up the file and restore the default value.
3. Check software operation
Open the service manager (press Win+R, enter "services. msc"), look for the "Apache 2.4" service, and check whether its status is "Started".
If it does not run, it may be a port problem or the software is not started properly.
Scan the code to follow the official account
Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge