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
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.

Running the script
Once you get into to the server 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.