Removing duplicated One-Click Install files
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:
- Downloading the files directly from WordPress.org and uploading them to your site
- Using wp-cli via SSH to install directly onto the server
- Using the One-Click Install service in the DreamHost panel
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
- Log into your server via SSH.
- Navigate into your website's directory. Change example.com to your website.
[server]$ cd ~/example.com
- Run the following command to delete these duplicated files. Just change the timestamp number.
[server]$ find . -name "*.1555975213" -type f -delete
- Run ls -la and you'll see all of the duplicated files have been removed.
Did this article answer your questions?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK