I recently started to learn PHP, but after installing PHP 5 and Apache 2.2, the service cannot survive. No way, I can only view error. log, and the online back and forth to find the cause, but fortunately the problem was solved one by one, but the last problem was paid
I have been using it for a long time, so it is necessary to share it for your reference.
The last question is (the error. Log prompt): logs/httpd. PID overwritten -- unclean shutdown of previous Apache run?
I thought it was a problem with httpd. conf. I changed it and found various methods from the Internet, and re-installed PHP and Apache n times, which has never been solved. Fortunately, I got some inspiration when I finally read a post from a foreign technical website. After a long time, I found the hidden danger that I had buried when I installed PHP.
My solution is to note all extension modules in PHP. ini at the end of PHP. ini. Because I am using InstallationProgramFor installed PHP, you can also choose not to install extension modules during installation. because I don't know why every extension modules is used, I just noted it all. You can also noted it as needed :).
There may be many reasons for this problem. I used this method to solve it. If you encounter such a problem, try it.