Install apache on ubuntu subsystem under Window

$ sudo apt-get update

$ sudo apt-get install apache2

After installation run: $ sudo /etc/init.d/apache2 restart I get the error:

[core:warn] [pid 190:tid 139972936206208] (92)Protocol not available: AH00076: Failed to enable APR_TCP_DEFER_ACCEPT

Solution:

$ sudo vim /etc/apache2/apache2.conf

add at the end of the file

ServerName localhost
AcceptFilter https none

AcceptFilter http none

Save and restart, successful.



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324743092&siteId=291194637