카테고리 없음2024. 1. 10. 02:50

[워드프레스 초보를 위한 입문서]
홍마리오의 워드프레스 홈페이지 & 블로그 제작으로 수익창출

 

요즘에는 블로그, 카페, 인강, 유튜브를 넘어 심지어 Chat GPT를 통해서도 각종 정보나 기술을 습득할 수 있지만 이렇게 디지털로 학습한 지식은 오래가지 못하고 또한 깊게 자리잡지 못하는 듯 합니다. 그래서인지 개인적으로는 책을 통한 오래전에 습득한 지식이 진정 내 자산이 되고 기초를 다져주는 느낌입니다. 워드프레스 또한 다르지않다고 생각합니다.

 

시중에 워드프레스를 소개한 책은 흔하지만 워드프레스 기초부터 구글 애드센스를 통한 수익 창출로 이르는 '홍마리오의 워드프레스 홈페이지 & 블로그 제작으로 수익창출' 이라는 책은 그중에서도 유니크한 책이 아닐까 싶습니다.

홍마리오의 워드프레스 홈페이지 & 블로그 제작으로 수익창출 / 저자 : 황홍식 / 출처 : 앤써북

 

위 책은 942페이지에 달하는 실습 중심의 내용으로 알차게 구성되어있으며, 워드프레스 기초, 블로그 제작 실습, 포트폴리오 제작 실습, 회사 홈페이지 제작 실습 등을 다루고 있습니다. 또한 저자 직강 동영상 전체 실습 강의, 카페24 호스팅 3개월을 함께 제공해주기때문에 실습에 매우 유용합니다.

홍마리오의 워드프레스 홈페이지 & 블로그 제작으로 수익창출 : 1장 - 워드프레스 기초

 

전체적으로 실습에 포커스를 맞추어서 책이 구성되어있으나 1장에서는 워드프레스 기초를 다루었기에 부담없이 흐름과 히스토리 등을 먼저 확인해볼 수 있습니다.

 

홍마리오의 워드프레스 홈페이지 & 블로그 제작으로 수익창출 : 2장 - 블로그 제작 실습 안내

 

실습을 바탕으로 구성하였기때문에 책을 통해 따라하다보면 3가지 유형, 즉 블로그, 포트폴리오, 회사 홈페이지를 직접 만들어볼 수 있습니다. 이를 통해 자연스럽게 워드프레스의 각종 메뉴나 기능들에 익숙해지게되고, 워드프레스의 전반적인 작동원리를 체득할 수 있게 됩니다.

홍마리오의 워드프레스 홈페이지 & 블로그 제작으로 수익창출

 

특히 워드프레스를 처음 접하시는 분들은 각종 워드프레스 도구나 메뉴들이 생소할 수 있는데 '홍마리오의 워드프레스 홈페이지 & 블로그 제작으로 수익창출'은 기초적인 설명을 적절히 겯들였고, 적재적소에 캡쳐이미지를 삽입하였기에 초보자들도 쉽게 따라할 수 있도록 되어있습니다.

홍마리오의 워드프레스 홈페이지 & 블로그 제작으로 수익창출

 

책과 함께 제공되는 풀버전 무료 동영상 강의는 실습에 맞추어서 유튜브에 제공된다고 합니다.(총 18편)
- 실습1 : 블로그 홈페이지 만들기 동영상 강의 풀버전
- 실습2 : 구글 애드센스 실습 동영상 강의
- 실습3 : 구글 SEO 최적화 실습 동영상 강의
- 실습4 : 포트폴리오 만들기 동영상 강의 풀버전
- 실습5 : 회사 홈페이지 만들기 동영상 강의 풀버전

 

'홍마리오의 워드프레스 홈페이지 & 블로그 제작으로 수익창출' 책을 따라가면서 실습을 하다보면 초보자들도 어느새 워드프레스가 쉬워지고 익숙해지기 시작하실 껍니다. 단순 실습 및 제작에 그치지 않고 SEO 마케팅과 구글 애드센스 까지 안내하고있기때문에 보다 실용적인 책이 아닐까 싶습니다.

 

 

워드프레스 정보꾸러미 : https://www.thewordcracker.com/

 

워드프레스 정보꾸러미

워드프레스, 홈페이지, 아바다, 엔폴드, Divi, 테마, 플러그인, 블루호스트, 클라우드웨이즈, 웹호스팅, 해외 호스팅

www.thewordcracker.com

 

워드프레스를 사랑하는 사람들 네이버 카페 : https://cafe.naver.com/wphomepage/

 

워드프레스 사용자 모임, 홈페이지, ... : 네이버 카페

워드프레스,홈페이지,테마,플러그인,웹호스팅,애드센스,블루호스트,클라우드웨이즈,SEO,챗GPT포스팅,보안

cafe.naver.com

 

Posted by cpu21
카테고리 없음2023. 12. 5. 12:21

Search Console 보고서

향후 몇 달 내로 Search Console의 페이지 경험 보고서는 Search Console에 유지되는 개별 Core Web Vitals 및 HTTPS 보고서의 대시보드 보기와 함께 페이지 경험에 대한 일반적인 안내로 연결되는 새 페이지로 전환될 예정입니다.

또한 2023년 12월 1일부터 Search Console의 '모바일 사용 편의성' 보고서, 모바일 친화성 테스트 도구, 모바일 친화성 테스트 API 지원을 중단합니다. 그렇다고 해서 Google 검색을 효과적으로 활용하는 데 모바일 사용 편의성이 중요하지 않은 것은 아닙니다. 모바일 사용 편의성은 그 어느 때보다 휴대기기 사용량이 늘어난 사용자에게 중요하므로 여전히 페이지 경험 안내에 포함됩니다. 그러나 이 보고서를 처음 출시한 후 거의 10년 동안 Chrome의 Lighthouse를 비롯해 모바일 사용 편의성을 평가하기 위한 여러 강력한 리소스가 등장했습니다.

