Running a blender script on linux hosting
I'd start with running the script with test parameters directly from the terminal on your server using SSH. If you get the expected results from the terminal, then something with the way you're executing the script in PHP is the problem.

You might also see output that you wouldn't through your PHP script (blender spews out various output to the standard output and error streams).

Also, if your script imports from other scripts or addons, you need to include them using another pair of command line params in your script:

blender -b --addons addon1,addon2,script3 -P yourscript.py


Make sure to list all the addons and scripts after the --addons in one string without spaces (the entire comma separated list is one command line parameter).

You don't need to list standard blender or python libraries in the --addons list (bpy, bge, os, math, mathutils, etc), but if you're importing any of blender's addons, or any custom addons or libraries of your own you must include them.

Addons and script files listed in the --addons list must be present in one of the paths available to the blender script. If you're not sure what's included, save this little script locally on your server and run this it from the terminal on your server:

import sys
print( sys.path )


Assuming you saved this as "print_path.py":

&gt;&gt; blender -b -P print_path.py


You can either copy or create a symbolic link to these libraries and addons in one of the blender $PATH folders to make them available to your blender script.