SongShuA

SongShuA

胸中梦黄粱,手握自在心 一个充满想法的网络安全从业人员 A person with dreams in their heart and the ability to control their own destiny, who is a creative professional in the field of cybersecurity.
github

Problem with Apache not starting in phpstudy

When using phpstudy, Apache cannot start and automatically closes after clicking on start.

527146839.gif

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.

2178250370.png

Check the error file information in httpd.conf on line 223.

The file is located in Apache\conf.

571318206.png

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.

2874291778.png

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.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.