I am using the win7 system installed at the same time is a package of software xampp, but after the installation of good xampp my Apache can not start, and then found a lot of ways to share the following.
I started looking for some ways to do the following on the website
1 Right click on "My Network Places" and choose "Properties (R)" on the menu. Out of the Network Connections window, right-click on Local Area Connection, menu Midpoint property (R). Out of the Local Area Connection properties panel, found in this link using the following items: Internet protocol (TCP/IP), and click it. On the Internet Protocol (TCP/IP) properties panel that pops up, click the Advanced (V) ... button. On the Advanced TCP/IP Settings panel, click the WINS tab, and remove the check in front of the Enable LMHOSTS query (L), and click OK.
2 Open "Control Panel", click "Windows Firewall", click "Advanced" tab, select "Local Connection" and click Next to "Set (T) ..." button. Locate secure Web Server (HTTPS) in the service option and tick it up, click OK
But still no Apache started or failed, and then search
After study, found that Apache can not start a few common problems, such as port conflicts, unable to connect to the dynamic link library, etc.,
Resolving port conflicts
General conflict: port:80,port:443
You can find the httpd.conf under Apache in the XAMPP installation directory, open with Notepad, and change all 80 to 574. If port 443 also conflicts, change all 443 to 444.
After you modify the php.ini to remove the semicolon before Extension=php_pdo_pgsql.dll, Extension=php_pgsql.dll to support PostgreSQL,
Apache cannot start, or flash and stop, or busy, Apache service not started [-1]
Solution:
Modify environment variables, computer-> System Properties-> advanced system settings-> environment variables, modify path, add xampp to the front of the installation directory of PHP, such as c:/xampp/php, separated by semicolons.
Reboot Apache, test PostgreSQL, start OK normally.
To sum up
80 Port Issue
If IIS or other programs on your machine are using 80 ports, then Apache will not start. So the first idea is to solve the port problem--you can use Netstat-an to view the port usage, stop using the 80 port program, and then start the service, or you can have Apache run on another port, such as 8080, and if it's a Web server, you have to use port 80.