본문 바로가기
IT

UPGRADE WORDPRESS SSH ON UBUNTU 16.04 LTS

by Oh.mogilalia 2018. 5. 18.

UPGRADE WORDPRESS SSH ON UBUNTU 16.04 LTS

sudo mysql -u root -p wordpress > wordpress.sql - 응답 더딤 취소, 백업을 대치
sudo rsync -Waq /home/mogibu/apm/www/wordpress/wp-content  /home/mogibu/backup/  역시 백업으로...
sudo rm -rf /var/www/html/wp-includes
sudo rm -rf /var/www/html/wp-admin
cd /tmp/ 
wget https://downloads.wordpress.org/release/ko_KR/wordpress-4.9.6.zip
unzip wordpress-4.9.6.zip
sudo cp -a /tmp/wordpress/* /home/mogibu/apm/www/wordpress/wp_content
http://wordpress.mogibu.kro.kr/wp-admin/upgrade.php

Sometimes, folder permission restrictions prevent webmasters from updating WordPress from within its dashboard… If you cannot update or upgrade WordPress from its dashboard, then you might want to do it via SSH terminal console…

때로는 폴더 권한으로 인해 웹 마스터가 대시 보드 내에서 WordPress를 업데이트 할 수 없습니다. 대시 보드에서 WordPress를 업데이트하거나 업그레이드 할 수없는 경우 SSH 터미널 콘솔을 통해 할 수 있습니다.

When WordPress content in a directory that’s restricted, every time you wish to install or delete plugins and themes you’ll get an error…

제한된 디렉토리의 WordPress 콘텐츠를 플러그인 또는 테마를 설치하거나 삭제할 때마다 오류가 발생합니다 ...

If you can’t resolve the issues by re-adjusting the directory permissions, you may have to update / upgrade WordPress via the command line. This brief tutorial is going to show you how to do it easily.

디렉터리 사용 권한을 다시 조정하여 문제를 해결할 수 없으면 명령 줄을 통해 WordPress를 업데이트하거나 업그레이드해야 할 수 있습니다. 이 간단한 자습서는 쉽게 수행하는 방법을 보여줍니다.

When you’re ready to update or upgrade WordPress via SSH terminal, continue below:

SSH 터미널을 통해 WordPress를 업데이트하거나 업그레이드 할 준비가되면 다음을 계속하십시오.

STEP 1: BACKUP WORDPRESS DATABASE

Before making changes to your WordPress site it’s recommended that you always backup your database content. To do that, run the commands below

WordPress 사이트를 변경하기 전에 항상 데이터베이스 콘텐츠를 백업하는 것이 좋습니다. 그렇게하려면 아래 명령을 실행하십시오.

sudo mysql -u root -p wp_databaseName > wp_databaseName.sql

Replacing wp_databaseName with your database name.. that should create a backup of the database.. or you may want to use a backup plugins for WordPress… There are many in the plugin store.

wp_databaseName을 데이터베이스 이름으로 바꾸십시오. 데이터베이스의 백업을 만들어야합니다. 아니면 WordPress 용 백업 플러그인을 사용하고 싶을 수도 있습니다 ... 플러그인 저장소에는 많은 것이 있습니다.


STEP 2: BACKUP WORDPRESS CONTENT

You may also want to backup WordPress content. Use Rsync to copy WordPress content directory to a backup location. To do that, run the commands below.

WordPress 콘텐츠를 백업 할 수도 있습니다. Rsync를 사용하여 WordPress 콘텐츠 디렉토리를 백업 위치에 복사합니다. 그렇게하려면 아래 명령을 실행하십시오.

sudo rsync -Waq /var/www/html/wp_content  /path/to/backup/directory/

After backing up WordPress database and content, continue below to begin upgrading WordPress.

WordPress 데이터베이스 및 콘텐츠를 백업 한 후 아래로 계속 진행하여 WordPress 업그레이드를 시작하십시오.


STEP 3: DELETE WORDPRESS WP-INCLUDES AND WP-ADMIN DIRECTORIES

To begin upgrading, delete the existing wp-admin and wp-include directories.

업그레이드를 시작하려면 기존 wp-admin 및 wp-include 디렉토리를 삭제하십시오.

sudo rm -rf /var/www/html/wp-includes sudo rm -rf /var/www/html/wp-admin

After deleting WordPress existing folders for wp-admin and wp-includes continue to downloading WordPress content.

wp-admin 및 wp-includes에 대한 WordPress 기존 폴더를 삭제 한 후 WordPress 콘텐츠를 계속 다운로드합니다.


STEP 4: DOWNLOAD THE LATEST WORDPRESS CONTENT

Next, use the link below to download WordPress latest content online

다음, 아래 링크를 사용하여 WordPress 최신 컨텐츠를 온라인으로 다운로드하십시오.

cd /tmp/ && wget https://wordpress.org/latest.zip Unzip the content unzip latest.zip


STEP 5: MOVE WORDPRESS LATEST CONTENT TO THE ROOT DIRECTORY

Finally, run the commands below to copy WordPress latest content to the root directory

마지막으로 WordPress 최신 내용을 루트 디렉토리에 복사하려면 아래 명령을 실행하십시오.

sudo mv /tmp/wordpress/* /var/www/html/wp_content

After moving the newest content to the root directory, open your browser and browse to your host to run W0rdPress upgrade script.

최신 컨텐츠를 루트 디렉토리로 이동 한 후 브라우저를 열고 호스트로 이동하여 W0rdPress 업그레이드 스크립트를 실행하십시오.

http://www.example.com/wp-admin/upgrade.php

The link above is use to upgrade WordPress and its database. It may take a few seconds for this process to complete, after which, your systems should be upgraded and ready to use.

위의 링크는 WordPress 및 해당 데이터베이스를 업그레이드하는 데 사용됩니다. 이 프로세스가 완료되는 데 몇 초가 걸릴 수 있습니다. 그런 다음 시스템을 업그레이드하고 사용할 준비가되어야합니다.

This is how to Upgrade WordPress via SSH command line.

SSH 명령 행을 통해 WordPress를 업그레이드하는 방법입니다.

Enjoy!

You may also like the post below:

출처 https://websiteforstudents.com/upgrade-wordpress-via-ssh-on-ubuntu-16-04-lts/

'IT' 카테고리의 다른 글

Plex metadata and index data HDD로 옮기기  (0) 2018.05.20
wordpress 권한 및 퍼미션  (0) 2018.05.18
USB-HDD 마운트  (0) 2018.05.18
워드프레스 한국어 버전으로 변경  (0) 2018.05.14
nextcloud memcache redis 설치  (0) 2018.05.12