Win7 under the XAMPP integrated environment, the problem of Apache can not start to solve _linux

Source: Internet
Author: User
Tags postgresql
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.


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.