Enabling user image uploads in MediaWiki
By default. MediaWiki does not have the embedded image function enabled for users to upload images to your wiki site. In order to get the capability to upload images into the MediaWiki pages working, you will need to change the permissions of the images folder and enable the "$wgEnableUploads" setting in the LocalSettings.php. The following will explain the steps to allow users to upload and insert images and other media to your MediaWiki site.
Enabling image embedding in MediaWiki
- Login into your cPanel
- Go to the File Manager, select your MediaWiki installation location and click Go.
- Navigate to the following folder:
Change the permissions on the folder to 775 and Save.
- Next, navigate to the following file:
Select the file and edit it with the code editor.
- Find the following line in your LocalSettings.phpfile.
## To enable image uploads, make sure the 'images' directory ## is writable, then set this to true: $wgEnableUploads = false;
Set "$wgEnableUploads" to true so it looks like the following:
$wgEnableUploads = true;
Save the changes.
- Log into MediaWiki.
Find a page to edit to insert an image into. Click Edit.
For more information on insetting images into MediaWiki, please see the next tutorial on How to insert images in MediaWiki.