search

Home  >  Q&A  >  body text

phpstudy2017 apache cannot be started.

  1. The port is not occupied

1.png

## 2. I modified the default www directory,

3.httpd -t check displays the following information

TIM截图20171027221541.png

The 14th line of this configuration file is as follows:

TIM截图20171027221336.png

F:\ WWW\ is my newly set www directory

phpnoobphpnoob2574 days ago1503

reply all(6)I'll reply

  • 路过

    路过2017-10-28 17:03:20

    Is it a case problem?

    reply
    0
  • phpnoob

    .......

    phpnoob · 2017-10-29 00:13:21
  • Day

    Day2017-10-28 08:52:21

    It’s caused by you not modifying Apache’s Vhost file according to the fixed format. It is recommended to delete it and reconfigure it

    reply
    0
  • phpnoob

    phpnoob2017-10-27 22:19:48

    Looking for answers, thank you

    reply
    1
  • Day

    Obviously, CMD has prompted you that there is a problem with your Vhost file. It must be caused by incorrect format!

    Day · 2017-10-28 09:44:14
    phpnoob

    There is no problem with the format. I baked a configuration file and it was the same. Besides, the prompt said that my DocumentRoot must be a folder. This folder does exist under my f drive, so there is nothing wrong with it.

    phpnoob · 2017-10-28 12:13:56
  • Cancelreply