이 작업을 통해 크리에이터와 사이트 소유자가 우수한 페이지 경험을 제공하여 방문자를 만족시키고 Google 검색을 통해 효과를 얻는 데 도움이 되기를 바랍니다.

- by 구글검색센터 > Google 검색 센터 블로그 > 유용한 콘텐츠를 제작하기 위한 페이지 경험의 역할
- URL : https://developers.google.com/search/blog/2023/04/page-experience-in-search?hl=ko

Posted by cpu21
리눅스2023. 5. 15. 12:29

sudo /opt/bitnami/bncert-tool
Domain list : example.com www.example.com
Enable HTTP to HTTPS redirection? : y
Enable non-www to www redirection? : n
Enable www to non-www redirection? : y
Do you agree to these changes? : y
E-mail address : abc@mail.com
Do you agree to the Let's Encrypt Subscriber Agreement? : y
Press [Enter] to continue:

 

Learn About The Bitnami HTTPS Configuration Tool

Generate And Install A Let's Encrypt SSL Certificate For A Bitnami Application
Generate And Install A Let's Encrypt SSL Certificate For A Bitnami Application > Step 5: Renew The Let’s Encrypt Certificate

Learn About The Bitnami HTTPS Configuration Tool > Manually Revoking An Existing Certificate

Automatic Let’s Encrypt Certificate Renewal on Bitnami
ink plant > Bitnami HTTPS Configuration Tool Email Error

'리눅스' 카테고리의 다른 글

Bitnami 로그 / MySQL 접속  (0) 2021.05.28
리눅스 기초 명령어  (0) 2020.12.15
Posted by cpu21

워드프레스 플러그인 셋업 후 해당 플러그인이 모든 페이지에서 js, css를 로드할 경우가 있다. 
메인 페이지(homepage), 카테고리 페이지, 아카이브 페이지, 404 페이지, 검색결과 페이지 등 기사 페이지나 커스텀 페이지를 제외하고 플러그인 js, css를 미로딩처리하고 싶은데 플러그인을 이용하지않고 워드프레스 훅을 이용하여 간단히 처리할 수 있다.

 

1. Dequeue the Plugin Script

function wp_remove_scripts() {
	if ( !is_single() ) {
		wp_dequeue_script('front_js');
        wp_deregister_script('front_js');
	}
}
add_action( 'wp_enqueue_scripts', 'wp_remove_scripts', 99 );

 

 

2. Disable Plugin Style I - Disable script and style elsewhere (frontend & backend)

function wp_remove_styles1() {
	if ( !is_single() ) {
		wp_deregister_style('front_css');
	}
}
add_action('wp_print_styles', 'wp_remove_styles1', 100);

 

3. Disable Plugin Style II (푸터 훅 적용) - Dequeue script or style : 잘 안되는 것 같음

function wp_remove_styles2() {
	if ( !is_single() ) {
		wp_dequeue_style('front_css');
	}
}
//add_action('get_footer', 'wp_remove_styles2');


4. 워드프레스 기본 wp_head 액션에 삽입되는 불필요 스크립트 및 요소 제거

Web/ Design/ Vista : Remove Unnecessary Scripts from Header in WordPress
Remove really simple discovery service links : 
remove_action('wp_head', 'rsd_link');

Remove wordpress version number : 
remove_action('wp_head', 'wp_generator'); 

Remove rss feed links : 
remove_action('wp_head', 'feed_links', 2); 

Remove extra feed links : 
remove_action('wp_head', 'feed_links_extra', 3); 

Remove link for windows live writer support : 
remove_action('wp_head', 'wlwmanifest_link'); 

Remove post relational links : 
remove_action('wp_head', 'adjacent_posts_rel_link');   

Remove emoji related scripts & Styles : 
remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles');

Remove shortlink tag : 
remove_action('wp_head', 'wp_shortlink_wp_head', 10, 0);

So putting these code snippets together : 
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wp_generator'); 
remove_action('wp_head', 'feed_links', 2); 
remove_action('wp_head', 'feed_links_extra', 3); 
remove_action('wp_head', 'wlwmanifest_link'); 
remove_action('wp_head', 'adjacent_posts_rel_link');     
remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles');   
remove_action('wp_head', 'wp_shortlink_wp_head', 10, 0);

 

Ref. : 
- Digging Into WordPress > How to Disable CSS and JavaScript Added by Plugins
- WP Alpha > How to remove unused Javascript in WordPress

Posted by cpu21
카테고리 없음2023. 4. 28. 17:43

1. 신규 인스턴스의 WordPress 코어 버전과 기존 인스턴스 WordPress 코어 버전이 다를 경우 버전을 맞추어준다.
그렇지않을 경우 이전 후 wp-admin, wp-includes, root 파일들(wp-content, wp-config.php 제외한 폴더 및 파일)을 기존 버전으로 다운로드받아 맞추어준다.
 

2. wp-config 파일 내 고정된 주소를 설정했을 경우 $_SERVER['HTTP_HOST']로 변경
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/');
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . '/');

