I'm using a Drupal module called 'Code Per Node'. It allows basically what the name describes: custom code in the form of JS or CSS on a per node basis. Upon publishing the node, the module writes the css and js to a file specified in the module's configuration settings.
In development, I have the directory set to /cpn
, I've temporarily made the permissions for that folder 0777
just to cover all angles.
The problem is, I've moved the site to a staging server and something about the environment is restricting the module from writing the CSS and JS files. it returns a 'The file could not be created' error upon publishing.
I've tried: Setting open permissions and moving directory inside of /sites/default
, no dice.
Is there anything else I should look at that would prevent this module from writing these files? Perhaps an Apache config setting?
As a side note, I would much prefer the custom code be generated inline on the page, so if anyone knows any actively supported modules that accomplish this, that would also be much appreciated.
Thanks