Я недавно настроил свой сервер php apache mysql вручную на windows 10, и он работает Я не хочу использовать xampp или mammp в образовательных целях,
Я сейчас пытаюсь запустить apache сервер python файлы, которые я загружаю python добавляю путь к windows переменным, я показываю python на cmd, затем настраиваю файл httpd.conf и добавляю эту строку в конец httpd.conf :
AddHandler cgi-script .py
ScriptInterpreterSource Registry-Strict
когда я go на моем локальном хосте, я вижу эту ошибку:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Я открываю журнал и error.log в apache и увидите эту ошибку:
[Wed Jun 17 20:07:35.229361 2020] [cgi:error] [pid 12420:tid 1336] (OS 2)The system cannot find the file specified. : [client ::1:49302] couldn't create child process: 720002: index.py
[Wed Jun 17 20:07:35.229361 2020] [cgi:error] [pid 12420:tid 1336] (OS 2)The system cannot find the file specified. : [client ::1:49302] AH01223: couldn't spawn child process: C:/Apache24/htdocs/pblog/index.py
[Wed Jun 17 20:07:36.549768 2020] [cgi:error] [pid 12420:tid 1336] (OS 2)The system cannot find the file specified. : [client ::1:49307] couldn't create child process: 720002: index.py
[Wed Jun 17 20:07:36.549768 2020] [cgi:error] [pid 12420:tid 1336] (OS 2)The system cannot find the file specified. : [client ::1:49307] AH01223: couldn't spawn child process: C:/Apache24/htdocs/pblog/index.py