3. wp-content 디렉토리 압축 (tar 파일 생성)
(1) 압축 : /bitnami/wordpress/wp-content 디렉토리 (ex : 파일 압축 tar -cvf aaa.tar aaa.log / 폴더 압축 tar -cvf dfdf.tar dfdfzzz)
(2) 기존 인스턴스 및 신규 인스턴스 EBS 볼륨 공간 확인 : df -h / du -sh
(3) PC 저장
(4) 압축 해제 (ex : 파일 해제 tar -xvf aaa.tar / 폴더 해제 tar -xvf dfdf.tar)
※ bitnami 최신 스택의 경우 심플릭 링크로 wp-content 파일이 생성되어있는데 wp-content의 압축 폴더를 풀 경우 위치가 변경되어 있다. 때문에 mv로 파일 이전 후 다시 심볼릭 링크로 재생성해준다.
※ 심볼릭 링크 생성 예 : ln -s /bitnami/wordpress/wp-content /opt/bitnami/wordpress/wp-content
(5) 디렉토리, 파일 소유자 변경 : 이전시 bitnami로 되어있음으로 daemon으로 변경

4. 무료 보인인증서(https) 설정 : Bitnami HTTPS Configuration Tool
sudo /opt/bitnami/bncert-tool

5. 기존에 wp-config 파일 내 고정된 주소를 작성했을 경우 원래 도메인으로 재설정

Posted by cpu21
카테고리 없음2023. 4. 28. 16:31

1. Archive Page with Yoast SEO

* 참고 : https://websamosa.com/how-to-noindex-category-in-yoast-seo/

* noindex, follow 처리됨

 

How to Noindex Category in Yoast SEO Plugin: Wordpress? - Websamosa

Table Of Content1 What is No-index Tag?2 No Index Each category3 No Index All Categories What is No-index Tag? No-index Tag is a Meta tag ... Read moreHow to Noindex Category in Yoast SEO Plugin: WordPress?

websamosa.com

 

2. Single Post with wpseo_robots filter

Filter: 'wpseo_robots' - Allows filtering of the meta robots output of Yoast SEO.
* 참고1 : https://github.com/Yoast/wordpress-seo/issues/387

 

Noindex all posts in category · Issue #387 · Yoast/wordpress-seo

Currently there is an option to set noindex for the category-page itself, but it isn't possible to set noindex for all posts in that category. Adding this to the category-settings seems like a usef...

github.com

add_filter( 'wpseo_robots', 'wpseo_robots' );
/**
 * Filter: 'wpseo_robots' - Allows filtering of the meta robots output of Yoast SEO.
 *
 * @param string $robotsstr The meta robots directives to be echoed.
 * @return string
 */
function wpseo_robots( $robotsstr ) {
	if ( is_single() && in_category( array( 23, 25 ) ) ) {
		return 'noindex,follow';
	}
	return $robotsstr;
}

 

3. RSS Feed에서 제외 처리

* 참고1 : How to Exclude Specific Categories from WordPress RSS Feed : https://www.wpbeginner.com/wp-tutorials/how-to-exclude-specific-categories-from-wordpress-rss-feed/

* 참고2 : https://www.wpexplorer.com/exclude-wordpress-category-feed/

 

How to Exclude Specific Categories from WordPress RSS Feed

Do you want to hide specific categories from your WordPress RSS feed? Learn how to easily exclude specific categories from WordPress RSS feed. (2 Simple Methods)

www.wpbeginner.com

// Exclude Category with ID 17 from RSS feed
function exclude_feed_category($query) {
	if ($query->is_feed) {
		$query->set('cat', '-17');
	}
	return $query;
}
add_filter('pre_get_posts', 'exclude_feed_category');

 

4. XML Sitemap & Google News에서 제외

- 불가. 하지만 1,2에서 noindex, nofollow 처리했기때문에 큰 의미없음.

5. 검색결과에서 제외

 

// Exclude specific categories from search result page of wordpess
function wpb_search_filter( $query ) {
	if ( $query->is_search && !is_admin() )
	$query->set('cat','-3339,-2415');
	return $query;
}
add_filter('pre_get_posts', 'wpb_search_filter');

 

 

Posted by cpu21

1. Search Value Highlight / Search Terms Highlight

(1) 스크립트를 사용하는 방법

    var search_val = $('#header-search').val();
    $("body.search-results .h3 a:contains('"+search_val+"')").each(function() {
        var search_val_regex = new RegExp(search_val,'gi');
        $(this).html( $(this).text().replace(search_val_regex, "<span class='highlight'>"+search_val+"</span>") );
    });

(2) 플러그인을 이용하는 방법

Relevanssi – A Better Search v4.18.3 by Mikko Saari : https://wordpress.org/plugins/relevanssi/
Relevanssi Light v1.2.2 by Mikko Saari : https://wordpress.org/plugins/relevanssi-light/

 

Relevanssi Light

Relevanssi Light is a simple, quick and effective search improvement that replaces the default WP search with a fulltext index search.

wordpress.org

 

2. 요약문/발췌문(excerpt)이 검색어에 포함시  검색 결과 페이지에서 해당 부분이 위치하도록 함

- 1-2)에서 언급한 Relevanssi 플러그인의 'Custom search result snippets' 기능을 이용

ex) 줌 허브에서 '스카이돔; 검색 결과 : https://hub.zum.com/search?keyword=고척돔&isTag=False 

검색어 '스카이돔'은 본문 시작 부분이나 요약문이 아닌 본문 중간에 위치해있다.

 

하지만 검색결과 페이지의 excerpt에는 본문의 '스카이돔'이 위치한 텍스트를 중심으로 노출된다.

※ 검색 글 : https://hub.zum.com/ohmynews/90732?cm=hubzum_search_list&r=19&thumb=1 

 

 

3. Search Result excerpt : 텍스트 변경 스크립트

// 요소 default color: #fff
jQuery('body.search-results .excerpt').each(function() {
	var search_result_excerpt = jQuery(this).text();
	if ( (search_result_excerpt.indexOf('video') != -1) || (search_result_excerpt.indexOf('원문링크 바로가기') != -1) ) {
		jQuery(this).text('');
	};
	jQuery(this).css('color','#666');
});

 

