To disable file uploads in PHP.INI:
To disable dynamic loading of extensions (recommended):
I would also make use of disable_functions and disable some of
the more dangerous functions such as the shell functions, highlight_file,
and others which could be used for abuse.
If you don't want users to override settings with .htaccess (module)
or a custom php.ini file (phpsuexec) then you might want to look
into upgrading and getting suphp which doesn't allow end users
to change php configuration settings.
You should make sure that your /tmp folder is non-executable which
will make it a bit more difficult to run uploaded scripts ...
Edit /etc/fstab and replace the /dev/shm line:
Code:
/dev/shm /dev/shm tmpfs loop,noexec,nosuid,rw 0 0
(server needs to be rebooted after the change or need to remount drives)