Path environment variable in apache 2.2

Discussion in 'Apache' started by fantata, Oct 14, 2010.

  1. #1
    This is a sort of Apache / OSX issue and it's driving me nuts.

    In a nutshell:

    - OSX server : upgraded last week to 10.6
    - PATH env variable (as quoted in Apache Environment section of phpInfo) is different (less paths) to that of the Apache user as set up by the OS.

    So, some scripts that all shell commands are not now working.
    Where i can I have changed the call to quote the full path, and thats fine. But, imageMagick makes a call to ghostscript, to process .eps files, and I'm getting the error in the log that gs cannot be found.

    I have tried allsorts of things trying to expand the PATH for the apache webserver user, but it refuses to be anything other than /usr/bin:/bin:/usr/sbin:/sbin

    The weird thing is that it was working prior to the server upgrade.

    have tried:
    - /etc/profile - to set paths for all shell users
    - /usr/sbin/envvars
    - amending apachectl script

    I am really struggling. Has anyone come across this before.
     
    fantata, Oct 14, 2010 IP