What should I do if apache cannot be started after Windows 7 xampp is installed?

Source: Internet
Author: User
Tags postgresql


I started to find some methods on the website as follows:


1. Right-click "network neighbor" and choose "property (R)" from the menu )". In the "network connection" window, right-click "local connection" and choose "properties (R)" from the menu )". Go out to the "local connection properties" panel, find "Internet protocol (TCP/IP)" in "This link uses the following items", and click it. On the "Internet protocol (TCP/IP) properties" panel, click "Advanced (V. "Advanced TCP/IP settings" click "WINS" option label on the panel, remove the check box before "enable LMHOSTS query (L)", and click "OK.

2. Open "control panel", click "Windows Firewall", click the "advanced" option label, select "local connection", and click "set (T)" next to it )... "button. Find "secure Web server (HTTPS)" in the service options, select it, and click "OK".

But it still fails to start apache, and then searches

After research, it is found that apache cannot be started mainly due to several common problems, such as port conflicts, failure to connect to dynamic link libraries, etc ,,

Resolve port conflicts

General conflict: port: 80, port: 443

You can find httpd. conf under apache in the xampp installation directory, open it in notepad, and change all 80 to 574. If port 443 conflicts, change all ports 443 to 444.

Modify php. ini and remove the semicolon before extension = php_pdo_pgsql.dll and extension = php_pgsql.dll so that it supports postgreSQL,

Apache cannot be started, or it is paused and stopped, or Busy, apache service not started [-1]

Solution:

Modify environment variables, computer-> System Properties-> Advanced System Settings-> environment variables, modify Path, and add the php installation directory under xampp at the beginning, such as c: /xampp/php, separated by semicolons.
 

Restart apache, test postgreSQL, and start OK normally.


To sum up

Port 80 problems

If IIS or other programs on your machine Occupy port 80, apache cannot be started. So the first idea is to solve the port problem-you can use netstat-an to view port usage, stop the program that uses port 80, and then start the service. You can also run apache on another port, for example, on port 8080, port 80 must be used for WEB servers.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.