ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Installing MediaWiki on CentOS 6

    IT Discussion
    centos linux centos 6 rhel 6 mediawiki
    3
    6
    1.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      Begin with a minimalist install of CentOS 6. You will need to get your networking configured before continuing. Make sure that you can reach your YUM repositories.

      Install the RHEL 6 EPEL:

      rpm -ivh http://mirrors.xmission.com/fedora/epel/6/i386/epel-release-6-7.noarch.rpm
      

      Now you can install the basic packages that will be needed for MediaWiki.

      yum -y install httpd php php-mysql php-gd mysql-server mysql
      yum -y install system-config-firewall-tui
      service mysqld start; mysql_secure_installation
      chkconfig httpd on; chkconfig mysqld on
      yum install mediawiki119
      

      MediaWiki will install to /var/www/mediawiki119 which is not the most convenient location for the files but there are several options there. You will need to edit:

      DocumentRoot "/var/www"
      <Directory "/var/www">
      DirectoryIndex index.html index.html.var index.php
      

      Once you have Apache configured as you would like it all you need to do is to restart Apache to pick up the new changes that you have made.

      service httpd restart
      

      You will also need to adjust your firewall to allow web connections. I find it easiest to handle this using the System Config Text UI.

      system-config-firewall-tui
      

      Once everything is complete you will have a working MediaWiki installation. However, there is an error in the MediaWiki 1.19 RPM and there are missing links in the /var/www/mediawiki119 directory that leave you with a basically working, but ugly un-themable wiki system and some significant confusion. So to fix this all we need to do is to manually create some missing links. In order to do so, simply run these commands and you will be all set.

      Originally posted on my Linux blog in 2012 here: http://web.archive.org/web/20140822224153/http://www.scottalanmiller.com/linux/2012/11/20/installing-mediawiki-on-centos-6/

      1 Reply Last reply Reply Quote 5
      • scottalanmillerS
        scottalanmiller
        last edited by

        I need to get this updated to CentOS 7.

        wirestyle22W 1 Reply Last reply Reply Quote 2
        • wirestyle22W
          wirestyle22 @scottalanmiller
          last edited by

          @scottalanmiller Would be great. Looking into creating a wiki for documentation purposes.

          1 Reply Last reply Reply Quote 0
          • travisdh1T
            travisdh1
            last edited by

            Do they have a tui for firewall-cmd yet?

            scottalanmillerS 1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @travisdh1
              last edited by

              @travisdh1 said in Installing MediaWiki on CentOS 6:

              Do they have a tui for firewall-cmd yet?

              Not that I have seen.

              travisdh1T 1 Reply Last reply Reply Quote 0
              • travisdh1T
                travisdh1 @scottalanmiller
                last edited by

                @scottalanmiller said in Installing MediaWiki on CentOS 6:

                @travisdh1 said in Installing MediaWiki on CentOS 6:

                Do they have a tui for firewall-cmd yet?

                Not that I have seen.

                I want to down vote RedHat.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post