Installing Apache as service prevents running Blender with PHP’s exec()

  apache, blender, php, xampp

I am working with a Windows 10 Pro machine and the latest version of XAMPP.

I am able to run the following command using the command line successfully. To clarify the command is calling Blender on a .blend file and running a python script to render an animation. The text file serves as input to the the python script.

"C:/Program Files/Blender Foundation/Blender/blender.exe" C:/xampp/htdocs/myproject/assets/blender/test.blend -P C:/xampp/htdocs/myproject/assets/python/myscript.py -- C:/xampp/htdocs/myproject/assets/temporary_files/input.txt 2>&1

I am also able to run this command using exec() when Apache is not installed as a service.

However as soon as I install Apache as a service (through the XAMPP control panel), Blender just seems to stall out when I run and monitor Task Manager. It is consuming memory, but the CPU usage is a 0%. The job never completes. I am curious if anyone has any ideas what about installing as a service is preventing the command from running successfully.

Source: Ask PHP

LEAVE A COMMENT