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.

Continued Education in Course 102: Adding content to MediaWiki
You are viewing Section 7: Enabling user image uploads in MediaWiki
Section 6: How to format content in MediaWiki
Section 8: How to insert images into 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 this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

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

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

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?

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!