When using phpstudy, Apache cannot start and automatically closes after clicking on start.
I have searched a lot of information online, some say it's due to port occupation, some say it's due to program conflicts.
There are also suggestions that it could be an error with vhost, and indeed these factors can cause this problem.
However, the final solution was found in httpd.conf.
Go to the directory of Apache and manually start it using cmd.
Check the error file information in httpd.conf on line 223.
The file is located in Apache\conf.
There is an extra "" at the end of the path on line 223, remove it and restart Apache. Now the service can start normally.
Finally, I would like to mention that this problem often occurs due to laziness when changing the web directory.
The normal operation is to click "Open", select the path, and then apply. However, lazy people will directly modify the path in the front box and then apply. At this time, there is often a "" left at the end of the path, which results in an error.