Hi Y'all,
I am the root owner of a linux box.
I have hardend the PHP.ini file such that it will not allow several functions:
readfile, system, shell_exec, proc_terminate, proc_nice, pclose, popen, passthru, pcntl_fork, pcntl_exec, posix_kill, pcntl_signal
All is working fine,. but now I want my own website to be able to use some of those functions.
My own site will allow me to run some system calls to monitor cpu activity and perform other tasks.
What I'm looking for, is a way to enable those functions, but only to my particular website.
For php safe_mode, there is a way for me to do this in httpd.conf file like that:
php_admin_flag safe_mode on
I can plug this line in my httpd.conf area of my private domain and it will affect only my domain.
Is there a similar way to enable functions (override the master php.ini) such that I'll be able to enable specific functions on my site only?
I appreciate the answer.
Thanks,
-Alon.