2

Removing duplicated One-Click Install files

 2 years ago
source link: https://help.dreamhost.com/hc/en-us/articles/360043577572-Removing-duplicated-One-Click-Install-files
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Removing duplicated One-Click Install files

Overview

There are several different ways to install WordPress. For example:

The One-Click Install service in the panel is the easiest option, however, it's important you ensure that WordPress has not already been manually installed into your site's directory using a different installation method. If a WordPress install already exists, the One-Click Install will proceed, but all old files will be appended with a timestamp.

For example, normal WordPress files will look like this:

  • index.php
  • wp-login.php
  • wp-settings.php

If these files already exist and you run the One-Click Install, the newly installed files from the One-Click Install will have a timestamp added. For example:

  • index.php.1555975213
  • wp-login.php.1555975213
  • wp-settings.php.1555975213

The following steps explain how to remove these duplicated files.

Removing the duplicated install files

  1. Log into your server via SSH.
  2. Navigate into your website's directory. Change example.com to your website.
    [server]$ cd ~/example.com
  3. Run the following command to delete these duplicated files. Just change the timestamp number.
    [server]$ find . -name "*.1555975213" -type f -delete
  4. Run ls -la and you'll see all of the duplicated files have been removed.

Did this article answer your questions?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK