Manual:Maintenance scripts/Running the scripts

The maintenance scripts must then be run from the command line. Users who do not access the server directly from its terminal will usually establish a connection through SSH.


 * For Linux/Unix users this is by using the SSH client in a shell.
 * For Windows users, one can use the SSH command line tool introduced in Windows 10 or alternatively use a third-party tool such as PuTTY shown below or use Windows Subsystem for Linux.

Linux/MacOS user
Most the Linux system and MacOS comes SSH client built-in. So you don't need to any SSH client. You can check SSH client in your system by running following command in your terminal.

If this command gives error then you need to install SSH client in your system.

Debian/Ubuntu:

MacOS:

Once you get the SSH client in your system then you can run following command to get into server.

The default port for SSH connection is  and user is. But shared hosting provider gives the custom user and SSH port number. Replace these values with yours.

Windows user
For Windows user, there are two ways to get into server.

Native SSH
You can install/enable SSH client using Windows Settings on Windows Server 2019 and Windows 10 devices. They support the SSH natively. See Official doc.

To install the OpenSSH component:
 * Open, select   >  , then select.
 * Scan the list to see if the OpenSSH is already installed. If not, at the top of the page, select, then:
 * Find  Client, then click.

It will install the SSH client in your system. Now, you can SSH to server using PowerShell.

Running the script
Once you get into to the server (See "Get into server" above) then you can follow these steps.

Step 1: Goto the MediaWiki root directory. In most cases, it would be

Step 2: Run the script

No shell access
On many shared hosts, you won't have shell access. The following extensions may be useful to run maintenance scripts via the web.