Manual:Installing MediaWiki/hi

इस पृष्ठ पर मीडियाविकि को स्थापित करने के आसान चरण बताए गए हैं, जिसके साथ कॉन्फ़िगरेशन के अतिरिक्त चरण Manual:System_administration#Configuration पर उपलब्ध हैं।

मीडियाविकि को स्थापित करने के लिए आपको कुछ हद तक एक वेब होस्ट से अनुकूल होना होगा। अगर आपके पास Apache (वेब सर्वर सॉफ़्टवेयर), PHP और MySQL/MariaDB (डेटाबेस) का अनुभव है तो स्थापना और आसान हो जाएगी। अतिरिक्त सहायता Project: Support desk पर उपलब्ध है।

नीचे के परिशिष्ट अनुभाग में मैन्युअल स्थापना के विकल्प बताए गए हैं। इसमें विशिष्ट सिस्टम कॉन्फ़िगरेशन्स के लिए स्थापना की टिप्पणियाँ भी मौजूद हैं।



स्थापना की आवश्यकताएँ देखें
जाँचें की आपका सिस्टम स्थापना की आवश्यकताओं को पूरा करता है कि नहीं।

मीडियाविकि का जो संस्करण आप स्थापित करना चाहते हैं उसका भी देखें।



मीडियाविकि सॉफ़्टवेयर डाउनलोड करें
आधिकारिक डाउनलोड पृष्ठ से मीडियाविकि का tar फ़ाइल डाउनलोड करें।

आम तौर पर अगर आप एक उत्पादन पर्यावरण चला रहे होते हैं, आपको नवीनतम स्थिर प्रकाशन की ज़रूरत पड़ेगी, जो है MediaWiki ।



मीडियाविकि सॉफ़्टवेयर को एक्सट्रैक्ट करें
डाउनलोड किए गए फ़ाइल  या फिर   फ़ाइल प्रारूप में होगा। आपको इस्तेमाल से पहले इस संरक्षण फ़ाइल को अनकंप्रेस करना होगा। आप लोकल रूप से फ़ाइल को अनकंप्रेस कर सकते हैं (और फिर FTP की मदद से सर्वर पर अपलोड कर सकते हैं) या फिर सीधे अपने सर्वर पर भी कर सकते हैं।

Windows पर इस अनकंप्रेस करने का काम आम तौर पर 7-Zip (निः शुल्क), WinZip, WinRAR या IZArc (निः शुल्क) की मदद से किया जाता है।

लिनक्स और Mac OS X पर आप इस कमांड की मदद से फ़ाइल को अनकंप्रेस कर सकते हैं:



अपने वेब सर्वर पर फ़ाइलें अपलोड करें
If you have not already uploaded the files to your web server (or copied, if your web server software runs locally on your ), do so now.

Upload the files to your web server's web directory either by:


 * 1) directly copying the unzipped folder or
 * 1) by using an FTP client such as FileZilla (Windows, OSX and Linux) or Cyberduck (Windows and OSX).
 * 1) by using software already provided by your hosting service, such as the cPanel File Manager

If your upload tool has a "change file names to lowercase" option, then you must disable this.

If you use the Apache HTTPD web server, the correct directory is specified in your  file in the  directive. By default, this is  or.

The exact location of the Apache server settings and directories file  depends on your operating system. In Debian and Ubuntu, the file for Apache server settings and directories is. In Red Hat and Fedora, the file is.

Rename the uploaded folder to whatever you would like to have in the URL. If your web server is running as  for example, renaming to   directory would mean you would access your wiki at.

Set up the database
MediaWiki's installation script will ask you for a database name and database username, so MediaWiki can store the content of the wiki.

If you already have a database server and know the password for the "root" (admin) user, skip to the #Run the installation script section below.

If you don't know the password for the root user, for example if you are on a hosted server, you will have to create a new database before you run the MediaWiki installation script in the next section.

MariaDB/MySQL are the recommended databases. PostgreSQL and SQLite have limited support and should not be used unless there is a reason to. If you're unsure which database to choose, use MariaDB.

After finishing the database setup, continue with #Run the installation script below.

SQLite
No further setup is required for SQLite if the  module for PHP is installed on the system.

On the SQLite installation page, choose a database name (which can be anything) and the SQLite database directory. For the database directory, the installer will attempt to use a subdirectory outside of the document root and create it if needed. If this directory is not safe (for example, web-readable), change it manually to avoid making it accessible to everyone on the web.

MariaDB/MySQL
Create the MariaDB/MySQL database and database user. There are several ways:


 * Use a control panel software offered by your Hosting service (example: PhpMyAdmin)
 * Use ssh to log into your host and type the commands below into a MySQL prompt. See the corresponding documentation of your hosting provider. Alternatively, contact your hosting provider to have them create an account for you.

The following commands create a database named, a user named  , and set permissions for the user on that database.

Only if your database is not running on the same server as your web server, you need to give the appropriate web server hostname ( in the example below):

PostgreSQL
If you are using PostgreSQL, you will need to either have a database and user created for you, or supply the name of a PostgreSQL user with "superuser" privileges to the configuration form. Often, this is the database user named. The following commands on a Linux command-line, as the postgres user, create a database user named, and a database named   owned by the user named.

createuser -S -D -R -P -E wikiuser (then enter the database password) createdb -O wikiuser my_wiki

or as superuser (default postgres) execute the following commands at the database prompt:

Beware of the list of known issues when running MediaWiki with PostgreSQL.

Run the installation script
Next, complete the installation of MediaWiki by going to the URL of your MediaWiki installation in your web browser: Follow the instructions in.

Further configuration

 * - Additional configuration
 * - Wiki administration

Keep up to date!
Once installed, make sure you stay up to date with releases, and keep your server secure!

Alternatives to manual installation
Manual installation is often the preferred method because it gives the user more control and insight into how their wiki is installed, making troubleshooting and maintenance easier. Automated processes, packages, bundles, and services all come with their own idiosyncrasies.

Instead of manually installing MediaWiki, alternative options might be easier:
 * pre-integrated software appliances
 * hosting services with 1-click installation, or wiki farms

See also the.

System-specific instructions
The pages listed on give more detailed installation instructions aimed at specific systems.

However, by and large these per-system docs are less maintained and might not always be up to date. First consult (this page) before looking at per-system installation documentation.

Running multiple wikis
Refer to Manual:FAQ#Installation and configuration.

Importing an existing wiki database
Refer to Manual:FAQ#Installation and configuration.