apache2.2安装了php5.3和5.2,无法切换PHP版本,在切换PHP版本处点切换,提示一个小黑框后,实际测试根本没有切换成功。因为有些网站必须用php5.2,现在查看环境都是PHP5.3。网站列表中PHP那列都显示为静态,PHP命令行版本下拉菜单中只显示了5.3。
后再到PHP版本切换操作是,按F12查看响应,看到错误信息为:
"Traceback (most recent call last):\n File \"class/flask_sockets.py\", line 30, in __call__\n handler, values = adapter.match()\n File \"/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/routing.py\", line 1945, in match\n raise NotFound()\nwerkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"class/panelSite.py\", line 3041, in SetPHPVersion\n tmp = re.search(rep,conf).group()\nAttributeError: 'NoneType' object has no attribute 'group'\n"