Following is what in my php.ini:
safe_mode = On
safe_mode_exec_dir = /usr/bin
safe_mode_include_dir = /usr/lib
Safe_mode_exec_dir and safe_mode_include_dir has included all the files of NetPBM-Progs RPM package.But I couldn't exec the giftopnm(one of the NetPBM-Progs' tools and has set to 755) in PHP,the return code of exec is 99.But when I copy the "ls" from /bin to /usr/bin, I can exec the "ls" which in /usr/bin successfully.
When I turn the Safe_mode Off, Giftopnm can be exec without any problem...
What's wrong with the PHP SafeMode? Or NetPBM-Progs? Thx.