"I'm wrote a script under /usr/local/www/XFOLDER for manage freeradius mySQL database"
WHY??? When there is already a freeradius package is my question.. Why would your script need APC disabled?? Why not just put your script on where the freeradius is running and your mysql is running - trying to run the script on a firewall that is a custom distribution of the OS and the software running like lighthttpd, php, etc..
Make NO sense to do what your doing..