Hi!
I'm playin around with the apache web server on osx and now I've run into an annoying problem.
I have a PHP-script that calls a shake batch render like
exec('shake render file.shk');
The problem is that when I power up the computer and log in and open up my php-page that runs the shake renderer, the shake renderer reports errors. Basically it says that the function "xyLayer" is unknown. (xyLayer is a function that normally works in shake.) Also the variable $HOME is set to nothing. Bottom line is, shake halts.
Now here's the annoying part: If I open system preferences and select file sharing and then select the "personal web server" (apache) and just shut it down and start it again - everything works fine!! shake finds the function "xyLayer" and $HOME is set to the appropriate folder.
Well, my question is - how do I make apache work without having to restart it?
I'm thinking that maybe this is all because apache is started at boot-time and at that time $HOME is unset and maybe shake needs stuff like that to work properly or something. What can I do? (of course I can easily replace the $home variable with my own variables, but stil, that wont make shake work..)
does anybody know a GUI for apache on osx?
/soul8o8
I'm playin around with the apache web server on osx and now I've run into an annoying problem.
I have a PHP-script that calls a shake batch render like
exec('shake render file.shk');
The problem is that when I power up the computer and log in and open up my php-page that runs the shake renderer, the shake renderer reports errors. Basically it says that the function "xyLayer" is unknown. (xyLayer is a function that normally works in shake.) Also the variable $HOME is set to nothing. Bottom line is, shake halts.
Now here's the annoying part: If I open system preferences and select file sharing and then select the "personal web server" (apache) and just shut it down and start it again - everything works fine!! shake finds the function "xyLayer" and $HOME is set to the appropriate folder.
Well, my question is - how do I make apache work without having to restart it?
I'm thinking that maybe this is all because apache is started at boot-time and at that time $HOME is unset and maybe shake needs stuff like that to work properly or something. What can I do? (of course I can easily replace the $home variable with my own variables, but stil, that wont make shake work..)
does anybody know a GUI for apache on osx?
/soul8o8