4. parameter 형태의 permalink를 SEO 친화적인 URL 구조로 변경

- Before : https://example.com/?s=검색어 
- After : https://example.com/search/검색어

function wpb_change_search_url() {
	if ( is_search() && ! empty( $_GET['s'] ) ) {
		wp_redirect( home_url( "/search/" ) . urlencode( get_query_var( 's' ) ) );
		exit();
	}
}
add_action( 'template_redirect', 'wpb_change_search_url' );

※ 출처 : WPBeginner | How to Change the Default Search URL Slug in WordPress

Posted by cpu21

Display Total Results

 

- Using the wp_query object

- More information on WP_Query can be found at WP_Query.

 

<?php
global $wp_query;
$total_results = $wp_query->found_posts;
?>

 

<?php global $wp_query; echo $wp_query->found_posts; ?>건

 

출처 : https://wordpress.org/documentation/article/create-a-search-page/

Posted by cpu21
WordPress/Plugin2023. 3. 26. 23:21

워드프레스 user role에 따른 상세 권한 설정 플러그인으로는 User Role Editor가 가장 유명하다. 이외에도 user role에 따라 불필요한 어드민 메뉴를 제거하는 라이트한 플러그인으로 아래 2가지 플러그인을 추천한다. 바로 Hide Admin Menu 및 Remove Admin Menus가 그것이다.

Hide Admin Menu

https://wordpress.org/plugins/hide-admin-menu/

Hide Admin Menu

- by Bhavin Thummar & Maulik Patel (BM Studio)
- Version : 1.1.1
- Last Updated : 11 months ago
- Active installations : 10,000+
- WordPress Version : 4.6 or higher
- Tested up to : 5.9.5
- Description : This plugin gives the facility for hiding and showing the admin menu of side and top bar.
This plugin gives the easy way to hide admin menus by checking the checkbox of particular menu in the form then submit the form so that checked menus hide from the admin.
Admin also can hide menu according the role of users.

 

Remove admin menus by roles

https://wordpress.org/plugins/remove-admin-menus-by-role/
- by InfoD74
- Version : 1.35
- Last updated : 5 months ago
- Active installations : 6,000+
- WordPress Version : 3.5 or higher
- Tested up to : 6.1.1
- PHP Version : 5.6 or higher
- Description : Select easily which admin menus to remove for which roles.
A Pro version with more options is available: https://www.info-d-74.com/en/produit/remove-admin-menus-by-role-pro-plugin-wordpress-2/

 

Remove admin menus by role Pro - plugin Wordpress - InfoD 74

Too many menus in the administration of your Wordpress site? This plugin is for you! Select the role(s) concerned, then the menus, submenus and top menus to delete. So you can for each role have a lighter and understandable administration with only the men

www.info-d-74.com

Hide Admin Menu : ygosunews
Remove Admin Menus : pnscorp

Posted by cpu21

워드프레스 DB의 wp_posts 테이블 guid 변경
- 포스트 검색1 : select * from `wp_posts` where `post_type` = 'post' ORDER BY 'ID'
- 포스트 검색2 : select * from `wp_posts` where `post_type` = 'post' AND `ID` = '56574';

https://mysite.com/archives/56574

https://mysite.com/?p=56574

- UPDATE wp_posts SET guid = REPLACE(guid, 'oldurl.com', 'newurl.com') WHERE guid LIKE 'http://oldurl.com/%';

- UPDATE wp_posts SET guid = REPLACE(guid, 'https://mysite.com/archives/', 'https://mysite.com/?p=') WHERE guid LIKE 'https://mysite.com/archives/%';

 

 

Reference :
How to change all the guid in posts table? : https://wordpress.stackexchange.com/questions/211156/how-to-change-all-the-guid-in-posts-table

Posted by cpu21
CSS2022. 11. 18. 10:18

오픈 소스 라이센스 / 본고딕 기반

- 공식 웹사이트 : https://sunn.us/suit/

 

S U N N

 

sunn.us

- 사용 웹사이트 예시 : https://www.fastviewkorea.com/2022/partners/partners.html

Posted by cpu21
WordPress/Plugin2022. 5. 19. 14:12

- 5+ WordPress Read More Plugins Any Blogger Needs : https://wpklik.com/wordpress-plugins/wordpress-read-more-plugins/

 

5+ WordPress Read More Plugins Any Blogger Needs 2022 - WPKlik

Uplift your blog with read more feature - check out the best WordPress read more plugins any blog needs.

wpklik.com

 

- 4 Best WordPress Read More Plugins 2022 : https://colorlib.com/wp/wordpress-read-more-plugins/

 

4 Best WordPress Read More Plugins 2022

Here are the top five WordPress Read More plugins. We based them on purpose, features, some pros and cons and further extensive or fun facts.

colorlib.com

 

 

- Creating A Toggle Shortcode For WordPress FAQ’s Page : https://www.wpexplorer.com/wordpress-toggle-shortcode/

 

Creating A Toggle Shortcode For WordPress FAQ's Page

A tutorial showing you how to easily create a toggle shortcode for WordPress using javascript and CSS so you can set up a FAQ's page on your site.

www.wpexplorer.com

 

Posted by cpu21
리눅스2021. 5. 28. 14:57

php-fpm

- 로그 위치 : /opt/bitnami/php/var/log

 

mysql

- mysql/data 디렉토리 접속 :
   sudo -i
   cd /opt/bitnami/mysql/data

- 로그 위치 : /opt/bitnami/mysql/data/mysqld.log

- DB 타입 확인 : test -d /opt/bitnami/mariadb && echo "MariaDB" || echo "MySQL"
- DB 접속 : sudo mysql -u root -h localhost -p
- DB 로그 확인 : mysql> show binary logs;

