Apache Config - Multiple python versions

后端 未结 3 441
名媛妹妹
名媛妹妹 2021-01-15 11:09

I have a couple versions of python on my box. My app uses python 2.7 which is found in /usr/local/bin/python. Apache seems to be using an earlier version in /usr/bin/python.

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-15 11:35

    I could be mistaking, but whatever user apache is started with has a profile which likely has the search path in it. You could change the search path to search /usr/local/bin before /usr/bin, though this is not an ideal approach. Whatever default shell is set for the account used by Apache, just check that you have an rc-file for that shell, and if not, create one.

提交回复
热议问题