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

  1. Login into your cPanel
  2. Go to the File Manager, select your MediaWiki installation location and click Go.
  3. Change permissions MediaWikiNavigate to the following folder:

    /public_html/mediawiki/images

    Change the permissions on the folder to 775 and Save.


  4. Edit localsettings MediaWikiNext, navigate to the following file:

    public_html/mediawiki/LocalSettings.php

    Select the file and edit it with the code editor.


  5. Enable uploads MediaWikiFind 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.


  6. Edit page MediaWikiLog into MediaWiki.

    Find a page to edit to insert an image into. Click Edit.


    Embed file icon MediaWikiNow there will be an Embedded file icon in the WYSIWYG editor. See image to the right.

    Upload file link MediaWikiYou will also have available the "Upload file" link available in the navigation to the left of your MediaWiki.

For more information on insetting images into MediaWiki, please see the next tutorial on How to insert images in MediaWiki.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve our Support Center:
Email Address
Optional, but our team may contact you for more information.
Like this Article?

Post a Comment

Name:
Email Address:
Comment:
Are you a bot?
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Write New!
Do you want to publish a tutorial to our support center?

News / Announcements

SSL Certficate Warnings
Updated 2014-04-14 11:34 am EST
Hits: 1894
Heartbleed 0-day OpenSSL security bug
Updated 2014-04-14 04:43 pm EST
Hits: 5132

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!