I am currently working on a web app which spits out a .stl file in blender. I have used php and I am calling the script in php using exec(). Please look at the code below. I found the code from https://stackoverflow.com/questions/23563809/php-running-a-python-scrip-using-blender-from-a-php-project-using-cmd-commands
$script = "C:\\xampp\\htdocs\\test\\test.py"; $blender_path = "C:\Program Files\Blender Foundation\Blender"; $output = exec("cd $blender_path && blender -b -P $script", $data); echo "<pre>"; print_r($data); echo "</pre>";
And all works well locally. I uploaded the content to my site(Linux hosting), Uploaded Blender(Linux - https://www.blender.org/download/) changed the paths and nothing happens. It doesn't even output any errors. Is there a separate command line code for linux? I am not used to using Linux and I have been struggling with this for the past 3 days.
Any help is appreciated.