- DB 로그 삭제 : mysql> purge master logs to 'binlog.000111';   binlog.000111 제외한 "이전" 의 바이너리 로그 모두 삭제
- DB 로그 보관기간 확인 : mysql> show variables like 'expire%';

'리눅스' 카테고리의 다른 글

Bitnami HTTPS Configuration Tool  (0) 2023.05.15
리눅스 기초 명령어  (0) 2020.12.15
Posted by cpu21
WordPress/Plugin2021. 2. 21. 16:30

Elementor Addon

- 3rd Party Elementor Add-Ons : https://elementor.com/addons/
- The Plus Addons for Elementor Page Builder Lite by POSIMYTH (Malware Issue) : https://wordpress.org/plugins/the-plus-addons-for-elementor-page-builder/

- The Plus Addons for Elementor Page Builder by POSIMYTH : https://theplusaddons.com/

- Essential Addons for Elementor by WPDeveloper : https://wpdeveloper.net/plugins/essential-addons-elementor/

   * Docs & FAQs : https://essential-addons.com/elementor/docs/

- Clever Addons for Elementor by CleverSoft : https://wordpress.org/plugins/cafe-lite/

   * Documentation : https://doc.cleveraddon.com/clever-addon-for-elementor/#/

- Clever Addons Pro for Elementor by CleverSoft : https://cleveraddon.com/clever-addon-for-elementor/
- 엘리멘토 한글폰트 1.0.8 by WPTEAM : https://wpteam.dev/downloads/엘리멘토-한글-폰트/

- Post Grid Elementor Addon by wpconcern : https://wordpress.org/plugins/post-grid-elementor-addon/

- Post Grid Elementor Addon Site : https://www.wpconcern.com/downloads/post-grid-elementor-addon/

- Post Grid Elementor Addon Demo : https://wpconcern.com/demo/post-grid-elementor-addon/

- Elementor Addon Elements By WPVibes : https://wordpress.org/plugins/addon-elements-for-elementor-page-builder/

- Elementor Addon Elements Site : https://www.elementoraddons.com/elements-addon-elements/

Happy Addons for Elementor by weDevs : https://wordpress.org/plugins/happy-elementor-addons/

- Happy Addons for Elementor Site : https://happyaddons.com/

- Premium Addons for Elementor by Leap13 : https://en-au.wordpress.org/plugins/premium-addons-for-elementor/

- Premium Addons for Elementor Site : https://premiumaddons.com/

 

WooCommerce Swatch

- Clever Swatches by cleversoft.co
   * Demo : http://cleverswatches.wp1.zootemplate.com/

   * CodeCanyon Purchase (CleverSwatches - WooCommerce Color or Image Variation Swatches) : https://codecanyon.net/item/cleverswatches-woocommerce-color-or-image-variation-swatches/20594889

   * Documentation (404 page) : http://doc.zootemplate.com/cleverswatches/

 

WooCommerce Quick Buy/Direct Checkout

- Direct Checkout for WooCommerce by QuadLayers : https://wordpress.org/plugins/woocommerce-direct-checkout/

   * Documentation : https://quadlayers.com/documentation/woocommerce-direct-checkout/

- Quick Buy For WooCommerce by Varun Sridharan : https://wordpress.org/plugins/woocommerce-quick-buy/

- Direct Checkout For Woocommerce Lite by Centangle Interactive : https://wordpress.org/plugins/woo-direct-checkout-lite/

 

WooCommerce Product Single Page Tab

- Custom Product Tabs for WooCommerce by YIKES, Inc. : https://wordpress.org/plugins/yikes-inc-easy-custom-woocommerce-product-tabs/

 

 

Post Bulk Move
- Bulk remove posts from category by MasterNs : https://wordpress.org/plugins/bulk-remove-posts-from-category/

- Bulk Move by Sudar : https://wordpress.org/plugins/bulk-move/

Live Chat

- HubSpot – CRM, Email Marketing, Live Chat, Forms & Analytics by HubSpot : https://wordpress.org/plugins/leadin/

- HubSpot : https://www.hubspot.com/products/wordpress

- HubSpot for WordPress : https://ecosystem.hubspot.com/marketplace/apps/marketing/wordpress/wordpress

- Channel.io by zoyi : https://wordpress.org/plugins/channel-io/

- 채널톡 개발자 문서 : Channel Developer | Wordpress : https://developers.channel.io/docs/wordpress

- 채널톡 : https://channel.io/ko

 

Blog Single

Insert Blocks Before or After Posts Content by audrasjb : https://wordpress.org/plugins/insert-blocks-before-or-after-posts-content/

 

Social Share Button

- Korea SNS by By Jongmyoung Kim : https://wordpress.org/plugins/korea-sns/

- Korea SNS - ICANsoft : http://icansoft.com/product/korea-sns

- 소셜 공유 버튼 By 코스모스팜 by 코스모스팜 - Cosmosfarm : https://ko.wordpress.org/plugins/cosmosfarm-share-buttons/

 

Post Views

- Post Views Counter by Digital Factory : https://wordpress.org/plugins/post-views-counter/

- http://dfactory.eu/products/post-views-counter/

- Post Hit Counter by Hugh Lashbrooke [amicoent] : https://wordpress.org/plugins/post-hit-counter/

 

 

Posted by cpu21
URL2021. 2. 4. 18:40

Amazon Lightsail 엔드포인트 및 할당량

https://docs.aws.amazon.com/ko_kr/general/latest/gr/lightsail.html

- 위 할당량 중 Instance, Static IP, Total Storage needed (in TB/account)는 Case Open하여 추가 가능
- Service Quotas : Instances - 20ea per Region / Static IPs - 5ea per Region

Posted by cpu21
URL2021. 2. 4. 11:09

