not good but great

プログラミング、アート、映画・本の感想について書きます。

python3、pyenv-virtualenvでmod_wsgiを使う

注意しておきたいこと

  • mod wsgiのインストールはapt getではなくpipを使う
  • mod wsgipythonは1つしか指定できない
    • apt getのときだけ?
    • installするときにpythonのバージョンを指定
      • 特にバージョンを指定しないとsystemのバージョンとなる(2系)

pythonを準備

mod_wsgiをinstall

Unable to connect to WSGI daemon process のエラー

No such file or directory: [client 192.168.0.2:55585] mod_wsgi (pid=2249)     : Unable to connect to WSGI daemon process 'women' on '/etc/apache2/logs/wsgi.2246.0.1.sock' as user with uid=33.

これでmod_wsgiを使うことができた。