Tutorials Navigation
How to Install MediaWiki on Fedora
Tutorial Name: How to Install MediaWiki on Fedora
Category: PC Tutorials
Submitted By: Ry-Nasty
Date Added:
Comments: 0
Views: 2,139
Related Forum: PC Building Forum
Share:
1
Install MediaWiki . 'Yum' (Yellowdog Update Modified) is a package manager that will install all the required dependencies of mediawiki . Navigate to Applications->System Tools-->Terminal and become root. Then install mediawiki. Yum would also install php-mysql, php-pgsql, php, httpd because they are dependencies.
su
yum install mediawiki
2
Install mailcap. Apache (httpd) requires mailcap, but yum doesn't detect apache's needs and therefore you have to install it manually.
yum install mailcap
3
Also install mysql-server . For running mediawiki you also require a database server. The database server is not defined as a dependency for mediawiki because the database server can be either MySQL or PostgreSQL, and it does not have to be on the same computer. For installing mysql use:
yum install mysql-server mysql
and if you prefer PostgreSQL, type the following command:
yum install postgresql-server postgresql
4
Start the servers. Start the web server (httpd) and database server (mysql or postgresql) for them to function.
service mysqld start/service postgresql start
service httpd start
5
To make sure that the servers automatically start at boot-up, type the following commands:
chkconfig mysqld on
chkconfig httpd on
6
MediaWiki is installed in /usr/share/mediawiki with files specific to a site installed in /var/www/wiki which contains the following directories and files:
config/
config/index.php
images/
index.php
7
Files in /var/www/wiki are used as a template and Apache can only access /var/www/html if not modified. So run
cp -a /var/www/wiki /var/www/html
to copy the template directory to /var/www/html. After running the command your wiki configuration files are being copied to /var/www/html/wiki and wiki pages are stored in database server.
8
You might have successfully installed the wiki but the skin (the design and the css and js and images of the wiki) are still in /usr/share/mediawiki/skins which is not accessible by web server. You can make them accessible by copying them to the wiki directory:
cp -a /usr/share/mediawiki/skins /var/www/html/wiki
or create a soft link to the skins directory.
ln -s /usr/share/mediawiki/skins /var/www/html/wiki/skins
9
Navigate to localhost/wiki with your favourite browser. If you are accessing that page for the first time, it would ask you to setup the wiki. Follow that link which should take you to the setup page.
10
Fill in everything and click install button. Going with the default options will not do any harm. Choose either MySQL or PostgreSQL as your database server. It is highly recommended to use the superuser account and enter the username of the database superuser account and password. The default superuser account for MySQL is root and that of PostgreSQL is postgres. Also provide a suitable database prefix.
(Note: under Fedora 13 this step will fail due to write permissions on the config directory. hint: for SELinux cd /var/www/html/wiki; chcon -t httpd_sys_content_rw_t config. Also initialize the wikidb as described in [ Register or Signin to view external links. ] .)
11
After clicking Install MediaWiki, if everything goes right, MediaWiki installation successful page is displayed.
12
LocalSettings.php, which is one of the most important configuration file for mediawiki, has to be moved from config/ directory to the parent directory.
mv /var/www/html/wiki/config/LocalSettings.php /var/www/html/wiki
13
Also delete the config directory for security reasons.
rm -fr /var/www/html/wiki/config
14
Go to your wiki and the main page should be displayed.
Hope this helps.
Enjoy! - Nasty
Install MediaWiki . 'Yum' (Yellowdog Update Modified) is a package manager that will install all the required dependencies of mediawiki . Navigate to Applications->System Tools-->Terminal and become root. Then install mediawiki. Yum would also install php-mysql, php-pgsql, php, httpd because they are dependencies.
su
yum install mediawiki
2
Install mailcap. Apache (httpd) requires mailcap, but yum doesn't detect apache's needs and therefore you have to install it manually.
yum install mailcap
3
Also install mysql-server . For running mediawiki you also require a database server. The database server is not defined as a dependency for mediawiki because the database server can be either MySQL or PostgreSQL, and it does not have to be on the same computer. For installing mysql use:
yum install mysql-server mysql
and if you prefer PostgreSQL, type the following command:
yum install postgresql-server postgresql
4
Start the servers. Start the web server (httpd) and database server (mysql or postgresql) for them to function.
service mysqld start/service postgresql start
service httpd start
5
To make sure that the servers automatically start at boot-up, type the following commands:
chkconfig mysqld on
chkconfig httpd on
6
MediaWiki is installed in /usr/share/mediawiki with files specific to a site installed in /var/www/wiki which contains the following directories and files:
config/
config/index.php
images/
index.php
7
Files in /var/www/wiki are used as a template and Apache can only access /var/www/html if not modified. So run
cp -a /var/www/wiki /var/www/html
to copy the template directory to /var/www/html. After running the command your wiki configuration files are being copied to /var/www/html/wiki and wiki pages are stored in database server.
8
You might have successfully installed the wiki but the skin (the design and the css and js and images of the wiki) are still in /usr/share/mediawiki/skins which is not accessible by web server. You can make them accessible by copying them to the wiki directory:
cp -a /usr/share/mediawiki/skins /var/www/html/wiki
or create a soft link to the skins directory.
ln -s /usr/share/mediawiki/skins /var/www/html/wiki/skins
9
Navigate to localhost/wiki with your favourite browser. If you are accessing that page for the first time, it would ask you to setup the wiki. Follow that link which should take you to the setup page.
10
Fill in everything and click install button. Going with the default options will not do any harm. Choose either MySQL or PostgreSQL as your database server. It is highly recommended to use the superuser account and enter the username of the database superuser account and password. The default superuser account for MySQL is root and that of PostgreSQL is postgres. Also provide a suitable database prefix.
(Note: under Fedora 13 this step will fail due to write permissions on the config directory. hint: for SELinux cd /var/www/html/wiki; chcon -t httpd_sys_content_rw_t config. Also initialize the wikidb as described in [ Register or Signin to view external links. ] .)
11
After clicking Install MediaWiki, if everything goes right, MediaWiki installation successful page is displayed.
12
LocalSettings.php, which is one of the most important configuration file for mediawiki, has to be moved from config/ directory to the parent directory.
mv /var/www/html/wiki/config/LocalSettings.php /var/www/html/wiki
13
Also delete the config directory for security reasons.
rm -fr /var/www/html/wiki/config
14
Go to your wiki and the main page should be displayed.
Hope this helps.
Enjoy! - Nasty
Ratings
Comments
Related Tutorials
- 01. Emulating Xbox 360 on PC for Running COD4 With Mods(3,492)
- 02. How to: Matrix Numbers | Batch File(1,903)
- 03. How to Password Protect Files on Windows(857)
- 04. How to play Socom 2/3/ and Combined Assault on PC(6,717)
- 05. Modern Warfare 2 Vac Ban Bypass Tutorial(6,133)
- 06. How to embed an image on TheTechGame(3,098)
- 07. [PC] NIOH 2 OTHER USER SAVE RESIGN(12,981)
- 08. Host bot lobbies! Full Tutorial!(11,243)
- 09. Unban yourself [Plutonium BO2](14,240)
- 10. Fall Guys - How to Change Your Name Color on Fall Guys(8,385)
- 11. Best Crosshair Settings for Valorant(6,525)
- 12. Othercide The Surgeon Boss Guide(2,539)
- 13. Othercide Remembrances Unlock Guide(4,460)
- 14. Othercide Beginners Tips and Tricks(2,708)
- 15. How to Fix Grounded Crashes, Loading Time, Low FPS and Other(4,845)
"How to Install MediaWiki on Fedora" :: Login/Create an Account :: 0 comments