Bonjour,
Depuis aujourd'hui j'ai MAMP qui ne veux plus démarrer le service apache avec la configuration sur les ports 80.
Apparemment il est déjà utilisé mais je vois pas par quoi.. je m'y connais pas vraiment à ce niveau je vous donne donc le log apache_error
[Thu Aug 31 18:12:18 2017] [notice] Digest: generating secret for digest authentication ...
[Thu Aug 31 18:12:18 2017] [notice] Digest: done
[Thu Aug 31 18:12:18 2017] [notice] Apache/2.2.31 (Unix) mod_wsgi/3.5 Python/2.7.13 PHP/7.1.1 mod_ssl/2.2.31 OpenSSL/1.0.2j DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.24.0 configured -- resuming normal operations
[Thu Aug 31 18:12:18 2017] [notice] FastCGI: process manager initialized (pid 3118)
[Thu Aug 31 18:12:49 2017] [notice] Graceful restart requested, doing restart
(48)Address already in use: make_sock: could not bind to address [::]:80
(48)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Merci d'avance pour l'aide.
Oui la c'est un Apache qui est lancer. Essaye quand même ce qui est dit la https://www.cyberciti.biz/faq/howto-macosx-starting-stopping-apache-web-server/
Est ce que tu a déja lancer d'autres logicile tel que le fameux Skype ? Celui ci occupe par defaut le port 80 (modifiable dans les options via une case à cocher ports alternatifs)
Si ce n'est pas le cas, tu peux utiliser le terminal en tapant une commande qui te donnera en résultat un liste permettant de determiner/killer le processus
# checks port 80
sudo lsof -i :80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
httpd 12649 root 5u IPv6 0xede4ca21f607010b 0t0 TCP *:http (LISTEN)
httpd 12650 _www 5u IPv6 0xede4ca21f607010b 0t0 TCP *:http (LISTEN)
httpd 12653 _www 5u IPv6 0xede4ca21f607010b 0t0 TCP *:http (LISTEN)
donc si je comprends bien faut que je check tous les PID listés ici ?
Manuels-MBP:~ deshiloh$ sudo lsof -i :80 # checks port 80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
httpd 100 root 4u IPv6 0xc8e402c0a3085911 0t0 TCP *:http (LISTEN)
httpd 346 _www 4u IPv6 0xc8e402c0a3085911 0t0 TCP *:http (LISTEN)
Google 600 deshiloh 120u IPv4 0xc8e402c0b3f6e081 0t0 TCP manuels-mbp:49677->ec2-54-235-218-133.compute-1.amazonaws.com:http (ESTABLISHED)
Google 600 deshiloh 122u IPv4 0xc8e402c0b494d789 0t0 TCP manuels-mbp:49679->ec2-54-235-218-133.compute-1.amazonaws.com:http (ESTABLISHED)
Google 600 deshiloh 125u IPv4 0xc8e402c0b4a71b69 0t0 TCP manuels-mbp:49678->ec2-54-235-218-133.compute-1.amazonaws.com:http (ESTABLISHED)
Google 600 deshiloh 127u IPv4 0xc8e402c0ab668271 0t0 TCP manuels-mbp:49680->94.31.29.55.ipyx-077437-zyo.above.net:http (CLOSE_WAIT)
Google 600 deshiloh 140u IPv4 0xc8e402c0b4a72d59 0t0 TCP manuels-mbp:49505->par21s12-in-f14.1e100.net:http (CLOSED)
Google 600 deshiloh 141u IPv4 0xc8e402c0b2618b69 0t0 TCP manuels-mbp:49506->74.125.105.87:http (CLOSED)
Non :D
Dans la liste, on voit Google c'est donc ton browser Google Chrome.
Ensuite, il y a deux httpd, tu a donc un serveur http qui occupe déja la place. Fait un :
ps u 100
ps u 346
Ca te donnera le chemin du processus de l'httpd, (logiquement c'est un apache server). Par contre je pourrais pas t'aider plus que cela je ne connais pas asser mac. Dirige toi vers le chat si tu a encore des soucis.
Manuels-MBP:~ deshiloh$ ps u 100
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
root 100 0,0 0,1 2463456 5424 ?? Ss 9:52 0:00.19 /usr/sbin/httpd -D FOREGROUND
Manuels-MBP:~ deshiloh$ ps u 346
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
_www 346 0,0 0,0 2463200 524 ?? S 9:53 0:00.00 /usr/sbin/httpd -D FOREGROUND
Effectivement