The installer will download a file called LocalSettings.php which contains all your configuration details. Now the Wikipedia website has been installed successfully. Now th installer will begin to setup database, create administrative accounts and other things. Navigate to or domain/mediawiki/ from your browser and follow the onscreen instructions. ~]# mv mediawiki-1.21.1/ /var/www/html/mediawiki If you want to setup MediaWiki along with your Website, then move it to a sub directory. ~]# wget Įxtract and move the file to your website root folder. Getting and Preparing to install MediaWikiĭownload the latest version from here or you can download it using the following command. # targeted - Targeted processes are protected, # SELINUXTYPE= can take one of these two values: # disabled - No SELinux policy is loaded. # permissive - SELinux prints warnings instead of enforcing. # enforcing - SELinux security policy is enforced. # SELINUX= can take one of these three values: # This file controls the state of SELinux on the system. html]# /etc/init.d/iptables restartĭisable SELinux and reboot your system: ~]# vi /etc/sysconfig/selinux Mysql> GRANT ALL PRIVILEGES ON mediawikidb.* TO 'mediawikiadmin' IDENTIFIED BY 'centos' Type '\c' to clear the current input statement. Other names may be trademarks of their respective Oracle is a registered trademark of Oracle Corporation and/or itsĪffiliates. Server version: 5.1.69 Source distributionĬopyright (c) 2000, 2013, Oracle and/or its affiliates. Thanks for using MySQL!Ĭreate MySQL database and user for MediaWiki:įor instance, here i create database called mediawikidb and user called mediawikiadmin with password centos. All done! If you've completed all of the above steps, your MySQL installation should now be secure. Success! Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Success! - Removing privileges on test database. Remove test database and access to it? - Dropping test database. This is also intended only for testing, and should be removed before moving into a production environment. Success! By default, MySQL comes with a database named 'test' that anyone can access. This ensures that someone cannot guess at the root password from the network. Success! Normally, root should only be allowed to connect from 'localhost'. You should remove them before moving into a production environment. This is intended only for testing, and to make the installation go a bit smoother. Success! By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. Set root password? y New password: Re-enter new password: Password updated successfully! Reloading privilege tables. ![]() Setting the root password ensures that nobody can log into the MySQL root user without the proper authorisation. Enter current password for root (enter for none): OK, successfully used password, moving on. If you've just installed MySQL, and you haven't set the root password yet, the password will be blank, so you should just press enter here. ~]# chkconfig httpd onĬreate MySQL root user password: ~]# /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 current password for the root user. Start/restart MySQL and Apache services now: ~]# /etc/init.d/mysqld start ~]# 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 -y
0 Comments
Leave a Reply. |