Mediawiki Installation

From ◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞
Jump to: navigation, search

Mediawiki Installation

apt-get update 
apt-get install nginx php5-fpm php5-mysql mysql-server
mkdir -p /var/www/
adduser www-data www-data
chown -R www-data:www-data /var/www
chmod 755 /var/www

Follow the instructions from the Nginx article under §Mediawiki Installation.

sudo apt-get install php5-intl php5-xcache php5-cli imagemagick git 
sudo service nginx restart
cd /var/www
git clone https://github.com/wikimedia/mediawiki.git

Configurations

Composer

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
composer install --no-dev

In the composer.json file, add the following.

"require": {
"kzykhys/pygments": ">=1.0",
},

Permissions

Go to the web address and install Mediawiki through a series of steps. After the installation, set the [User Rights| permissions correctly].

To add a user and give it sudo privileges, use the following:

adduser brandon
gpasswd -a yourusername sudo 
gpasswd -a brandon www-data

gpasswd will add your user to the sudo group. You may have to add the following to the sudoers file it still the user does not have all privileges.

visudo

Add this

brandon All=(ALL:ALL) ALL

under # User privilege specification. Then

sudo chown www-data:www-data /var/www/mediawiki/LocalSettings.php
sudo chmod 660 /var/www/mediawiki/LocalSettings.php
sudo chown www-data:www-data /var/www/mediawiki/images

Final Configuration

  • Continue on to Mediawiki for the last few steps.

Debugging

/var/log/nginx/error.log

Links

http://ubuntuguide.org/wiki/MediaWiki_tips