워드프레스 코어 업데이트 후 화면

- 버전 상세정보(업데이트 내역) 확인 가능

- http://yoursite.com/wp-admin/about.php

 

WordPress.org > About > Statistics

- 전세계 사용자의 워드프레스 버전, PHP 버전, MySQL 버전, 사용언어 확인

- https://wordpress.org/about/stats/

'URL' 카테고리의 다른 글

AWS/Lightsail Document  (0) 2021.02.04
[URL] CSSmatic | Gradient Generator, Border Radius, Noise Texture, Box Shadow  (0) 2019.06.08
[URL] PDF Candy - Edit PDF metadata  (0) 2019.05.23
[URL] Online CSS Unminifier  (0) 2019.05.12
[URL] WordPress Websites  (0) 2019.05.06
Posted by cpu21
WordPress2021. 1. 22. 14:52

※ Happy publishing 바로 윗쪽에 입력

 

/* Memory Limit */

define('WP_MEMORY_LIMIT', '512M'); /* Frontend 증가 */

define('WP_MAX_MEMORY_LIMIT', '512M'); /* 관리 Backend 증가 */

 

/* FTP Credentials */

define('FS_METHOD','direct');

혹은

define('FTP_USER', 'example');

define('FTP_PASS', '*******');

define('FTP_HOST', 'example.com:21');

define('FTP_SSL', false);

 

/* WP Debug */

define('WP_DEBUG', true);

define('WP_DEBUG_LOG', '/wp/debug.log');

define('WP_DEBUG_DISPLAY', false);

 

/* Revision */

define('WP_POST_REVISIONS', false); /* 리비전 금지 */
define('WP_POST_REVISIONS', 3); /* 리비전 3개만 남기기 */

Posted by cpu21
WordPress/Theme2021. 1. 20. 12:50

Get almost 100% PageSpeed on Newspaper theme

https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/

 

How to use WP Super Cache

https://tagdiv.com/wp-super-cache-plugin-install-and-configure/

 

How to use the Infinite Loading for Single Posts in Newspaper Theme

https://tagdiv.com/infinite-loading-for-single-posts/

 

How to use the YouTube API

https://forum.tagdiv.com/youtube-api-key/

Child theme 미지원 관련

- tagDiv | Tutorials > Child theme support : https://forum.tagdiv.com/the-child-theme-support-tutorial/

- Newspaper Theme 10: Standard Pack or tagDiv Cloud Templates? : https://tagdiv.com/newspaper-theme-update-standard-pack-or-tagdiv-cloud-templates/

 

tagDiv Blocks

https://forum.tagdiv.com/blocks/

 

Demo : Block Header 1

https://demo.tagdiv.com/newspaper/block-header-1/

Posted by cpu21
WordPress/Core2020. 12. 17. 11:19

wp-config.php의 Happy publishing 바로 위
define('WP_MEMORY_LIMIT', '512M');
/* That's all, stop editing! Happy publishing. */

 

.htaccess 최상단
php_value max_execution_time 300
php_value max_input_time 300
php_value max_input_vars 2000
php_value post_max_size 50M
php_value upload_max_filesize 50M
php_value memory_limit 512M

 

AWS 라이트세일 - bitnami 스택 워드프레스

- php 설치 위치 : /opt/bitnami/php/etc/php.ini
max_execution_time = 300
max_input_time = 300
max_input_vars = 3000 (default에 주석 처리(;) 되어 있음. 삭제 요망)
memory_limit = 128M (워드프레스에서는 wp-config.php에서도 설정 가능)
post_max_size = 50M
file_uploads = On
upload_max_filesize = 50M
- php.ini 파일을 수정 후 PHP-FPM과 웹서버 재시작 필요
- php-fpm 재시작 : sudo /opt/bitnami/ctlscript.sh restart php-fpm
- 아파치 웹서버 재시작 : sudo /opt/bitnami/ctlscript.sh restart apache 혹은 sudo service apache2 restart
  ※ 비트나미 스택에서는 /opt/bitnami/ctlscript.sh 스크립트 파일로 대부분의 애플리케이션를 리로드, 재시작
  ※ CLI의 텍스트에디터 nano가 아닌 FTP 클라이언트로 접속하여 수정시 php.ini 편집 권한은 root 사용자 권한이므로 파일 권한을 777로 변경 후 수정
sudo vi /etc/php5/apache2/php.ini


값 설명
- max_execution_time : 스크립트의 최대 실행 시간. 값이 0이면 무제한 실행. 초단위 값
- max_input_time : 스크립트가 입력을 받을 때 소비할 수 있는 시간. -1이면 무제한. 잘못된 스크립트 사용시 서버가 무한루프에 빠지는 것을 방지
- max_input_vars : 전송되는 값의 갯수에 대한 제한.
   ex1) 로컬에서 개발 후 PHP ↔ 로직 서버 통신시 데이터가 온전히 넘어가지 않을 경우
   ex2) 많은 수의 input 데이터를 post로 전송해야 할 경우
   ex3) post로 전송한 데이터가 짤릴 경우
- memory_limit : PHP 스크립트가 얼마나 많은 메모리를 할당받을 것인가를 결정. upload_max_filesize의 값과 같거나 커야함
  ※ 워드프레스는 wp-config.php에 define('WP_MEMORY_LIMIT', '64M'); 문구를 추가하여 변경 가능
  ※ 너무 높은 값을 설정 후 여러의 업로드가 동시에 처리되는 경우 사용가능한 모든 메모리를 사용해버려 다른 관련없는 스크립트뿐만 아니라 서버 전체에 영향을 미치게 되므로 너무 높은 값을 사용하지않아야 함
