Bug on execution Docker Apache2 php (98)Address already in use: AH00072: make_sock: could not bind to address

  apache2, docker, php, windows

What is up my friends !!! i’m on an impossible mission to upload a php system with docker using apache2 on windows.

the problem is this -> even though everything is apparently correct ( because i can get to index.html and see the standard apache2 screen without problems) i can’t make apache2 run my system (index.php) the browser’s "not found" screen appears

I’ve tried several things, but the commands stop, start e restart apache2 not working…


 service apache2 restart 


There are processes named 'apache2' running which do not match your pid file which are left untouched in the name of safety, Please review the situation by hand.

i’ve try kill the process, but its looks like a damn hydra that you cut off a head and 2 more ar born in place.

[email protected]:/var/www# pidof apache2
108 107 106 105 104 103 1
[email protected]:/var/www# sudo kill -9 108 107 106 104 103 105
[email protected]:/var/www# pidof apache2
165 164 163 162 161 160 1
[email protected]:/var/www#

So if someone can help a brother in need.. I would like to thank him from my heart, I also think it would be of great value to the community because there are not many posts related.


Relevant Files

  • dir.conf
<IfModule mod_dir.c>
        DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
  • /etc/apache2/sites-enabled e /etc/apache2/sites-available
<VirtualHost *:80>
        ServerAdmin [email protected]
        DocumentRoot /var/www
        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride All
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

Source: Windows Questions