I am getting this error when I try to upload a file to my CentOS8 server. I have tried setting the path in LocalSettings as below and on both instances it does not work. All other images are rendering properly as intended, only uploads not working.
User apache has read and write rights to the temp folder
$wgEnableUploads = true;
$wgFileExtensions = array('png','gif','jpg','jpeg','ogg','mp3','svg','bmp');
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgTmpDirectory = false;
-------Second configuration tried-------
$wgEnableUploads = true;
$wgFileExtensions = array('png','gif','jpg','jpeg','ogg','mp3','svg','bmp');
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgTmpDirectory ="/var/www/html/w/images/temp";