Configuring new mediawiki
From Notes_Wiki
<yambe:breadcrumb>Mediawiki configuration</yambe:breadcrumb>
Configuring new mediawiki
- Install required packages 'yum -y install php-mysql php php-xml httpd mysql-server mysql'
- Download latest mediawiki source code from Internet
- Extract mediawiki source in some folder (preferably /usr/share/mediawiki-<name>)
- Open mediawiki page in browser. You might have to add alias in httpd.conf for mediawiki (in appropriate VirtualHost). Example alias
- Alias /<name> /usr/share/mediawiki-<name>
- <Directory "/usr/share/mediawiki-<name>">
- Order deny,allow
- Deny from all
- Allow from 127.0.0.1
- </Directory>
- Use GUI to configure media wiki in following manner:
- Click on setup wiki first option
- Leave language and wiki language as English and choose continue
- Click continue on environment check page. Note that the message 'The environment has been checked. You can install MediaWiki.' should be present.
- Choose database type as Mysql
- Leave database host as localhost
- Give appropriate database name and leave table prefix empty
- Use mysql 'root' user for installation. Enter correct mysql root password and click continue
- Deselect 'Use same account as for installation option'
- Specify appropriate database username and choose suitable password. The password chosen should ideally be different from mysql root password.
- Select 'Create account if it does not exist already'
- Leave storage enginer as 'InnoDB' and database character set as 'Binary'. Choose continue.
- Give appropriate name for wiki
- Leave project namespace as same as wikiname
- Create administrator account for wiki with administrator name preferably as 'root'. Enter desired root password twice and then admin email address.
- Choose 'Ask me more questions' and click continue
- Choose appropriate value for user rights profile
- Choose appropriate license for wiki
- Enable all types of email notifications
- Enable all extensions
- Do not enable file uploads here. If file uploads are desired then setup uploads as explained in Enabling and using file uploads with mediawiki after basic wiki is setup.
- Leave 'No caching' option selected and choose 'continue'
- Click continue for actual installation
- Click continue after installation
- A pop-up box for saving LocalSettings.php file would appear. Save the file in your local machine. Copy file to folder where wiki tar-ball was extracted on server, for example, '/var/www/html/wiki'
- Download LocalSettings.php file and save it in mediawiki base folder (/usr/share/mediawiki-<name>)
<yambe:breadcrumb>Mediawiki configuration</yambe:breadcrumb>