disabling PHP functions

Lem0nHead

Verified User
Joined
Nov 28, 2004
Messages
265
hello

I'd like to disable the following PHP functions:
exec,passthru,proc_open,proc_close,shell_exec,system,popen

can I do it safely without breaking DirectAdmin?

thanks
 
Yes, DirectAdmin has not dependencies on anything else so you can make any modifications you want (within reason).

Although you might as well enable safe_mode which takes care of most of those functions, although in my opinion php safe_mode and disabling of functions is pointless, you can do the same thing and more in a perl script. :rolleyes:
 
jmstacey said:
Yes, DirectAdmin has not dependencies on anything else so you can make any modifications you want (within reason).

Although you might as well enable safe_mode which takes care of most of those functions, although in my opinion php safe_mode and disabling of functions is pointless, you can do the same thing and more in a perl script. :rolleyes:

that was my thought a few time ago
when I realized that PHP runs as apache user (I already trying to use phpsuexec or others, but they break some scripts and cause a HUGE load)
so there's a point to block PHP functions, but not Perl ones
 
Lem0nHead said:
hello

I'd like to disable the following PHP functions:
exec,passthru,proc_open,proc_close,shell_exec,system,popen

can I do it safely without breaking DirectAdmin?

thanks

If you get this working, I'd sure be interested in how you do it.

Thanks

Joe
 
Back
Top