How To Setup your own Wikipedia like website Server on Centos 6...& RHEL-6....

MediaWiki
is a free, open source wiki software developed by Wikimedia Fountation.
It is the same software used by Wikipedia. You can build a Wikipedia
like website using MediaWiki in minutes or you can add this website
along with your existing websites...http://en.wikipedia.org/wiki/MediaWikiPrerequisites: 1- Set Static IP 2- Change Hostname 3- Disable Selinux4- Packages- Apache, MySQL, PHP and PHP modules5- mediawiki-1.21.1Step-1 Set Static IP[root@server ashutosh]# vim /etc/sysconfig/network-scripts/ifcfg-eth0---------------------------------------------------------------DEVICE="eth0"IPADDR=192.168.1.5NETMASK=255.255.255.0HWADDR="00:16:D4:39:5B:6F"NM_CONTROLLED="yes"ONBOOT="yes"----------------------------------------------------------------Step-2 Change Hostname[root@server ashutosh]# vim /etc/sysconfig/networkHOSTNAME=server.ashu.com[root@server ashutosh]# vim /etc/hosts192.168.1.5 server.ashu.com server[root@server ashutosh]# hostname server.ashu.comStep-3 Disable Selinux[root@server ashutosh]# vim /etc/selinux/config # This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing - SELinux security policy is enforced.# permissive - SELinux prints warnings instead of enforcing.# disabled - No SELinux policy is loaded.SELINUX=disable# SELINUXTYPE= can take one of these two values:# targeted - Targeted processes are protected,# mls - Multi Level Security protection.SELINUXTYPE=targetedStep-4 Now Install Required packages..

[root@server
ashutosh]# yum install mysql mysql-server httpd php php-mysql php-gd
php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring
php-pecl-apc php*intl wget unzip -yStep-5 Restart Services[root@server ashutosh]# /etc/init.d/mysqld start[root@server ashutosh]# /etc/init.d/httpd start[root@server ashutosh]# chkconfig mysqld on[root@server ashutosh]# chkconfig httpd onStep-6 Create MySQL root user password:[root@server ashutosh]# /usr/bin/mysql_secure_installation ------------------------------------------------------------------------------------------------NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!In order to log into MySQL to secure it, we'll need the currentpassword for the root user. If you've just installed MySQL, andyou haven't set the root password yet, the password will be blank,so you should just press enter here.Enter current password for root (enter for none): OK, successfully used password, moving on...Setting the root password ensures that nobody can log into the MySQLroot user without the proper authorisation.Set root password? [Y/n] yNew password: Re-enter new password: Password updated successfully!Reloading privilege tables.. ... Success!By default, a MySQL installation has an anonymous user, allowing anyoneto log into MySQL without having to have a user account created forthem. This is intended only for testing, and to make the installationgo a bit smoother. You should remove them before moving into aproduction environment.Remove anonymous users? [Y/n] ... Success!Normally, root should only be allowed to connect from 'localhost'. Thisensures that someone cannot guess at the root password from the network.Disallow root login remotely? [Y/n] ... Success!By default, MySQL comes with a database named 'test' that anyone canaccess. This is also intended only for testing, and should be removedbefore moving into a production environment.Remove test database and access to it? [Y/n] - Dropping test database... ... Success! - Removing privileges on test database... ... Success!Reloading the privilege tables will ensure that all changes made so farwill take effect immediately.Reload privilege tables now? [Y/n] ... Success!Cleaning up...All done! If you've completed all of the above steps, your MySQLinstallation should now be secure.Thanks for using MySQL!------------------------------------------------------------------------------------------------

Step-7 Create MySQL database and user for MediaWiki.For instance, here i create database called mediawikidb and user called mediawikiadmin with password centos.

Now the installer will perform the environment checks. If everything seems Ok, Click Continue.

3- Image

Enter MySQL Settings such as Database name, user and password etc.

4- ImageSelect MySQL storage engine and click Continue.

5- Image Enter your Wikipedia website name and create a new administrative account with username, password and mail id.

6- Image Click Continue.

7 Image-

Now th installer will begin to setup database, create administrative accounts and other things. Click Continue.

8 Image-

Now
the Wikipedia website has been installed successfully. The installer
will download a file called LocalSettings.php which contains all your
configuration details. It is recommended to download and keep it safe,
you will need it.

9 Image-

Copy the downloaded
LocalSettings.php file to the mediawiki directory. And set write
permissions of the LocalSettings.php and WebStart.php files.

From your browser. Now you will be redirected to your wikipedia home page.Thats
it. Start uploading contents and spread the word of your new wiki
website. For more information about installation and configuration and
user manuals..