aaP_mdestafadilah_simrs
you have default this line , right ?
open_basedir=/www/wwwroot/DOMAIN_NAME/:/tmp/
So after you change it, you should have this:
open_basedir=/www/wwwroot/DOMAIN_NAME/:/tmp/:/www/server/panel/tmp:/www/sec_firewall/
these two dots : is basically the separator of each path you need to allow on the open_basedir , this will allow the script to write on the log file .
Also make sure your php script is able to write the file, has the right permissions, if not you will need to manually create the log file within this folder:
/www/sec_firewall/security_log.txt