If you encounter Warning or Fatal Error messages after uploading MediaWiki files via FTP, the issue may be caused by an incomplete or incorrect extraction of the installation archive on your local computer.
To avoid these problems, it is recommended to download and extract the MediaWiki package directly on the server using SSH.
Table of Contents
Before You Begin
You will need:
- An active hosting account
- SSH access enabled for your account
- An SSH client such as PuTTY, Bitvise, or a terminal application
Step 1: Connect to the Server via SSH
Connect to your hosting account using SSH.
Once connected, navigate to the directory where you want to download the MediaWiki installation package.
Step 2: Download MediaWiki
Download the latest MediaWiki package directly from the official source.
Example:
wget https://releases.wikimedia.org/mediawiki/1.35/mediawiki-1.35.0.tar.gz Note: The version number in the command may change over time. You can always obtain the latest download link from the official MediaWiki download page.
Step 3: Extract the Archive
After the download completes, extract the package using:
tar -zxvf mediawiki-1.35.0.tar.gz This will create a new directory containing the MediaWiki installation files.
Step 4: Enter the MediaWiki Directory
Move into the extracted directory:
cd mediawiki-1.35.0 Step 5: Launch Midnight Commander
Start Midnight Commander:
mc Midnight Commander is a file manager that simplifies moving files and directories directly from the terminal.
Step 6: Select the Installation Files
Inside Midnight Commander:
- Open the MediaWiki directory.
- From the menu, select:
File → Select Group
- Enter:
* to select all files and folders.
Alternatively, use your keyboard shortcuts to select the entire directory contents.
Step 7: Move the Files to the Website Directory
In the second Midnight Commander panel, open your website directory, typically:
public_html Use the TAB key to switch between panels.
After selecting the files:
- Press F6 (Move).
- Confirm the operation.
The MediaWiki files will be moved to your website directory.
Step 8: Run the Installer
Once the files have been moved successfully, open your website in a web browser.
For example:
https://yourdomain.com The MediaWiki installation wizard should start automatically.
Follow the on-screen instructions to:
- Configure the database
- Create an administrator account
- Set the site name
- Complete the installation
Verify the Installation
After installation is complete, confirm that:
- The main page loads correctly.
- You can log in to the administration interface.
- No PHP warnings or fatal errors are displayed.
- MediaWiki can connect to the database successfully.
Summary
If MediaWiki displays errors after being uploaded via FTP, downloading and extracting the installation package directly on the server using SSH is often the most reliable solution. After extracting the archive, move the files into the public_html directory and launch the installation wizard from your web browser to complete the setup.