dune73 / test-4

2 stars 4 forks source link

apachex has problems with code in tutorial 3 #87

Open studersi opened 6 years ago

studersi commented 6 years ago

For some reason apachex doesn't kill all apache processes when using the configuration file proposed in Tutorial 3. This prevents it from starting a new apache process using the same port.

(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down

Note that the PID File has to be configured in the config file (which is not the case for the code in this tutorial) for apachex to work at all. This is a bug that is addressed in PR #75 commit https://github.com/dune73/test-4/pull/75/commits/7cf857554bd444a4b56f8a2a7e425ca69019eed5.

dune73 commented 6 years ago

Not putting the PID into the config is clearly a bug in the tutorial. Would not fixing said bug make this problem go away?

studersi commented 6 years ago

No, the problem does not go away. I'll create a PR for tutorial 3 though, to add the PidFile directive.