POST_RELOAD script not being executed

Hello,

I have a script that must be executed after apllying changes. The script runs fine from terminal. Permissions are (I think so) ok: 775 asterisk:asterisk.

I enabled debugging and this is what I found:

2012-Jul-03 13:46:21 /var/www/html/admin/libraries/xml2Array.class.php:59
[WARNING]: array_push(): Cannot add element to the array as the next element is already occupied

I don’t know if it is related.

Why isn’t my script being executed?

Some side files that the script had to access didn’t could be executed from directory as Asterisk didn’t have permissions to execute it. I changed these files to /tmp/ and everything went alright.