오류 내용 확인
워드프레스를 업데이트 할 때 다음과 같은 메시지가 표시된다면

또는 다음과 같은 메시지가 표시된다면

If SELinux is installed check to make sure that
httpd_can_network_connect
is set to 1setsebool -P httpd_can_network_connect=1의 설정으로 해결할 수 있습니다.
해결 방법
다음과 같이 실행합니다.
$ getenforce
Enforcing
$ getsebool httpd_can_network_connect
httpd_can_network_connect --> off
$ sudo setsebool -P httpd_can_network_connect=1
$ getsebool httpd_can_network_connect
httpd_can_network_connect --> on
$ ls -l /var/www
total 4
drwxr-xr-x. 2 root root 6 Aug 8 2019 cgi-bin
drwxr-xr-x. 2 root root 25 Apr 20 04:49 html
drwxr-xr-x. 5 apache apache 4096 May 9 04:35 wordpress
$ groups
centos adm wheel systemd-journal
$ sudo usermod -a -G apache centos
위 설정을 적용하기 위해 재 로그인을 합니다.
$ groups
centos adm wheel apache systemd-journal
$ sudo chown -R centos:apache /var/www
$ ls -la /var
drwxr-xr-x. 5 centos apache 50 May 9 05:03 www
$ sudo chmod 2775 /var/www
$ ls -la /var
drwxrwsr-x. 5 centos apache 50 May 9 05:03 www
$ find /var/www -type d -exec sudo chmod 2775 {} \;
$ find /var/www -type f -exec sudo chmod 0664 {} \;
$ ls -la /var/www/
total 4
drwxrwsr-x. 5 centos apache 50 May 9 05:03 .
drwxr-xr-x. 20 root root 278 Mar 20 02:46 ..
drwxrwsr-x. 2 centos apache 6 Aug 8 2019 cgi-bin
drwxrwsr-x. 2 centos apache 25 Apr 20 04:49 html
drwxrwsr-x. 5 centos apache 4096 May 9 04:35 wordpress
$ ls -la /var/www/wordpress
total 220
drwxrwsr-x. 5 centos apache 4096 May 9 04:35 .
drwxrwsr-x. 5 centos apache 50 May 9 05:03 ..
-rw-rw-r--. 1 centos apache 201 May 9 04:28 .htaccess
-rw-rw-r--. 1 centos apache 420 Mar 26 10:52 index.php
-rw-rw-r--. 1 centos apache 19935 Mar 26 10:52 license.txt
-rw-rw-r--. 1 centos apache 20 May 7 13:33 phpinfo.php
-rw-rw-r--. 1 centos apache 7368 Mar 26 10:52 readme.html
-rw-rw-r--. 1 centos apache 6939 Mar 26 10:52 wp-activate.php
drwxrwsr-x. 9 centos apache 4096 Mar 26 10:52 wp-admin
-rw-rw-r--. 1 centos apache 369 Mar 26 10:52 wp-blog-header.php
-rw-rw-r--. 1 centos apache 2283 Mar 26 10:52 wp-comments-post.php
-rw-rw-r--. 1 centos apache 3119 May 9 04:35 wp-config.php
-rw-rw-r--. 1 centos apache 2898 Mar 26 10:52 wp-config-sample.php
drwxrwsr-x. 7 centos apache 99 May 9 04:31 wp-content
-rw-rw-r--. 1 centos apache 3955 Mar 26 10:52 wp-cron.php
drwxrwsr-x. 20 centos apache 8192 Mar 26 10:52 wp-includes
-rw-rw-r--. 1 centos apache 2504 Mar 26 10:52 wp-links-opml.php
-rw-rw-r--. 1 centos apache 3326 Mar 26 10:52 wp-load.php
-rw-rw-r--. 1 centos apache 47597 Mar 26 10:52 wp-login.php
-rw-rw-r--. 1 centos apache 8483 Mar 26 10:52 wp-mail.php
-rw-rw-r--. 1 centos apache 19120 Mar 26 10:52 wp-settings.php
-rw-rw-r--. 1 centos apache 31112 Mar 26 10:52 wp-signup.php
-rw-rw-r--. 1 centos apache 4764 Mar 26 10:52 wp-trackback.php
-rw-rw-r--. 1 centos apache 3150 Mar 26 10:52 xmlrpc.php
업데이트 정상 종료 결과 확인
업데이트 대상을 선택해서 [플러그인 업데이트] 버튼을 클릭합니다.

SSH SFTP Updater Support용 업데이트 화면이 표시됩니다. Upload Pravate Key 파일을 선택한 후 [처리하기] 버튼을 클릭합니다.

다음과 같이 표시된다면 업데이트는 성공했습니다.

전체 목록

AWS EC2 웹 서비스(Wordpress) 구축 전체 글 목록
EC2(Elastic Compute Cloud) 웹 서비스 구축 전체 글워드프레스 설치 , 환경 설정 전체 글