InMotion Hosting Support Center

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:


    Change the permissions on the folder to 775 and Save.

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


    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.

Was this article helpful?
Continued Education in Course 102: Adding content to MediaWiki
You are viewing Section 1: Enabling user image uploads in MediaWiki
Section 0: How to format content in MediaWiki
Section 2: How to Enable File Uploads in MediaWiki

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

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Post a Comment

Email Address:
Phone Number:

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

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


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:
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!