How to fix: "couldn't create child process: 720005" error

How to fix: "couldn't create child process: 720005" error

I got “couldn’t create child process: 720005” error when I tried to run Python script in Apache ( XAMPP ) on Windows and following was the error log.

[Mon Apr 15 23:54:40.556698 2019] [cgi:error] [pid 8452:tid 2028] (OS 5)Access is denied.  : [client ::1:24643] couldn't create child process: 720005: index.py
[Mon Apr 15 23:54:40.557700 2019] [cgi:error] [pid 8452:tid 2028] (OS 5)Access is denied.  : [client ::1:24643] AH01223: couldn't spawn child process: F:/xampp/htdocs/RapidoPy/index.py

I was banging my head against the wall for a day to fix this error and finally, I got a solution.

The problem was at the first line of the code which pointed to the location of the python executable. Instead of specifying the path to the Python executable, I specified the path to the Python installation folder. So my application assumed that Python36-32 (Installation directory) is the executable and tried to execute the directory which produced the error.

My code was :

 #!"C:\Users\Tuf\AppData\Local\Programs\Python\Python36-32"

To fix the problem, specify the exact path to the executable.

#!"C:\Users\Tuf\AppData\Local\Programs\Python\Python36-32\python.exe"


Share Tweet Send
0 Comments
Loading...