#1 Le 31/08/2022, à 20:42
- petit_lutin
[résolu] pb serveur apache2 après mise à jour 20.04 -> 22.04
Bonjour à tous,
Je sèche.
J'ai effectué une mise du serveur (chez ovh) via do-release-upgrade.
Aucun problème dans le déroulé mais le serveur les sites (nextcloud et wordpress) ne fonctionnent plus.
Le wordpress renvoie une page blanche et Nextcloud donne un script en lecture.
# service apache2 status
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2022-08-31 19:37:50 UTC; 4s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 2741 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 2746 (apache2)
Tasks: 6 (limit: 4460)
Memory: 5.5M
CPU: 88ms
CGroup: /system.slice/apache2.service
├─2746 /usr/sbin/apache2 -k start
├─2747 /usr/sbin/apache2 -k start
├─2748 /usr/sbin/apache2 -k start
├─2749 /usr/sbin/apache2 -k start
├─2750 /usr/sbin/apache2 -k start
└─2751 /usr/sbin/apache2 -k start
Aug 31 19:37:50 vps-xxx systemd[1]: Starting The Apache HTTP Server...
Aug 31 19:37:50 vps-xxx systemd[1]: Started The Apache HTTP Serv
# service mysql status
● mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2022-08-31 19:03:53 UTC; 23min ago
Main PID: 941 (mysqld)
Status: "Server is operational"
Tasks: 41 (limit: 4460)
Memory: 490.8M
CPU: 11.523s
CGroup: /system.slice/mysql.service
└─941 /usr/sbin/mysqld
Le log error.log d'apache donne cela :
[Wed Aug 31 16:11:57.371577 2022] [mpm_prefork:notice] [pid 6464] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Wed Aug 31 16:11:57.371634 2022] [core:notice] [pid 6464] AH00094: Command line: '/usr/sbin/apache2'
[Wed Aug 31 16:18:45.783419 2022] [php7:error] [pid 6468] [client 92.128.75.143:37154] PHP Fatal error: Uncaught Doctrine\\DBAL\\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory in /srv/cld_xXx/lib/private/DB/Connection.php:139\nStack trace:\n#0 /srv/cld_xXx/3rdparty/doctrine/dbal/src/Connection.php(1519): OC\\DB\\Connection->connect()\n#1 /srv/cld_xXx/3rdparty/doctrine/dbal/src/Connection.php(1041): Doctrine\\DBAL\\Connection->getWrappedConnection()\n#2 /srv/cld_xXx/lib/private/DB/Connection.php(261): Doctrine\\DBAL\\Connection->executeQuery()\n#3 /srv/cld_xXx/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(345): OC\\DB\\Connection->executeQuery()\n#4 /srv/cld_xXx/lib/private/DB/QueryBuilder/QueryBuilder.php(281): Doctrine\\DBAL\\Query\\QueryBuilder->execute()\n#5 /srv/cld_xXx/lib/private/AppConfig.php(411): OC\\DB\\QueryBuilder\\QueryBuilder->execute()\n#6 /srv/cld_xXx/lib/private/AppConfig.php(176): OC\\AppConfig->loadConfigValues()\n#7 /srv/cld_xXx/lib/private/AppConfig.php(367): OC\\AppConfig->getApps()\n# in /srv/cld_xXx/lib/private/DB/Connection.php on line 139
[Wed Aug 31 16:18:45.783966 2022] [php7:error] [pid 6471] [client 92.128.75.143:37158] PHP Fatal error: Uncaught Doctrine\\DBAL\\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory in /srv/cld_xXx/lib/private/DB/Connection.php:139\nStack trace:\n#0 /srv/cld_xXx/3rdparty/doctrine/dbal/src/Connection.php(1519): OC\\DB\\Connection->connect()\n#1 /srv/cld_xXx/3rdparty/doctrine/dbal/src/Connection.php(1041): Doctrine\\DBAL\\Connection->getWrappedConnection()\n#2 /srv/cld_xXx/lib/private/DB/Connection.php(261): Doctrine\\DBAL\\Connection->executeQuery()\n#3 /srv/cld_xXx/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(345): OC\\DB\\Connection->executeQuery()\n#4 /srv/cld_xXx/lib/private/DB/QueryBuilder/QueryBuilder.php(281): Doctrine\\DBAL\\Query\\QueryBuilder->execute()\n#5 /srv/cld_xXx/lib/private/AppConfig.php(411): OC\\DB\\QueryBuilder\\QueryBuilder->execute()\n#6 /srv/cld_xXx/lib/private/AppConfig.php(176): OC\\AppConfig->loadConfigValues()\n#7 /srv/cld_xXx/lib/private/AppConfig.php(367): OC\\AppConfig->getApps()\n# in /srv/cld_xXx/lib/private/DB/Connection.php on line 139
[Wed Aug 31 16:35:06.328187 2022] [mpm_prefork:notice] [pid 6464] AH00169: caught SIGTERM, shutting down
[Wed Aug 31 16:41:46.321707 2022] [mpm_prefork:notice] [pid 938] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Wed Aug 31 16:41:46.331383 2022] [core:notice] [pid 938] AH00094: Command line: '/usr/sbin/apache2'
[Wed Aug 31 18:35:09.343601 2022] [mpm_prefork:notice] [pid 938] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Aug 31 18:35:09.485775 2022] [mpm_prefork:notice] [pid 2982] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Wed Aug 31 18:35:09.487152 2022] [core:notice] [pid 2982] AH00094: Command line: '/usr/sbin/apache2'
[Wed Aug 31 18:49:47.088721 2022] [mpm_prefork:notice] [pid 2982] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Aug 31 18:49:47.247839 2022] [mpm_prefork:notice] [pid 3317] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Wed Aug 31 18:49:47.249961 2022] [core:notice] [pid 3317] AH00094: Command line: '/usr/sbin/apache2'
[Wed Aug 31 18:59:54.509016 2022] [mpm_prefork:notice] [pid 3317] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Aug 31 18:59:54.653285 2022] [mpm_prefork:notice] [pid 9022] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Wed Aug 31 18:59:54.653511 2022] [core:notice] [pid 9022] AH00094: Command line: '/usr/sbin/apache2'
[Wed Aug 31 19:00:07.577867 2022] [mpm_prefork:notice] [pid 9022] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Aug 31 19:00:07.703202 2022] [mpm_prefork:notice] [pid 9097] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Wed Aug 31 19:00:07.705316 2022] [core:notice] [pid 9097] AH00094: Command line: '/usr/sbin/apache2'
[Wed Aug 31 19:03:31.978872 2022] [mpm_prefork:notice] [pid 9097] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Aug 31 19:03:51.309938 2022] [mpm_prefork:notice] [pid 930] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Wed Aug 31 19:03:51.319456 2022] [core:notice] [pid 930] AH00094: Command line: '/usr/sbin/apache2'
[Wed Aug 31 19:08:08.562779 2022] [mpm_prefork:notice] [pid 930] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Aug 31 19:08:08.726241 2022] [mpm_prefork:notice] [pid 2367] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Wed Aug 31 19:08:08.726572 2022] [core:notice] [pid 2367] AH00094: Command line: '/usr/sbin/apache2'
[Wed Aug 31 19:08:15.717788 2022] [mpm_prefork:notice] [pid 2367] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Aug 31 19:08:15.847156 2022] [mpm_prefork:notice] [pid 2414] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Wed Aug 31 19:08:15.847537 2022] [core:notice] [pid 2414] AH00094: Command line: '/usr/sbin/apache2'
[Wed Aug 31 19:10:28.783953 2022] [mpm_prefork:notice] [pid 2414] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Aug 31 19:10:28.911172 2022] [mpm_prefork:notice] [pid 2499] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Wed Aug 31 19:10:28.911295 2022] [core:notice] [pid 2499] AH00094: Command line: '/usr/sbin/apache2'
J'imagine une solution toute simple, une configuration différente, un paquet à reconfigurer... mais je ne trouve pas.
C'est assez urgent (j'ai besoin de Nextcloud ! )
Merci de votre aide
Dernière modification par petit_lutin (Le 31/08/2022, à 20:58)
Hors ligne
#2 Le 31/08/2022, à 20:58
- petit_lutin
Re : [résolu] pb serveur apache2 après mise à jour 20.04 -> 22.04
Autant pour moi, j'ai trouvé !
Le module activé dans apache était php7.4
La version php après mise à jour est 8.1
Donc j'ai fait :
1- a2dismod php7.4
2- a2enmod php8.1
3- systemctl restart apache2
Truc tout simple.
Bonne soirée
Hors ligne