[Wed Jun 15 08:42:33.516628 2022] [mpm_prefork:notice] [pid 657] AH00163: Apache/2.4.53 (Debian) configured—resuming normal operations
[Wed Jun 15 08:42:33.516787 2022] [core:notice] [pid 657] AH00094: Command line: '/usr/sbin/apache2'
Traceback (most recent call last):
File "/var/www/html/steeve/correction_RST_BD_BO.py", line 20, in
import control as ctl # Pour l'automatique
ModuleNotFoundError: No module named 'control'
Ce que j'en retiens est que le python qui est lancé dans apache n'est pas le même que le python shell.
Pourtant je précise bien :
/usr/bin/python /var/www/html/steeve/correction_RST_BD_BO.py et donc le chemin de python... argggg. Surtout que depuis un shell cette ligne fonctionne...
Sinon dans error.log.1 j'avais :
[Wed Jun 15 08:42:33.439356 2022] [mpm_prefork:notice] [pid 657] AH00171: Graceful restart requested, doing restart AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message Vous avez des conseils?
[^] # Re: Durée, mémoire...?
Posté par ojeda . En réponse au message Problème d’exécution d'un code python depuis une page php. Évalué à 1.
Bonjour, merci pour la réponse.
J'ai regardé /var/log/apache/error.log :
Ce que j'en retiens est que le python qui est lancé dans apache n'est pas le même que le python shell.
Pourtant je précise bien :
et donc le chemin de python... argggg. Surtout que depuis un shell cette ligne fonctionne.../usr/bin/python /var/www/html/steeve/correction_RST_BD_BO.py
Sinon dans error.log.1 j'avais :
Vous avez des conseils?[Wed Jun 15 08:42:33.439356 2022] [mpm_prefork:notice] [pid 657] AH00171: Graceful restart requested, doing restart AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message