Jump to content

Topic on Project:Support desk

Warning: mkdir() [function.mkdir]: Permission denied

3
Codi727 (talkcontribs)

I was uploading image files to my website when without warning, the script stopped working and I go this message:-

Warning: mkdir() [function.mkdir]: Permission denied in /home/wikikoi/public_html/includes/GlobalFunctions.php on line 2176

Warning: wfMkdirParents: failed to mkdir "/home/wikikoi/public_html/images/7/79" mode 511 in /home/wikikoi/public_html/includes/GlobalFunctions.php on line 2179

I had not made any changes to the script when this occured. It will not upload any image files to the site no matter which extension I use .gif, .png, .jpg etc...!

Any solution that will get me back up and running will be greatly appreciated.

Bawolff (talkcontribs)

Your webserver doesn't have permission to write to the image directory. You have to use the chmod command to give it permission. See also Manual:Image Administration.

Euloiix (talkcontribs)

I know I am late but it can be useful for others, as it took me a while to find out what my problem was. So... if you ever have this problem while uploading files to your mediawiki and your Linux system is running SElinux, that may be the source of your trouble. Check this page for a protential solution. It worked for me.

Reply to "Warning: mkdir() [function.mkdir]: Permission denied"