아파치와 php를 재설치하고 워드프레스를 재 실행했다. 워드프레스에서 이미지 파일을 업로드하려는데 제목과 같은 에러 메세지가 생성되었다. wp-content/uploads 디렉토리의 모드를 766으로 변경하라고 한다.
# chmod -R 766 uploads/
하지만 이번의 경우는 아파치 설정파일에서 실행 사용자와 그룹명을 워드프레스 디렉터리 사용자.그룹과 일치 시켜주어야 했다.
vi httpd.conf
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User worduser
Group wordgrp
# ls -al
합계 32
drwxr-xr-x. 7 worduser wordgrp 4096 1월 4 13:17 .
drwxr-xr-x. 5 worduser wordgrp 4096 1월 2 12:05 ..
-rw-r--r--. 1 worduser wordgrp 28 11월 21 14:12 index.php
drwxr-xr-x. 4 worduser wordgrp 4096 12월 26 13:54 languages
drwxr-xr-x. 13 worduser wordgrp 4096 12월 26 13:53 plugins
drwxr-xr-x. 11 worduser wordgrp 4096 11월 21 14:20 themes
drwxr-xr-x. 2 worduser wordgrp 4096 12월 26 13:54 upgrade
drwxr-xr-x. 12 worduser wordgrp 4096 1월 4 09:09 uploads
- The uploaded file could not be moved to wp-content/uploads/2023/01. 2023년 1월 4일
- Linux 리눅스 디스크 사용량 확인 2022년 3월 23일
- 현재 서버의 포트가 열려있는지 확인하는 방법 2021년 12월 21일
- catalina.out 파일 최근 10000라인으로 자르기 2021년 4월 8일
- 리눅스 targ gzip을 이용한 디렉토리 압축 백업 2019년 4월 10일
- Window10에서 원격서버 포트 점검 2019년 1월 21일
- 리눅스 특정 문자열을 포함하는 파일 찾기 2019년 1월 8일
- Vmware에서 설치된 CentOS 7의 네트워크 설정 2017년 7월 24일
- AH00558: Set the ‘ServerName’ directive globally to suppress this message 2017년 4월 18일
- configure: error: You need a C++ compiler for C++ support. 2017년 4월 18일
- CentOS에서 컴파일할 때 no acceptable C compiler found in $PATH 에러 메세지 2017년 4월 18일
- XShell 단축키 모음 2016년 9월 5일
- ubuntu 일반 계정에서 SUDO를 이용하여 root 암호 변경하기 2016년 8월 30일
- yum으로 Linux man 설치 2016년 3월 14일
- vi 편집기 단어 바꾸기 2016년 3월 13일
- vi 편집기 환경 설정 2016년 3월 12일
- Linux sudo – 패스워드없이 root권한 명령 실행 2016년 3월 9일
- tar gzip bzip2 bz2 명령어 정리 2016년 3월 8일
- XShell 접속 리눅스 한글 2016년 3월 8일
- Sed 사용법 2016년 3월 7일
- Linux SCP 명령어 사용법 2016년 2월 29일
- VMware Clone 2016년 2월 25일
- CentOS7 ~/.bash_profile 예제 2015년 5월 2일
- CentOS7 Linux Tomcat7 자동시작 2015년 4월 8일
- CentOS7 Linux Subversion(SVN) 설치 2015년 4월 7일
- CentOS7 vsftpd 설치 2015년 3월 26일
- vsftpd 서비스 시작 메세지 – Redirecting to /bin/systemctl… 2015년 3월 17일
- [펌] yum 사용법 2015년 3월 17일
- Linux 일반 팁 2015년 3월 15일
- apache php mysql tomcat 연동 설치 2014년 10월 7일
- Vmware에 CentOS 설치 2014년 10월 1일
- VMWare 설치 2014년 9월 29일
- SSH 자동 로그인 2014년 9월 15일
- 리눅스 검색 tip 2014년 9월 15일
- 리눅스 아파치 프로세스 소유자 변경하기 2014년 9월 2일