- post_max_size : POST 요청(HTTP 리퀘스트)를 통한 업로드 용량 제한치
- file_uploads : 파일업로드 허용여부. 기본값 : On
- upload_max_filesize : 파일에 대한 최대 업로드 용량

 

Newspaper Theme 권장사양

- PHP Memory Limit : at least 128MB
- PHP Execution Time : -
- PHP Max Input Vars : 2000 or more
tagDiv > System status parameters guide : forum.tagdiv.com/system-status-parameters-guide/


서버 PHP 환경값 확인을 위한 함수

<?php phpinfo(); ?>

Posted by cpu21
리눅스2020. 12. 15. 11:56

소유권 변경/파일 권한 변경

sudo chown -R bitnami:daemon /opt/bitnami/apps/wordpress/htdocs/wp-config.php
chmod 664 /webroot/www/err-log.txt

 

mv (Move) : 파일 및 디렉토리 이름 변경 & 이동

sudo mv fileA dirA/ : fileA를 dirA로 이동
sudo mv fileA fileB dirA/ : 여러 파일을 dirA로 이동
sudo mv dirA/ dirB/ : 디렉토리 dirA를 dirB로 이름 변경
ex) sudo mv /htdocs/wp-content/plugins_OLD /htdocs/wp-content/plugins_NEW

 

df (Disk Free) : 마운트된 디스크의 크기, 사용량, 남아있는 용량 등의 정보 출력

df -hP
df . -m -h

df -k : 킬로바이트 단위로 남은 용량 확인
df -m : 메가바이트 단위로 남은 용량 확인
df -h : 보기 좋게 출력(--human-readable). 용량 단위 표시. 사람이 읽을 수 있는 형태의 크기로 출력(예:1K, 512M, 4G). 메가바이트(M) 기가바이트(G) 등 용량 단위를 적절히 맞추어 보여줌
df . : 현재 디렉토리가 포함된 파티션의 남은 용량 확인
df -T : 각 파티션에 대한 파일 시스템의 유형을 출력
df -i  : --inodes. 마운트된 파일 시스템의 아이노드 사용량 관련 정보를 출력. inode의 남은 공간, 사용 공간, 사용 퍼센트를 출력
df -P : --portability. POSIX에서 사용되는 형태로 출력. 파일시스템 경로가 길 경우 2줄로 나오게 되는데 -P 옵션을 입력하면 한 줄로 출력

 

du (Disk Usage) : 파일이나 디렉터리가 디스트에서 차지하고 있는 크기를 출력

du -hs 폴더 : 특정 폴더 용량 확인
du -sh 폴더 : 특정 폴더 용량 확인

du -a : 현재 디렉토리의 사용량을 파일 단위로 출력. 디렉터리에 존재하는 모든 파일에 대해 각각의 크기를 출력
du -s : 총 사용량 확인. 파일들의 전체 크기를 합한 값만 출력
du -h : 보기 좋게 출력(--human). 용량 단위 표시. 현재 디렉터리 안에 있는 모든 파일 및 디렉터리에 대한 크기를 단위로 출력
du -sh : 현재 디렉터리의 총 사용량을 출력
du -sh * : 한단계 서브디렉토리 기준으로 출력. 각 디렉터리나 파일별로 총 용량을 출력
du -D : 심볼릭 파일이면 그 원본의 값을 출력
du -k : 킬로바이트 단위로 출력
du -m : 메가바이트 단위로 출력
du -sh /AA : AA 디렉터리의 총 사용량을 출력

ls  (List Segments) : 디렉토리와 파일 목록을 출력
ls : 현재 디렉토리의 목록 출력
ls /var : /var 디렉토리의 목록 출력
<옵션>
ls -a (all) : 해당 디렉토리에 숨겨진 파일과 디렉토리를 출력 (현재(.), 상위 디렉토리(..) 모두 출력)
ls -l (long) : 소유자, 파일 크기 등 자세한 정보도 함께 출력
ls -i (inode) : inode 넘버를 출력
ls -h : 파일 크기를 해석하기 편하게 출력
ls -alh : 숨김 파일을 포함하여 자세한 정보를 출력 & 파일 크기는 해석하기 편하게 출력
li -n (number) : 소유권(UID+GID)를 숫자로 출력. 많이 사용되지 않는 옵션
ls -R (recursive) : 하위 경로와, 그 안에 있는 모든 파일들을 같이 출력. 재귀적으로 서브디렉토리를 나열
ls -r (reverse) : 디렉토리 및 파일을 역순으로 출력
ls -s (size) : 각 파일의 할당 된 크기를 블록 단위로 출력
ls -t : 수정 시간순으로 정렬, 가장 새로운 것 부터
ls /var/m*.conf : /var 디렉토리에서 m으로 시작하고 확장자가 conf인 파일을 출력

 

캐시 메모리 비우기

free -m
* 참고 : https://nyyang.tistory.com/47

sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches'

* 참고 : https://osasf.net/discussion/587/리눅스-서버의-메모리-간단-관리-방법-사용량-확인-캐시삭제-정기관리

 

Bitnami : Flush The PageSpeed Cache

sudo touch /opt/bitnami/apache2/var/cache/mod_pagespeed/cache.flush

sudo /opt/bitnami/ctlscript.sh restart apache

 

php 및 php.ini 위치 확인

- php의 위치 : which php
- php.ini 위치 : php --ini | grep php.ini

 

php 버전 확인

php -i | grep 'PHP Version'
php -v
php --version
php -r "echo phpversion();"
php -r 'echo PHP_VERSION;'

 

How to Install ImageMagick on CentOS 7 And RHEL

https://www.youtube.com/watch?v=Wh5klOXDQIs
echo extension=imagick.so >> /etc/php.ini

 

재부팅/종료

재부팅 : sudo shutdown -r now
종료 : sudo shutdown -h now

 

 

