How to Install MediaWiki on Fedora
Install MediaWiki ., Install mailcap., Also install mysql-server ., Start the servers., To make sure that the servers automatically start at boot-up, type the following commands: chkconfig mysqld on chkconfig httpd on , MediaWiki is installed in...
Step-by-Step Guide
-
Step 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 -
Step 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 , 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 , Start the web server (httpd) and database server (mysql or postgresql) for them to function. service mysqld start/service postgresql start service httpd start ,,, 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. , 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 , If you are accessing that page for the first time, it would ask you to setup the wiki.
Follow http://localhost/wiki/config/index.php which should take you to the setup page. , 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 https://www.mediawiki.org/wiki/Manual:
Installing_MediaWiki#MySQL .),, mv /var/www/html/wiki/config/LocalSettings.php /var/www/html/wiki , rm
-fr /var/www/html/wiki/config , Enjoy and have fun! -
Step 3: Also install mysql-server .
-
Step 4: Start the servers.
-
Step 5: To make sure that the servers automatically start at boot-up
-
Step 6: type the following commands: chkconfig mysqld on chkconfig httpd on
-
Step 7: 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
-
Step 8: Files in /var/www/wiki are used as a template and Apache can only access /var/www/html if not modified.
-
Step 9: 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.
-
Step 10: Navigate to http://localhost/wiki with your favourite browser.
-
Step 11: Fill in everything and click install button.
-
Step 12: After clicking Install MediaWiki
-
Step 13: if everything goes right
-
Step 14: MediaWiki installation successful page is displayed.
-
Step 15: LocalSettings.php
-
Step 16: which is one of the most important configuration file for mediawiki
-
Step 17: has to be moved from config/ directory to the parent directory.
-
Step 18: Also delete the config directory for security reasons.
-
Step 19: Go to your wiki (http://localhost/wiki) and the main page should be displayed.
Detailed Guide
'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
Apache (httpd) requires mailcap, but yum doesn't detect apache's needs and therefore you have to install it manually. yum install mailcap , 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 , Start the web server (httpd) and database server (mysql or postgresql) for them to function. service mysqld start/service postgresql start service httpd start ,,, 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. , 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 , If you are accessing that page for the first time, it would ask you to setup the wiki.
Follow http://localhost/wiki/config/index.php which should take you to the setup page. , 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 https://www.mediawiki.org/wiki/Manual:
Installing_MediaWiki#MySQL .),, mv /var/www/html/wiki/config/LocalSettings.php /var/www/html/wiki , rm
-fr /var/www/html/wiki/config , Enjoy and have fun!
About the Author
Natalie Flores
Professional writer focused on creating easy-to-follow cooking tutorials.
Rate This Guide
How helpful was this guide? Click to rate: