While I upgrade using cli, “sudo apt-get update && apt-get upgrade” asked me about configuration file I use [Y], then all websites has Server Error, Cannot start Apache with Ngnix at same time, Apache was stopped then I restarting the sever, right now Ngnix is stopped and Apache is working, any help please.
Configuration file '/etc/apache2/apache2.conf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** apache2.conf (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/apache2/apache2.conf ...
Installing new version of config file /etc/apache2/conf-available/charset.conf ...
Installing new version of config file /etc/apache2/conf-available/localized-error-pages.conf ...
Installing new version of config file /etc/apache2/conf-available/other-vhosts-access-log.conf ...
Installing new version of config file /etc/apache2/conf-available/security.conf ...
Installing new version of config file /etc/apache2/conf-available/serve-cgi-bin.conf ...
Installing new version of config file /etc/apache2/mods-available/actions.conf ...
Installing new version of config file /etc/apache2/mods-available/alias.conf ...
Installing new version of config file /etc/apache2/mods-available/autoindex.conf ...
Installing new version of config file /etc/apache2/mods-available/cache_disk.conf ...
Installing new version of config file /etc/apache2/mods-available/cgid.conf ...
Installing new version of config file /etc/apache2/mods-available/dav_fs.conf ...
Installing new version of config file /etc/apache2/mods-available/deflate.conf ...
Installing new version of config file /etc/apache2/mods-available/dir.conf ...
Installing new version of config file /etc/apache2/mods-available/http2.conf ...
Installing new version of config file /etc/apache2/mods-available/info.conf ...
Installing new version of config file /etc/apache2/mods-available/ldap.conf ...
Installing new version of config file /etc/apache2/mods-available/mime.conf ...
Installing new version of config file /etc/apache2/mods-available/mime_magic.conf ...
Installing new version of config file /etc/apache2/mods-available/mpm_event.conf ...
Installing new version of config file /etc/apache2/mods-available/mpm_prefork.conf ...
Installing new version of config file /etc/apache2/mods-available/mpm_worker.conf ...
Installing new version of config file /etc/apache2/mods-available/negotiation.conf ...
Installing new version of config file /etc/apache2/mods-available/proxy.conf ...
Installing new version of config file /etc/apache2/mods-available/proxy_balancer.conf ...
Installing new version of config file /etc/apache2/mods-available/proxy_ftp.conf ...
Installing new version of config file /etc/apache2/mods-available/proxy_html.conf ...
Installing new version of config file /etc/apache2/mods-available/reqtimeout.conf ...
Installing new version of config file /etc/apache2/mods-available/setenvif.conf ...
Installing new version of config file /etc/apache2/mods-available/ssl.conf ...
Installing new version of config file /etc/apache2/mods-available/status.conf ...
Installing new version of config file /etc/apache2/mods-available/userdir.conf ...
Configuration file '/etc/apache2/ports.conf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** ports.conf (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/apache2/ports.conf ...
Installing new version of config file /etc/apache2/sites-available/000-default.conf ...
Installing new version of config file /etc/apache2/sites-available/default-ssl.conf ...
Installing new version of config file /etc/init.d/apache2 ...
Configuration file '/etc/logrotate.d/apache2'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** apache2 (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/logrotate.d/apache2 ...
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.
invoke-rc.d: initscript apache2, action "restart" failed.
× apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2023-02-11 21:49:43 UTC; 9ms ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 3073360 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
CPU: 17ms
Feb 11 21:49:43 hcp.albusma.com apachectl[3073363]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using hcp.albusma.com. Set the 'ServerName' directive globally to suppress this message
Feb 11 21:49:43 hcp.albusma.com apachectl[3073363]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Feb 11 21:49:43 hcp.albusma.com apachectl[3073363]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Feb 11 21:49:43 hcp.albusma.com apachectl[3073363]: no listening sockets available, shutting down
Feb 11 21:49:43 hcp.albusma.com apachectl[3073363]: AH00015: Unable to open logs
Feb 11 21:49:43 hcp.albusma.com apachectl[3073360]: Action 'start' failed.
Feb 11 21:49:43 hcp.albusma.com apachectl[3073360]: The Apache error log may have more information.
Feb 11 21:49:43 hcp.albusma.com systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Feb 11 21:49:43 hcp.albusma.com systemd[1]: apache2.service: Failed with result 'exit-code'.
Feb 11 21:49:43 hcp.albusma.com systemd[1]: Failed to start The Apache HTTP Server.
Setting up php7.1-mcrypt (7.1.33-51+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php5.6-fpm (5.6.40-64+ubuntu22.04.1+deb.sury.org+1) ...
NOTICE: Not enabling PHP 5.6 FPM by default.
NOTICE: To enable PHP 5.6 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php5.6-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Setting up libglib2.0-bin (2.72.4-0ubuntu1) ...
Setting up php7.1-pspell (7.1.33-51+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.0-bz2 (1:8.0.27-4+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php7.2-fpm (7.2.34-37+ubuntu22.04.1+deb.sury.org+1) ...
NOTICE: Not enabling PHP 7.2 FPM by default.
NOTICE: To enable PHP 7.2 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php7.2-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Setting up php8.0-zip (1:8.0.27-4+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.0-intl (1:8.0.27-4+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php7.4-cli (1:7.4.33-3+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php7.3-bz2 (7.3.33-9+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php5.6-imagick (3.7.0-3+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.0-bcmath (1:8.0.27-4+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.0-gd (1:8.0.27-4+ubuntu22.04.1+deb.sury.org+1) ...
Setting up python3-apport (2.20.11-0ubuntu82.3) ...
Setting up php7.3-pspell (7.3.33-9+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.0-pspell (1:8.0.27-4+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php7.1-json (7.1.33-51+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.0-curl (1:8.0.27-4+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.2-fpm (8.2.2-3+ubuntu22.04.1+deb.sury.org+1) ...
Configuration file '/etc/php/8.2/fpm/pool.d/www.conf'
==> Deleted (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** www.conf (Y/I/N/O/D/Z) [default=N] ? N
NOTICE: Not enabling PHP 8.2 FPM by default.
NOTICE: To enable PHP 8.2 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php8.2-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Setting up php8.1-cli (8.1.15-3+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.0-readline (1:8.0.27-4+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php8.0-opcache (1:8.0.27-4+ubuntu22.04.1+deb.sury.org+1) ...
Replacing config file /etc/php/8.0/mods-available/opcache.ini with new version
Setting up libdrm2:arm64 (2.4.113-2~ubuntu0.22.04.1) ...
Setting up open-vm-tools (2:12.1.0-1~ubuntu0.22.04.1) ...
Installing new version of config file /etc/vmware-tools/tools.conf.example ...
Installing new version of config file /etc/vmware-tools/vgauth/schemas/saml-schema-assertion-2.0.xsd ...
Setting up php7.0-imagick (3.7.0-3+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php7.3-cli (7.3.33-9+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php7.0-fpm (7.0.33-64+ubuntu22.04.1+deb.sury.org+1) ...
NOTICE: Not enabling PHP 7.0 FPM by default.
NOTICE: To enable PHP 7.0 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php7.0-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Setting up php8.1-imagick (3.7.0-3+ubuntu22.04.1+deb.sury.org+1) ...
Setting up initramfs-tools-core (0.140ubuntu13.1) ...
Setting up initramfs-tools (0.140ubuntu13.1) ...
update-initramfs: deferring update (trigger activated)
Setting up php7.4-imagick (3.7.0-3+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php7.3-fpm (7.3.33-9+ubuntu22.04.1+deb.sury.org+1) ...
NOTICE: Not enabling PHP 7.3 FPM by default.
NOTICE: To enable PHP 7.3 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php7.3-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Setting up php7.4-fpm (1:7.4.33-3+ubuntu22.04.1+deb.sury.org+1) ...
NOTICE: Not enabling PHP 7.4 FPM by default.
NOTICE: To enable PHP 7.4 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php7.4-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Setting up php7.3-imagick (3.7.0-3+ubuntu22.04.1+deb.sury.org+1) ...
Setting up php7.1-cli (7.1.33-51+ubuntu22.04.1+deb.sury.org+1) ...
Setting up apport (2.20.11-0ubuntu82.3) ...
apport-autoreport.service is a disabled or a static unit, not starting it.
Setting up php8.1-fpm (8.1.15-3+ubuntu22.04.1+deb.sury.org+1) ...
Configuration file '/etc/php/8.1/fpm/pool.d/www.conf'
==> Deleted (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** www.conf (Y/I/N/O/D/Z) [default=N] ? z
Useful environment variables:
- DPKG_SHELL_REASON
- DPKG_CONFFILE_OLD
- DPKG_CONFFILE_NEW
Type 'exit' when you're done.