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.

Like this Article?

Login to comment.

Your Opinion Matters

... but we need to know what you're thinking!

I'm James Richardson, your friendly Community Support technician, and I wrote the article you're looking at now. I like to think it's perfect, but I'm sure you have some suggestions. Please, let me know what they are!

Feedback
Your Email Address
Because we'd like to talk with you!

Latest Questions

If you need some help, submit your question to our Community!
We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)
Ask a Question!
Recent Questions
  1. I can't access my website
  2. we-creation.com server down
  3. How do I delete the DNS entry?

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!