워드프레스 – Contact Form 7 메일 기능 disable

워드프레스 플러그인 중에 사용자 폼을 위햇 Contact Form 7 을 설치해서 사용한다.

그런게, 메일 기능을 설정해야 제대로 동작하고, 메시지도 볼수 있고 이럴줄 알았는데

Flamingo 플러그인을 설치하고, 메일 기능을 disable 하면 정상적으로 사용이 가능했다.

아래 그림처럼 만든 Contact form에 추가 세팅에 메일 disable 을 추가하고,

![](assets/images/2023/01/image-3.png?resize=680%2C419&ssl=1)

skip_mail: on

해당 컨택 폼에서 메시지를 남기면

Flamingo 메뉴에서 해당 글을 볼 수 있다.

![](assets/images/2023/01/image-4.png?resize=954%2C471&ssl=1)

메일을 비활성화 하지 않으면 에러메시지가 자꾸 떠서 메시지는 쌓이는데, 사용자에게는 에러가 발생한 것 처럼 나타난다.

끝.

워드프레스 – AWS 라이트세일 bitnami 버전 php.ini 수정

Lightsail Bitnami WordPress 인스턴스에서 PHP 업로드 크기 제한을 늘리려면 어떻게 해야 합니까?

이게 내가 하고 싶은 질문인데, 완전 잘 해결책이 적혀있음

링크로 꼭 방문해서 습득하시길

https://aws.amazon.com/ko/premiumsupport/knowledge-center/lightsail-bitnami-wordpress-upload-limit/Lightsail Bitnami WordPress 인스턴스에서 업로드 크기 변경Lightsail Bitnami WordPress 인스턴스에서 PHP 업로드 크기 제한을 늘리려면 어떻게 해야 합니까? 최종 업데이트 날짜: 2021년 9월 23일 Amazon Lightsail Bitnami WordPress 인스턴스에 대용량 파일을 업로드하고 싶aws.amazon.com

아래 구문만 정독하셩

Advertisements
[](https://devbj.com/wp-admin/post.php?post=208&action=edit "Ad created on 2022-12-23 23:07")

1. /opt/bitnami/php/etc/php.ini 파일을 열고 upload_max_filesizepost_max_size를 늘립니다. vi 편집기와 같은 텍스트 편집기를 사용해 /opt/bitnami/php/etc/php.ini 파일에 액세스합니다.

# sudo vi /opt/bitnami/php/etc/php.ini
; Maximum size of POST data that PHP will accept.
  post_max_size = 64M

; Maximum allowed size for uploaded files.
  upload_max_filesize = 64M

4. 서비스를 다시 시작하기 전에 구성 세부 정보를 확인합니다.

<strong>sudo</strong> apachectl configtest
<strong>Syntax</strong> OK

5. 변경 사항을 적용하려면 서버를 다시 시작합니다.

<strong>sudo</strong> /opt/bitnami/ctlscript.sh restart
![cloud computing, cloud, upload](assets/images/2023/01/1990405-1024x707.jpg?resize=1024%2C707)

Django – Delete old image when update ImageField?

기존 이미지 파일을 지우고, 새로운 업데이트 된 것만 남겨두고 싶은게 인지상정

https://stackoverflow.com/questions/2878490/how-to-delete-old-image-when-update-imagefield

해결책은 아주 간단하게

Use https://github.com/un1t/django-cleanup

pip install django-cleanup

settings.py

INSTALLED_APPS = (
    ...
    'django_cleanup.apps.CleanupConfig', # should be placed after your apps

)