0

I have a mediaiwki installation on which upload worked perfectly. However, I disabled some php functions from php.ini for security reasons:

disable_functions = passthru,system,popen,proc_open,parse_ini_file,show_source,chdir,ini_set,ini_get,diskfreespace,disk_total_space,php_uname,posix_geteuid,exec,shell_exec,posix_getpwuid,chmod

which resulted in mediawiki upload being automatically disabled.

Does anybody know which disabled function is used for the file uploading process? I tried re-enabling popen and proc_open but they don't seem to be related.

I know I could solve it by trying to enable each function, but I thought it would be good to have such a question on SO.

3
  • chmod could couse the problem. The usual upload scripts use chmod to fix the uploaded files permissions. Commented Jul 10, 2013 at 14:15
  • @Fracsi: Tried it (along with popen and proc_open without success :\ Commented Jul 10, 2013 at 14:20
  • Check mediawiki prerequisites. It could use ini_set, ini_get, chdir, parse_ini_file as well. Commented Jul 10, 2013 at 14:21

1 Answer 1

1

i'm sorry to say that but you should remove these functions from your forbidden list : parse_ini_file,chdir,ini_get,ini_set,chmod

to get mediawiki upload work fine

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.