Je reçois une erreur lorsque je lance le serveur apache via mon client après avoir parcouru le journal. J’ai compris que mod_wsgi utilise python 2.6 lors de la compilation et utilise python 2.7 pour l’exécution. Après quelques recherches sur Internet, j’ai suivi les étapes ci-dessous:
apt-get remove libapache2-mod-python libapache2-mod-wsgi
apt-get build-dep libapache2-mod-python libapache2-mod-wsgi
mkdir /tmp/python cd /tmp/python apt-get source libapache2-mod-python cd libapache2-mod-python-[xxx] dpkg-buildpackage -rfakeroot -b
mkdir /tmp/wsgi cd /tmp/wsgi apt-get source libapache2-mod-wsgi cd mod-wsgi-[xxx] dpkg-buildpackage -rfakeroot -b
dpkg -i /tmp/python/libapache2-mod-python-[xx].deb /tmp/wsgi/libapache2-mod-wsgi-[xx].deb
Cela n’a servi à rien, maintenant que la version est passée à 3.2, je m’inquiète de l’espace consommé par les étapes ci-dessus et maintenant le python de compilation a changé de 2.6 à python 3.2 mais le python utilisé est toujours 2.7. aidez-moi s’il vous plaît avec quoi faire? pour récupérer mon serveur Apache en cours d’exécution avec succès.
error.log ::::
[Wed Aug 21 11:48:11 2013] [warn] mod_wsgi: Comstackd for Python/2.7.2+. [Wed Aug 21 11:48:11 2013] [warn] mod_wsgi: Runtime using Python/2.7.3. [Wed Aug 21 11:48:11 2013] [notice] Apache/2.2.22 (Ubuntu) mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations [Wed Aug 21 11:48:36 2013] [notice] caught SIGTERM, shutting down [Wed Aug 21 22:48:29 2013] [error] child process 1226 still did not exit, sending a SIGKILL [Wed Aug 21 22:48:30 2013] [notice] caught SIGTERM, shutting down [Wed Aug 21 22:56:17 2013] [warn] mod_wsgi: Comstackd for Python/2.7.2+. [Wed Aug 21 22:56:17 2013] [warn] mod_wsgi: Runtime using Python/2.7.3. [Wed Aug 21 22:56:17 2013] [notice] Apache/2.2.22 (Ubuntu) mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations [Thu Aug 22 01:32:12 2013] [notice] caught SIGTERM, shutting down [Thu Aug 22 01:32:26 2013] [warn] mod_wsgi: Comstackd for Python/2.7.2+. [Thu Aug 22 01:32:26 2013] [warn] mod_wsgi: Runtime using Python/2.7.3. [Thu Aug 22 01:32:26 2013] [notice] Apache/2.2.22 (Ubuntu) mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations [Thu Aug 22 04:04:48 2013] [notice] child pid 11212 exit signal Segmentation fault (11) [Thu Aug 22 04:04:48 2013] [notice] caught SIGTERM, shutting down [Thu Aug 22 04:04:56 2013] [notice] mod_python: Creating 8 session mutexes based on 6 max processes and 25 max threads. [Thu Aug 22 04:04:56 2013] [notice] mod_python: using mutex_directory /tmp [Thu Aug 22 04:04:56 2013] [warn] mod_wsgi: Comstackd for Python/3.2.3. [Thu Aug 22 04:04:56 2013] [warn] mod_wsgi: Runtime using Python/2.7.3. [Thu Aug 22 04:04:56 2013] [notice] Apache/2.2.22 (Ubuntu) mod_python/3.3.1 Python/2.7.3 mod_wsgi/3.3 configured -- resuming normal operations
Je vous remercie
Ne chargez pas mod_python et mod_wsgi en même temps si vous n’en avez pas besoin. Ils sont probablement compilés sur différentes versions de Python. Voir ce qui suit pour une explication de la non-concordance que vous voyez.
Si vous avez besoin des deux, ils doivent tous deux être compilés pour la même version.
De nos jours, il n’y a généralement pas de raison d’utiliser mod_python pour de nouveaux projets.
Juste pour append j’ai désinstallé libapache2-mod-python
sudo apt-get remove libapache2-mod-python
que j’ai installé alors j’ai surmonté l’erreur ci-dessus
[Thu Aug 22 01:32:26 2013] [warn] mod_wsgi: Comstackd for Python/2.7.2+. [Thu Aug 22 01:32:26 2013] [warn] mod_wsgi: Runtime using Python/2.7.3.