|
|
> Do you own the webserver ?
>
> Does the webserver run in a chroot ?
>
> Are you aware that php get a property "max_execution_time" which would
> limit the time available...
>
> can you provide the phpinfo() ? (or check it yourself)
>
> For instance, with safe_mode on, only binary in safe_mode_exec_dir would
> get allowed.
>
> Is povray inside the php-path ? (or would you provide the full path
> instead ? (hint: if chroot, beware to use the right value!)
>
> Have you turn off the display of povray (trying to open a X11 display is
> a bad idea when launched from script)
>
> What about instead of dynamic rendition, have a render farm:
> * The web page create the file.pov in a directory (automatic naming).
> * a demon scan the directory and run povray for the new file (moving
> the file from "./to_render" to "./in_progress".
> * when the image is finished in "./in_progress", both the pov & image
> are moved to "./done"
> * the submission page returned a page with refresh and the img src=link
> to "./done/" image... when ready, it appears.
>
> You might also want some automatic clean up...
I don't know if the web server is running on chroot, but I did find that the
server's PHP installation has a max_execution_time of 30 and safe mode is off.
POV-Ray isn't in the PHP path, but running it from the file path
(/usr/bin/povray) didn't help.
Post a reply to this message
|
|