Most likely, there is some dependence on environment variables that you configured as a shell user that are not executed by the httpd environment. However, before doing any heroic actions with the environment, I would recommend grabbing the stderr from your work (adding to the end of this, for example) and seeing if it causes any complaints. 2>/tmp/imgcaperrlog
chaos source
share