XAMPP cannot start after configuring httpd-vhosts.conf

Source: Internet
Author: User

Apache will not start if you open the Include conf/extra/httpd-vhosts.conf

XAMPP used to install the PHP project is still very convenient, but today encountered a problem that could not start the Apache server.


XAMPP configuration site files are: httpd-vhosts.conf, the configuration format is as follows,

<virtualhost *:80>

ServerAdmin [email protected]

DocumentRoot "program with Access also path"

ServerName www.dev.com (own name)

Errorlog "Logs/dummy-host2.localhost-error_log"

Customlog "D:/xampp_log/vendorplatform.log" combined

<directory "Program with Access path" >

DirectoryIndex index.php index.htm index.shtml index.html (the file name of the access page)

Options includes FollowSymLinks execcgi

AllowOverride All

Allow from all

</Directory>

</VirtualHost>

However, I will never be able to access it after I have configured it locally.

The following error is reported:

[Apache] Error:apache shutdown unexpectedly.

[Apache] This is due to a blocked port, missing dependencies,

[Apache] improper privileges, a crash, or a shutdown by another method.

[Apache] Press the Logs button to view error Logs and check

[Apache] the Windows Event Viewer for more clues

[Apache] If You need + Help, copy and post this

[Apache] Entire Log window on the Forums

According to the online check, but also modified the port.

Modify the port operation as follows,

1, modify the following two ports

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/8C/1D/wKiom1hiNEzg3jX-AAGcorbozuA659.png-wh_500x0-wm_3 -wmp_4-s_2124410682.png "title=" 001 effect. png "alt=" wkiom1hinezg3jx-aagcorbozua659.png-wh_50 "/>

2, open the following two configuration files, the inside of the 1 of the original port all modified to 1 in the modified port

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/8C/1A/wKioL1hiNF2j3i_3AADxTU8QCNc734.png-wh_500x0-wm_3 -wmp_4-s_3151275477.png "title=" 002 effect. png "alt=" wkiol1hinf2j3i_3aadxtu8qcnc734.png-wh_50 "/>

After a successful modification, you will not be able to access the configured site. So find an online solution, will Customlog "D:/xampp_log/vendorplatform.log" combined this paragraph all deleted, so you can visit.


Xampp cannot start after configuring httpd-vhosts.conf

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.