Thread:Project:Support desk/MediaWIKI 1.21 cannot import file PHP WARNING wfMkdirParents (2)/reply (3)

I don't know of anything CentOS specific.

Don't touch DefaultSettings.php; always make all of your settings in LocalSettings.php. I just checked in an installation where image upload works: $wgUploadPath and $wgUploadDirectory are not set in LocalSettings.php. They use the default from DefaultSettings.php.

$wgScriptPath is set; I think the installer already determines the correct value and sets it. What value do you have there? And how is the folder called, in which you have installed the wiki?