일반 사용자가 root 권한, 즉 관리자 권한으로 로그인하기

su root 혹은 su 입력 후 암호 입력 / 루트로 접속시에는 터미널에 $ 대신 #이 표시됨

 

Root 계정의 초기 비밀번호 설정

우분투 처음 셋업 후 root 계정으로 처음부터 로그인이 불가능. 처음에 본인이 만든 계정에 들어가서 그곳에서 root 비번 지정 가능
터미널에서 sudo passwd root 입력 후 새 UNIX 암호를 입력
※ 출처 : https://m.blog.naver.com/blacky512/10149326083

 

워드프레스 bitnami 배너 지우기

sudo /opt/bitnami/apps/wordpress/bnconfig --disable_banner 1
이후 아파치 재부팅 : sudo /opt/bitnami/ctlscript.sh restart apache
- 만약 bnconfig.disabled으로 이름이 변경되었는데 여전히 보인다면 : sudo /opt/bitnami/apps/wordpress/bnconfig.disabled --disable_banner 1
- 명확히 하기위해 css 추가 : #bitnami-banner {display: none !important;}

 

워드프레스 bitnami 비밀번호 확인

cat bitnami_application_password : 비트나미 워드프레스 비번이면서, MySQL DB의 bn_wordpress 사용자가 아닌 root 사용자 비번이기도 함
- Default username : user or user@example.com
- 혹은 sudo cat /home/bitnami/bitnami_credentials 입력

 

bitnami 워드프레스의 MySQL

- 터미널에서 원격 DB 서버 접근하는 방법 : mysql -h [host ip] -u [user id] -p
- bn_wordpress 사용자 접속1(sudo mysql -u bn_wordpress -p) : wp-config.php 확인
- bn_wordpress 사용자 접속2(sudo mysql -h localhost -u bn_wordpress -p) : wp-config.php 확인
- root 사용자 접속(sudo mysql -u root -p) : Enter password: cat bitnami_application_password 사용
- DB 비번 변경 : /opt/bitnami/mariadb/bin/mysqladmin -p -u root password NEW_PASSWORD
  ※ MySQL 접속시 sudo를 입력하지않으면 -bash: mysql: command not found 에러 발생
- 스택에서 사용되는 DB 서버 식별 : test -d /opt/bitnami/mariadb && echo "MariaDB" || echo "MySQL"
- MySQL root 혹은 bn_wordpress 비밀번호 변경 : sudo /opt/bitnami/mysql/bin/mysqladmin -p -u [root/bn_wordpress] password
sudo /opt/bitnami/mysql/bin/mysqladmin -p -u bn_wordpress password
- MySQL root 혹은 bn_wordpress 비밀번호 재설정 : 
MySQL v8.x : ALTER USER 'root'@'127.0.0.1' IDENTIFIED BY 'NEW_PASSWORD';
MySQL v5.7.x : ALTER USER 'root'@'localhost' IDENTIFIED BY 'NEW_PASSWORD';
- MySQL 서버 재시작 : sudo /opt/bitnami/ctlscript.sh restart mysql

 

사용자명 및 그룹 조회

- 현재 ubuntu 사용자의 소속 그룹 조회 : $ id ubuntu
- 현재 사용자의 그룹 목록 조회 : $ groups
- 모든 사용자 조회 : $ compgen -u
- 모든 그룹 조회 : $ compgen -g
- 워드프레스 디렉토리 소유자 확인 : ls -al /home/wp

 

Apache Web Server의 사용자명 및 그룹명 찾기 / VirtualHost 목록만 보고 싶을 때

apachectl -S 또는 httpd -S

CentOS 출력문 :
...
User: name="apache" id=997 not_used
Group: name="apache" id=1000 not_used

Ubuntu 출력문 : 
...
User: name="www-data" id=33 not_used
Group: name="www-data" id=33 not_used

 

Apache 프로세스 소유자 확인
ps -ef | grep httpd

 

root로 로그인

sudo -i

 

Apache 프로세스를 소유자 정보와 함께 다양한 정보를 출력

ps aux | egrep '(apache|httpd)'

- ps aux : 시스템에 동작중인 모든 프로세스를 소유자 정보와 함께 다양한 정보를 출력 (BSD 포맷으로 출력)
- ps aux | grep apache : 특정 프로세스에 대해서 보고 싶을 경우 'grep'명령어를 같이 활용
- grep과 egrep은 차이가 없으나 egrep이 grep의 확장된 개념으로 grep의 옵션이 egrep에도 적용이 가능

 

CentOS에서 아파치 설정파일 httpd.conf의 일반적 위치

/etc/httpd/conf/httpd.conf

 

Bitnami stack - Start Or Stop Services

- 각 Bitnami 스택에는 서비스를 쉽게 중지, 시작 및 다시 시작할 수있는 제어 스크립트가 포함되어 있습니다.

- https://docs.bitnami.com/aws/faq/administration/control-services/

sudo /opt/bitnami/ctlscript.sh restart apache : 서비스 이름을 인수로 전달하여 Apache와 같은 단일 서비스를 재시작

sudo /opt/bitnami/ctlscript.sh start/stop/status : 모든 서비스 시작/중지/상태확인을 위한 스크립트 사용(서비스명 인수없이 호출)

sudo /opt/bitnami/ctlscript.sh restart : 인수없이 스크립트를 실행하여 서비스를 다시 시작

ex) $ sudo /opt/bitnami/ctlscript.sh status

php-fpm already running

apache already running

mysql already running

'리눅스' 카테고리의 다른 글

Bitnami HTTPS Configuration Tool  (0) 2023.05.15
Bitnami 로그 / MySQL 접속  (0) 2021.05.28
Posted by cpu21