• 워드프레스 필수 스니펫

    워드프레스 필수 스니펫

    code-snipptes 플러그인에서 필수로 만들어야 하는 항목들이 있습니다.

    워드프레스

    처음 워드프레스를 만들면 head 영역에 워드프레스 검색이 되도록 javascript 입력해야하는경우도 있고

    또 테마의 라이선스 항목을 스타일로 없애기 위해 jQuery 프레임워크를 호출하여 사용하기도 합니다.

    이러한 필수 스니펫 항목을 일괄 import 할 수 있도록 json 파일로 만들어놓았습니다.

    파일을 다운받아서 code-snippets 플러그인에 import 하여 필요한 항목을 enabled 시켜서 사용하면 됩니다.

    워드프레스 설치 할때 플러그인도 새로 까셔야 하죠?

    필수 플러그인 바로 빠르게 설치 할 수 있도록 명령어로 구성해놓았습니다..

    필터에 업로드 Mimes 타입을 json 파일도 등록하였습니다.

    json 파일을 인터넷 다 검색해보면 text 로 타입을 잡아놨던데…. 잘못된 정보라서 정정해서 사용되도록 해놓았습니다.

    따로 글 올려놓을테니 보시고 도움되시기 바랍니다.

    잘 사용하세요.

  • 워드프레스 필수 플러그인

    워드프레스 필수 플러그인

    워드프레스

    다른 플러그인의 설치 유무는 크게 중요하지 않습니다.

    하지만 위의 8개의 플러그인은 상당히 중요합니다.

    필수 항목이면서 매번 워드프레스를 설치할때마다 반복해야 하는 작업이라서 자동화를 위해 글을 작성합니다.

    일단 위의 플러그인을 일괄 압축하여 리눅스맨 워드프레스 블로그에 올려놓았습니다.

    사용방법은 아래 명령어를 그대로 wp-content 폴더에서 실행하면 됩니다.

    이때 기존 플러그인 폴더가 삭제되므로 이미 사용중인 워드프레스에서는 절대 실행하면 안됩니다.

    다시 말씀드리지만 처음에 워드프레스를 설치 할 때 설치 해야할 필수 항목입니다.

    #시작은 wp-content 폴더에서 명령어를 입력해주세요
    
    cd wp-content
    rm -rf plugins
    wget https://vlog.tion.co.kr/app/plugins.tar
    tar xvf plugins.tar
    rm -rf plugins.tar
    chown apache.apache plugins/ -R
    
    ll
    
    

    플러그인 설치를 위해 대략 5분정도 시간이 걸립니다. 이 시간을 줄이기 위함입니다.

    워드프레스

    플러그인은 웹검색엔진 SEO 최적화에 집중되어져 있습니다.

    Yoast SEO 환경설정은 아래 내용을 그대로 import 넣으시기 바랍니다.

    ; These are settings for the Yoast SEO plugin by Yoast.com
    
    [wpseo]
    tracking = 
    license_server_version = 
    ms_defaults_set = 
    ignore_search_engines_discouraged_notice = 
    indexing_first_time = 
    indexing_started = 
    indexing_reason = ""
    indexables_indexing_completed = 
    version = "17.3"
    previous_version = "14.5"
    disableadvanced_meta = 1
    enable_headless_rest_endpoints = 1
    ryte_indexability = 1
    baiduverify = ""
    googleverify = ""
    msverify = ""
    yandexverify = ""
    site_type = "blog"
    has_multiple_authors = ""
    environment_type = "production"
    content_analysis_active = 1
    keyword_analysis_active = 1
    enable_admin_bar_menu = 1
    enable_cornerstone_content = 1
    enable_xml_sitemap = 1
    enable_text_link_counter = 1
    show_onboarding_notice = 
    first_activated_on = "1535634814"
    myyoast-oauth = 
    semrush_integration_active = 
    semrush_country_code = "us"
    permalink_structure = ""
    home_url = ""
    dynamic_permalinks = 
    category_base_url = ""
    tag_base_url = ""
    enable_enhanced_slack_sharing = 
    zapier_integration_active = 
    zapier_api_key = ""
    enable_metabox_insights = 
    enable_link_suggestions = 
    algolia_integration_active = 
    
    [wpseo_titles]
    forcerewritetitle = 
    separator = "sc-dash"
    title-home-wpseo = "%%sitename%%"
    title-author-wpseo = "%%name%%, Author at %%sitename%%"
    title-archive-wpseo = "%%date%% %%page%% %%sep%% %%sitename%%"
    title-search-wpseo = "%%searchphrase%% %%page%% %%sep%% %%sitename%%"
    title-404-wpseo = "%%sitename%% %%tag_description%% %%tag%%"
    social-title-author-wpseo = "%%name%%"
    social-title-archive-wpseo = "%%date%%"
    social-description-author-wpseo = ""
    social-description-archive-wpseo = ""
    social-image-url-author-wpseo = ""
    social-image-url-archive-wpseo = ""
    social-image-id-author-wpseo = 0
    social-image-id-archive-wpseo = 0
    metadesc-home-wpseo = "%%sitedesc%%"
    metadesc-author-wpseo = "%%sitename%% %%tag_description%% %%tag%%"
    metadesc-archive-wpseo = "%%sitename%% %%tag_description%% %%tag%%"
    rssbefore = ""
    rssafter = ""
    noindex-author-wpseo = 
    noindex-author-noposts-wpseo = 
    noindex-archive-wpseo = 
    disable-author = 
    disable-date = 
    disable-post_format = 
    disable-attachment = 1
    breadcrumbs-404crumb = ""
    breadcrumbs-display-blog-page = 
    breadcrumbs-boldlast = 
    breadcrumbs-archiveprefix = ""
    breadcrumbs-enable = 
    breadcrumbs-home = ""
    breadcrumbs-prefix = ""
    breadcrumbs-searchprefix = ""
    breadcrumbs-sep = ""
    website_name = ""
    person_name = ""
    person_logo = ""
    person_logo_id = 0
    alternate_website_name = ""
    company_logo = ""
    company_logo_id = 0
    company_logo_meta = 
    person_logo_meta = 
    company_name = ""
    company_or_person = "company"
    company_or_person_user_id = 1
    stripcategorybase = 
    open_graph_frontpage_title = "%%sitename%%"
    open_graph_frontpage_desc = ""
    open_graph_frontpage_image = ""
    open_graph_frontpage_image_id = 0
    title-post = "%%title%%"
    metadesc-post = "%%title%% %%tag%%"
    noindex-post = 
    display-metabox-pt-post = 1
    post_types-post-maintax = 0
    schema-page-type-post = "WebPage"
    schema-article-type-post = "Article"
    social-title-post = "%%title%%"
    social-description-post = ""
    social-image-url-post = ""
    social-image-id-post = 0
    title-page = "%%title%%"
    metadesc-page = "%%title%% %%tag%%"
    noindex-page = 
    display-metabox-pt-page = 1
    post_types-page-maintax = 0
    schema-page-type-page = "WebPage"
    schema-article-type-page = "None"
    social-title-page = "%%title%%"
    social-description-page = ""
    social-image-url-page = ""
    social-image-id-page = 0
    title-attachment = "%%title%% %%page%% %%sep%% %%sitename%%"
    metadesc-attachment = ""
    noindex-attachment = 
    display-metabox-pt-attachment = 1
    post_types-attachment-maintax = 0
    schema-page-type-attachment = "WebPage"
    schema-article-type-attachment = "None"
    title-tax-category = "%%term_title%% %%sep%% %%sitename%%"
    metadesc-tax-category = "%%term_title%% %%tag%%"
    display-metabox-tax-category = 1
    noindex-tax-category = 
    social-title-tax-category = "%%term_title%% Archives"
    social-description-tax-category = ""
    social-image-url-tax-category = ""
    social-image-id-tax-category = 0
    title-tax-post_tag = "%%term_title%%"
    metadesc-tax-post_tag = "%%term_title%% %%tag%%"
    display-metabox-tax-post_tag = 1
    noindex-tax-post_tag = 
    social-title-tax-post_tag = "%%term_title%% Archives"
    social-description-tax-post_tag = ""
    social-image-url-tax-post_tag = ""
    social-image-id-tax-post_tag = 0
    title-tax-post_format = "%%term_title%% %%sep%% %%sitename%%"
    metadesc-tax-post_format = "%%term_title%% %%tag%% %%page%%"
    display-metabox-tax-post_format = 
    noindex-tax-post_format = 
    social-title-tax-post_format = "%%term_title%% Archives"
    social-description-tax-post_format = ""
    social-image-url-tax-post_format = ""
    social-image-id-tax-post_format = 0
    taxonomy-category-ptparent = 
    taxonomy-post_tag-ptparent = 
    taxonomy-post_format-ptparent = 
    
    [wpseo_social]
    facebook_site = ""
    instagram_url = ""
    linkedin_url = ""
    myspace_url = ""
    og_default_image = ""
    og_default_image_id = ""
    og_frontpage_title = ""
    og_frontpage_desc = ""
    og_frontpage_image = ""
    og_frontpage_image_id = ""
    opengraph = 1
    pinterest_url = ""
    pinterestverify = ""
    twitter = 1
    twitter_site = ""
    twitter_card_type = "summary_large_image"
    youtube_url = ""
    wikipedia_url = ""

    워드프레스 필수 스니펫을 정리했습니다.

    아래 글 보시고 바로 import 해서 적용해보세요.

    잘 사용하세요.

  • 리눅스 불필요한 파일 삭제

    리눅스 불필요한 파일 삭제

    rm -rf _______LOG_DB_TABLE.php
    rm -rf _______redirect_url_check.php
    rm -rf _______test_wordpress_function.php
    rm -rf _______TION_STATS/
    rm -rf _______callcenter.php
    rm -rf _______html_head.php
    rm -rf wordfence-waf.php
    rm -rf _______member.php
    rm -rf _WOPS_wordpress_one_page_system.php
    ll

    워드프레스

    _______LOG_DB_TABLE 로그 저장

    _______redirect_url_check URL 리다이렉트 체크

    _______test_wordpress_function 워드프레스 기능 테스트

    _______TION_STATS 로그폴더

    _______callcenter 전화번호 관리

    _______html_head 해더 파일

    wordfence-waf.php 웹방화벽 툴

    _______member 맴버 확인

    _WOPS_wordpress_one_page_system 원페이지 만들때 사용하는 워드프레스 페이지

    ll 리스트 확인

  • 설정 파일의 암호 (blowfish_secret)의 길이가 올바르지 않습니다. 32 바이트 이상이여야 합니다

    설정 파일의 암호 (blowfish_secret)의 길이가 올바르지 않습니다. 32 바이트 이상이여야 합니다

    설정 파일의 암호 (blowfish_secret)의 길이가 올바르지 않습니다. 32 바이트 이상이여야 합니다

    The secret passphrase in configuration (blowfish_secret) is too short

    Put! the blowfish_scret code

    vi /usr/share/phpmyadmin/config.inc.php

     

    blowfish secret generator

    /**
    * This is needed for cookie based authentication to encrypt password in
    * cookie. Needs to be 32 chars long.
    */
    
    $cfg['blowfish_secret'] = '#Jx,fn,tMFj59G(jA0YaScA!-k:33A_9';
    
    /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
    
    

  • $cfg ‘tempdir’ (/var/www/html/phpmyadmin/tmp/) is not accessible

    $cfg ‘tempdir’ (/var/www/html/phpmyadmin/tmp/) is not accessible

    $cfg ‘tempdir’ (/var/www/html/phpmyadmin/tmp/) is not accessible

    $cfg[]TempDir”(/var/www/phpMyAdmin/tmp/)에 액세스할 수 없음. phpMyAdmin은 템플릿을 캐시할 수 없으며 이로 인해 속도가 느려질 것이다.

    워드프레스

    워드프레스

     

    1. Edit ‘config.inc.php’ file

    vi config.inc.php 
    #put bellow one line.
    $cfg['TempDir'] = '/tmp';

    워드프레스

     

    solved!!

    해결

     

     

  • FastSpring 결제 모듈 수수료 정리 in wordpress

    FastSpring 결제 모듈 수수료 정리 in wordpress

    워드프레스에 해외 결제모듈 연결하는것도 생각보다 손이 많이 갑니다.

    (어쩌면 제가 몰라서 손이 많이 가고 쉬운길을 빙빙 돌아가고 있을 수 있습니다. 쉬운방법 있으면 알려주세요 ㅎㅎ)

    국내에서 이용가능한 PG사의 경우에는 카드회사별로 심사와 초기비용 20만원 이렇게 내면 진행은 되는데 결정적으로 디지털상품에 대한 수수료가 너무 많이 내야합니다.

    그부분때문에 10년전부터 지금까지 제가 PG사를 가입하지 않는 이유이기도 합니다.

    워드프레스

    FastSpring 결제 할때 디지털상품에 대한 수수료

    W-8BEN 세금 정보 입력할때

    혹시라도 사업자 번호가 없는데 세금관련 정보를 입력해야한다면 신분증( 주민등록번호,  여권번호 ) 를 상황에 맞게 입력하면 됩니다.

    워드프레스
    일단 결론부터 이야기를 하면…
    디지털상품 결제에 대한 수수료는 한국과 비교하면 양호한 편이나 결제당 수수료가 무조건 0.95달러라보니 (대략 1,300원) 생각보다 금액이 큽니다.
    예를들어서 한국에서 천원짜리 디지털 상품을 판매할경우 배보다 배꼽이 더 커버리는 상황이 발생하게됩니다.
    과거에 이런경우가 있었는데…
    카드결제 초창기때 최소결제 단위가 존재하던 시절에 결제시 최소 300원 혹은 500원이라서 문구나 소금액 상품을 결제할수가 없었죠.
    지금은 라이터 하나 사더라도 카드결제하는 시대라서 이부분이 조금 아쉽기는 했지만 자사몰에서 전세계를 상대로 결제시스템을 만들수 있다는 메리트 하나만 본다면
    패스트스프링 결제모듈도 사용해볼만 하다고 생각합니다.
    일단 신청을 해보고 맘에 안들면 빼고 스마트스토어나 블로그결제 같은 소형업체에서 사용할 수 있는 PG사 연계상품을 사용하던지 해야겟습니다.

    FastSpring Order Form and Terms of Service

    Description Frequency Amount
    Digital Retailer Rate Per transaction 5.9%
    Transaction Fee Per transaction $0.95 USD

     

    워드프레스

     

    참고로 네이버 스마트스토어를 결제용도로 사용하게되면 결제단계가 1단계 더 생기게되어 결제률이 다소 떨어질수는 잇습니다.

    다만 수수료라던지 이런 부분들은 상당히 유리해집니다. 거의 3%~5% 수준이며 상대방이 무통장 입금을 할 경우에는 수수료가 거의 들지 않습니다. 100~300원 수준입니다.

    대신 단점이라면 결제 완료에 대한 통보를 따로API 형식으로 제공 받을 수 없기때문에 판매자가 매번 확인해서 상품을 보내줘야 하는 단점이 있습니다.

    이를 보안하기 위해서 네이버 스마트스토어 자동화 시스템을 도입한다면 나름 괜찮은 방법이긴 합니다. 일반인들은 시스템을 만들기가 쉽지 않지만 만들면 좋습니다.

    스마트스토어 자동 프로그램 만들기

     

    저라도 도전해보겠습니다.

    이미 만들어진 시스템이 있는데 여러분들도 사용할 수 있도록 모듈화 해보겠습니다.

    필요하신 분들은 연락한번 해보세요. 언젠가는 함께 윈윈하는 방법이 나와서 하고 있겠죠^^

  • 라이트세일 단점 5가지

    라이트세일 단점 5가지

    라이트세일 단점 5가지를 정리해보았습니다.

    라이트세일 단점 5가지

    1. 서비스 명령어가 달라서 매번 정리한 글을 봐야합니다.

    sudo /opt/bitnami/ctlscript.sh status
    
    apache already running 
    mariadb already running 
    php-fpm already running
    
    
    #모든 Bitnami 서비스 재시작 명령어
    sudo /opt/bitnami/ctlscript.sh restart

    2. 용량이 고정이고 CPU 성능에 따라 개별 업그레이드가 안됩니다.

    라이트세일 단점

    CPU, 메모리를 올릴려면 볼륨을 스냅샷 떠 놓고 그 스냅샷으로 새로운 더 좋은 사양의 인스턴스로 선택해서 시작해야합니다.

    성능이 더 좋은 방향으로는 쉽게 해결되지만 반대로 성능을 낮출수 없다는 단점이 있습니다.

    낮출경우 하드용량이 서로 맞지 않기때문에 오히려 따로 개별 백업을 해야합니다.

    3. 라이트세일 단점 암호가 여기저기 퍼져있습니다.

    라이트세일 단점
    sudo passwd
    #암호 새로 입력 후 
    sudo su -
    
    #root 바로 접속하기 위함
    vi /root/.ssh/authorized_keys
    
    #alias 연결하기 위함 (주석제거)
    vi /root/.bashrc
    
    #SSH Port 22 변경
    vi /etc/ssh/sshd_config
    
    #파일 SSH전송
    sudo apt-get install lrzsz 
    sudo apt-get install python3-distutils
    
    reboot
    
    #wp-cache 설치 후 다시 644 되돌려놓기
    chmod 664 /opt/bitnami/wordpress/wp-config.php
    chmod 644 /opt/bitnami/wordpress/wp-config.php
    #마우스 복사 할 경우 위의 선행작업 후 아래를 복사 붙여넣기 해야합니다.
    
    #phpmyadmin URL
    vi /opt/bitnami/apache/conf/bitnami/phpmyadmin.conf
    
    #암호확인
    cat /home/bitnami/bitnami_application_password
    
    #phpmyadmin, wordpress 로그인 암호 동일합니다
    #유저는 user 입니다
    
    

    4. 대부분 앱들이 이미 기성 세팅값으로 저장되어져있다.

    워드프레스

    제 경우에는 이미 특정 세팅값으로 설정이 되어 더 좋았습니다.

    하지만 대부분 자신의 세팅대로 서버를 설정하시는분들이 많기때문에 이런 부분들로 인해서 매우 단점이 될듯합니다.

    암호를 바꾸면 되지만 심지어 phpmyadmin 까지 암호를 정해놓은 상태입니다.

    5. phpmyadmin 경로를 수정해주어야 합니다.

    Alias /phpmyadmin "/opt/bitnami/phpmyadmin"
    <Directory "/opt/bitnami/phpmyadmin">
    Options -Indexes +FollowSymLinks -MultiViews
    AllowOverride All
    Require local
    ErrorDocument 403 "For security reasons, this URL is only accessible using localhost (127.0.0.1) as the hostname."
    # AuthType Basic
    # AuthName phpmyadmin
    # AuthUserFile "/opt/bitnami/apache/users"
    # Require valid-user
    
    
    <IfVersion < 2.3 >
    Order allow,deny
    Allow from all
    Satisfy all
    </IfVersion>
    <IfVersion >= 2.3>
    Require all granted
    </IfVersion>
    ErrorDocument 403 "For security reasons, this URL is only accesible using localhost (127.0.0.1) as the hostname"
    </Directory>

    라이트세일 구입해서 워드프레스 운영하려했는데 에러나는 부분이 왜 이렇게 많은지 모르겠습니다.

    워드프레스
    워드프레스
    액세스 차단됨: GAinWP님의 요청이 잘못되었습니다

    결국 이 부분은 처음부터 세팅이 안되어서 그냥 방치해놓았습니다.

    라이트세일 저렴한 금액이라 구입하시려는 분들에게 말씀드리자면…

    EC2 서버 운영할 정도 여력되시면 저는 EC2를 권해드립니다.

    워드프레스

    라이트세일은 요금도 이상하지만 내가 구입한 요금제에서 초과 트래픽이 발생하면 진짜 괴롭습니다.

    EC2는 과금이라도 더 내면서 빠르게 사용할수 있지만 라이트세일은 느린 상태로 메모리 부족현상이 풀리기만 기다려야합니다.

    어쩔땐 10분넘도록 멈출때도 있습니다.

    그러다가 홈페이지에 누군가가 접속하면 계속 병목현상이 일어나겠죠 ㅎㅎ

    이상 라이트세일 단점에 대해서 알아보았습니다.

    워드프레스

    라이트세일 장점이라면 저렴한 금액입니다.

    처음 시작하는 분들은 3개월 무료 사용가능하니 성능 한번 비교해보시면 좋을 듯 합니다.

    저도 저렴해서 라이트세일 2개 구입해서 사용중에 있습니다.

    워드프레스

    라이트세일 단점 결론!

    필요한 서버가 임시라면 라이트세일  사용해도 괜찮습니다..

    필요한 서버가 학교 수업용이라면 라이트세일 사용해도 됩니다.

    필요한 서버가 테스트 서버라면 라이트세일 사용해도 됩니다.

    필요한 서버가 실서버로 회사에서 운영해야한다면? 무조건 EC2 쓰셔야 합니다.

    개인용으로는 연습하기에 쓸만하나 기업용으로는 EC2를 사용하는것이 더 유리합니다.

    감사합니다.

  • how to edit esxi 7 crontab 크론탭 IP 자동 하는 방법

    how to edit esxi 7 crontab 크론탭 IP 자동 하는 방법

    크론탭을 이용하여 esxi 7 서버의 IP를 주기적으로 확인 하는 방법입니다.

    워드프레스

    홈 PC등 개인적으로 집에서 서버를 운영할 경우 갑작스럽게 서버가 셧다운되거나 IPS사의 게이트웨이 주소 변경으로 IP가 변동되는 경우가 있습니다. 이런 경우에는 직접 서버 아이피를 확인해야하지만 원격지에서 변경된 아이피를 확인 할 수 없습니다.

    재부팅하더라도 아래처럼 입력해놓을경우 초기화되지 않습니다.

    /etc/rc.local.d/local.sh

    /vmfs/volumes/datastore1/root/serverChecker.sh

    exit 0 위에 한줄 추가

    워드프레스

    만약 cronjob 에 초기화 안되게 하려면

    local.sh 항목에 매번 부팅할때마다 cronjob 자동으로 등록되도록 명령어를 입력해야합니다.

    #put to crontab
    
    echo "*/1 * * * * /vmfs/volumes/datastore1/root/serverChecker.sh" >> /var/spool/cron/crontabs/root
    
    #cronjob force stop
    
    kill `cat /var/run/crond.pid`
    
    #cronjob start
    
    /usr/lib/vmware/busybox/bin/busybox crond


    vi /etc/rc.local.d/local.sh
    
    echo "*/1 * * * * /vmfs/volumes/datastore1/root/serverChecker.sh" >> /var/spool/cron/crontabs/root
    kill `cat /var/run/crond.pid`
    /usr/lib/vmware/busybox/bin/busybox crond

    그때 ESXi 7에 등록된 cronjob 기능을 이용하여 외부에서 변경되는 실시간 IP를 확인 할 수 있습니다.

    워드프레스

    크론탭 자동 등록하는 방법

    how to VMWARE ESXi 7 crontab

    1. VMWARE ESXi 7 SSH 접속을 하고 아래 폴더로 이동합니다.

    cd /var/spool/cron/crontabs

    yum 으로 따로 설치를 하지 않아도 이미 크론탭과 기능이 동일한 스케줄러가 동작하고 있습니다.

    2. root 파일에 쓰기권한을 추가합니다.

    워드프레스

    읽기전용 root 파일을 쓰기 권한으로 변경합니다.

    chmod 777 root

    3. 1분마다 서버 IP를 확인 하도록 스케쥴을 등록합니다.

    vi 명령어를 이용하여 root파일에 기존 리눅스 crontab -e 명령어로 사용했던 그대로 일정을 기록합니다.

    재부팅, 서버부팅마다 /root 폴더가 사라지므로 폴더는 꼭 /vmfs/volumes/datastore1/root 에 만드시기 바랍니다

    워드프레스
    */1 * * * * /root/serverChecker.sh
    
    #min hour day mon dow commmand
    
      *       *        *       *       *      /shellscript.sh

    4. root파일을 다시 읽기 권한 다시 변경합니다.

    워드프레스

    쓰기 권한을 다시 읽기전용 root 파일로 변경합니다.

    chmod 444 root

    4. 1분마다 서버 IP를 확인 하도록 등록합니다.

    serverCheck.sh 파일은 /root 폴더 아래에 두었으며 내용은 wget을 이용하여

    특정 웹서버에 1분마다 페이지를 읽어 그 서버에서 ESXi 7 서버의 ip를 알 수 있도록 하였습니다.

    재미있는 방법으로는 ESXi 7 서버내에 CentOS 리눅스 하나 설치해서 워드프레스 서버를 하나 운영하고 그 워드프레스 주소로 ip를 확인 할 수 있습니다.

    워드프레스
    wget http://yourWebServerDomain/serverChecker.php?SERVER_NAME
    워드프레스

    1분마다 ESXi 서버의 IP가 확인 됩니다.

    serverCheck.php 파일에 mysql 을 연결하여 매 분마다 들어오는 IP를 저장하고

    최근 등록된 IP 순서대로 ( order by regDate DESC ) 추출하면 자신의 ESXi 서버 리스트를 만들 수 있습니다.

    serverChecker.sh 파일

    SERVER_DOMAIN="domain=domainName"
    SERVER_INFO="&cpu=x4cpu22core44thread&cpuinfo=Intel_E7-8880v4_2.20GHz&ram=1024gb_64gx16&ssd=8TB_2TBx4"        
    cd /vmfs/volumes/datastore1/root/
     
    wget http://33.34.246.187/serverChecker.php?$SERVER_DOMAIN$SERVER_INFO
    rm -rf /vmfs/volumes/datastore1/root/serverChecker.php*
    
    # 1 - 30 = 4 - 10

    최근에는 위의 설정도 많이 복잡해서 그냥 호스트네임 그대로 땡겨와서 IP만 체크합니다.

    SERVER_HOSTNAME=`hostname`
    wget http://33.34.246.187/serverChecker.php?ESXi=${SERVER_HOSTNAME} >> /etc/serverChecker.logs
    echo "*/1 * * * * wget http://33.34.246.187/serverChecker.php?ESXi=${SERVER_HOSTNAME} >> /etc/serverChecker.logs" >> /var/spool/cron/crontabs/root
    kill `cat /var/run/crond.pid`
    /usr/lib/vmware/busybox/bin/busybox crond
    rm -rf serverChecker.php*
    
    # 1 - 30 = 4 - 10
    # 1 - 30 = 4 - 10
    # 두번 변경해야함!!
    
  • 워드프레스 플러그인 목록 #2

    워드프레스 플러그인 목록 #2

    워드프레스 플러그인 목록 2번째

    워드프레스 만들때 플러그인 뭘 설치 해야할지 몰라서 고민할때 그냥 그대로 설치해도 어느정도 웹 SEO 최적화됩니다.

    AWS EC2에서 기본적으로 세팅해서 사용하는 플러그인이며 워드프레스 블로그가 조금 무거운 느낌은 있지만 통계와 수익 구조를 한눈에 파악 할 수 있습니다.

    워드프레스

     

    플러그인 설명 자동 업데이트
    Advanced Editor Tools (previously TinyMCE Advanced)

    Extends and enhances the block editor (Gutenberg) and the classic editor (TinyMCE).

    버전 5.6.0 | 작성자 Automattic | 상세 보기
    자동 업데이트 비활성화
    AMP

    An easier path to great Page Experience for everyone. Powered by AMP.

    자동 업데이트 비활성화
    Classic Editor

    Enables the WordPress classic editor and the old-style Edit Post screen with TinyMCE, Meta Boxes, etc. Supports the older plugins that extend this screen.

    버전 1.6.2 | 작성자 WordPress Contributors | 상세 보기
    자동 업데이트 비활성화
    Clipboard Images

    Support paste images from clipboard for posts & comments (based on filereader.js)

    버전 0.3 | 작성자 CasePress
    Code Snippets

    An easy, clean and simple way to run code snippets on your site. No need to edit to your theme’s functions.php file again!

    버전 2.14.2 | 작성자 Code Snippets Pro | 상세 보기 | About | Support | Donate
    자동 업데이트 비활성화
    Disable Comments

    Allows administrators to globally disable comments on their site. Comments can be disabled according to post type. You could bulk delete comments using Tools.

    버전 2.2.4 | 작성자 WPDeveloper | 상세 보기 | GitHub
    자동 업데이트 비활성화
    GAinWP Google Analytics Integration for WordPress

    Automatically adds Google Analytics tracking to your site and displays Google Analytics reports and real-time statistics in your dashboard.

    버전 5.4.6 | 작성자 IntelligenceWP | 상세 보기
    자동 업데이트를 활성화됨
    Insert Headers and Footers

    Allows you to insert code or text in the header or footer of your WordPress blog

    버전 1.6.0 | 작성자 WPBeginner | 상세 보기
    자동 업데이트 비활성화
    Limit Login Attempts Reloaded

    Limit the rate of login attempts for each IP address.

    버전 2.23.2 | 작성자 Limit Login Attempts Reloaded | 상세 보기
    자동 업데이트 비활성화
    List category posts

    List Category Posts allows you to list posts by category in a post/page using the [catlist] shortcode. This shortcode accepts a category name or id, the order in which you want the posts to display, the number of posts to display and many more parameters. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].

    버전 0.85.1 | 작성자 Fernando Briano | 상세 보기 | How to use | Donate | Fork on Github
    자동 업데이트 비활성화
    PHP Code Widget

    Like the Text widget, but it will take PHP code as well. Heavily derived from the Text widget code in WordPress.

    버전 2.3 | 작성자 Otto | 상세 보기
    자동 업데이트 비활성화
    Really Simple SSL

    Lightweight plugin without any setup to make your site SSL proof

    버전 5.1.3 | 작성자 Really Simple Plugins | 상세 보기
    자동 업데이트 비활성화
    Redirection

    Manage all your 301 redirects and monitor 404 errors

    버전 5.1.3 | 작성자 John Godley | 상세 보기
    자동 업데이트 비활성화
    Smush

    Reduce image file sizes, improve performance and boost your SEO using the free WPMU DEV WordPress Smush API.

    버전 3.9.2 | 작성자 WPMU DEV | 상세 보기 | Rate Smush | Support | Roadmap
    자동 업데이트 비활성화
    Widget Logic

    Control widgets with WP’s conditional tags is_home etc

    버전 5.10.4 | 작성자 WPChef | 상세 보기
    자동 업데이트 비활성화
    Wordfence Security

    Wordfence Security – Anti-virus, Firewall and Malware Scan

    버전 7.5.6 | 작성자 Wordfence | 상세 보기
    자동 업데이트 비활성화
    WP Code Highlight.js

    This is simple wordpress plugin for highlight.js library. Highlight.js highlights syntax in code examples on blogs, forums and in fact on any web pages. It´s very easy to use because it works automatically: finds blocks of code, detects a language, highlights it.

    버전 0.6.2 | 작성자 OWenT | 플러그인 사이트 방문
    WP Offload SES Lite

    Automatically send WordPress mail through Amazon SES (Simple Email Service).

    버전 1.4.6 | 작성자 Delicious Brains | 상세 보기
    자동 업데이트 비활성화
    WP Super Cache

    Very fast caching plugin for WordPress.

    버전 1.7.4 | 작성자 Automattic | 상세 보기
    자동 업데이트 비활성화
    Yoast SEO

    The first true all-in-one SEO solution for WordPress, including on-page content analysis, XML sitemaps and much more.

    버전 17.5 | 작성자 Team Yoast | 상세 보기
    자동 업데이트 비활성화
    구글이 만든 사이트 킷

    사이트 킷은 구글이 웹을 성공적으로 만들어 주는 모든 것을 이용하는 워드프레스 이용자용 종합 해법입니다.

    버전 1.45.0 | 작성자 구글 | 상세 보기 | 사이트킷 평가하기 | 지원
    자동 업데이트 비활성화
    요스트 글 복제

    쉬운 다시 쓰기 & 다시 발행하기 기능을 포함하는 글과 패이지를 복제하는데 대한 이동 도구입니다.

    버전 4.1.2 | 작성자 엔리코 바토치 & 팀 요스트 | 상세 보기 | 문서
    자동 업데이트 비활성화
  • 워드프레스 플러그인 목록 #1

    워드프레스 플러그인 목록 #1

    각 플러그인 이름은 아랫쪽 표 항목에서 복사 붙여넣기 하면됩니다.

    AWS 라이트세일 에서 기본적으로 세팅해주는 플러그인이며 워드프레스 블로그가 많이 가볍다는 느낌을 받습니다.

    워드프레스

     

    Advanced Editor Tools (previously TinyMCE Advanced)

    Extends and enhances the block editor (Gutenberg) and the classic editor (TinyMCE).

    버전 5.6.0 | 작성자 Automattic | 상세 보기
    자동 업데이트 비활성화
    All in One SEO

    SEO for WordPress. Features like XML Sitemaps, SEO for custom post types, SEO for blogs, business sites, ecommerce sites, and much more. More than 80 million downloads since 2007.

    버전 4.1.5.1 | 작성자 한번에 SEO 모음 | 상세 보기 | 기능 제안
    자동 업데이트 비활성화
    All-in-One WP Migration

    블로그 데이터를 마이그레이션하기 위한 도구입니다. 블로그 내용을 한번의 클릭으로 들여오거나 내보낼 수 있습니다.

    버전 7.50 | 작성자 ServMask | 상세 보기 | Contact Support | 번역하기
    자동 업데이트 비활성화
    AMP

    An easier path to great Page Experience for everyone. Powered by AMP.

    자동 업데이트 비활성화
    AWS for WordPress

    Create audio versions of your posts, translate them into other languages, and create podcasts. Integrate with Amazon Alexa to listen to your posts on Alexa-enabled devices. Use Amazon CloudFront to accelerate your website and provide a faster, more reliable viewing experience.

    버전 4.3.2 | 작성자 AWS Labs, WP Engine | 상세 보기
    자동 업데이트 비활성화
    Clipboard Images

    Support paste images from clipboard for posts & comments (based on filereader.js)

    버전 0.3 | 작성자 CasePress
    Google Analytics for WordPress by MonsterInsights

    The best Google Analytics plugin for WordPress. See how visitors find and use your website, so you can keep them coming back.

    버전 8.2.0 | 작성자 MonsterInsights | 상세 보기
    자동 업데이트를 활성화됨
    Manage auto-updates
    Insert Headers and Footers

    Allows you to insert code or text in the header or footer of your WordPress blog

    버전 1.6.0 | 작성자 WPBeginner | 상세 보기
    자동 업데이트 비활성화
    Jetpack Boost

    Boost your WordPress site’s performance, from the creators of Jetpack

    버전 1.3.0 | 작성자 Automattic | 상세 보기
    자동 업데이트 활성화
    Really Simple SSL

    Lightweight plugin without any setup to make your site SSL proof

    버전 5.1.3 | 작성자 Really Simple Plugins | 상세 보기
    자동 업데이트 비활성화
    Redirection

    Manage all your 301 redirects and monitor 404 errors

    버전 5.1.3 | 작성자 John Godley | 상세 보기
    자동 업데이트 비활성화
    TaxoPress

    Extended Tag Manager. Terms suggestion, Mass Edit Terms, Auto link Terms, Ajax Autocompletion, Click Terms, Advanced manage terms, etc.

    버전 3.4.0 | 작성자 TaxoPress | 상세 보기
    자동 업데이트 비활성화
    W3 Total Cache

    The highest rated and most complete WordPress performance plugin. Dramatically improve the speed and user experience of your site. Add browser, page, object and database caching as well as minify and content delivery network (CDN) to WordPress.

    버전 2.1.9 | 작성자 BoldGrid | 상세 보기
    자동 업데이트 비활성화
    WP Offload SES Lite

    Automatically send WordPress mail through Amazon SES (Simple Email Service).

    버전 1.4.6 | 작성자 Delicious Brains | 상세 보기
    자동 업데이트 비활성화
    고전 편집기

    워드프레스 고전 편집기와 이전 모습의 편집기 레이아웃(TinyMCE, 메타박스 등)을 활성화. 이 화면을 확장하는 이전 플러그인 등을 지원

    버전 1.6.2 | 작성자 워드프레스 기여자 | 상세 보기
    자동 업데이트 비활성화
    아키스밋 스팸 방지

    수 백만이 사용합니다, 아키스밋은 아마도 스팸으로부터 블로그를 보호하는 세상에서 가장 좋은 방법일 것입니다. 당신이 잠 든 사이에도, 사이트가 완전히 구성되어 보호되고 있습니다.

    버전 4.2.1 | 작성자 오토매틱 | 상세 보기
    자동 업데이트 비활성화
    젯팩

    WordPress 전문가가 만든 보안, 성능, 마케팅 도구 젯팩을 통해 사이트가 보호되므로 더 중요한 일에 집중할 수 있습니다.

    버전 10.3 | 작성자 Automattic | 상세 보기
  • [해결] 사이트 목록에 없는 하나 이상의 사이트에서 광고 코드가 발견되었습니다

    [해결] 사이트 목록에 없는 하나 이상의 사이트에서 광고 코드가 발견되었습니다

    사이트 목록에 없는 하나 이상의 사이트에서 광고 코드가 발견되었습니다.
    
    수익 손실을 방지하려면 모든 사이트를 이 목록에 추가하세요.

     

    워드프레스

    만약 위의 문구를 보게 된다면 수익 손실이 발생할수도 있지만 반대로 애드센스 계정이 차단 될 수도 있습니다.

     

    위의 사이트는 제가 운영하고 있는 사이트가 아닙니다.

    바로 이러한 경우에 [ ] 를 클릭할경우 아주 심각한 문제가 발생할 수 있다는것을 알려드리기 위한 글입니다.

     

    실제로 이 사이트를 방문해보았습니다.

    HTTPs 보안인증도 완벽하게 3개월마다 자동으로 진행되도록 되어져있으며 사이트는 블로그에서 전화걸수 있는 자동화 링크 주소였습니다.

    실제로 제가 운영하고 있는 사이트를 그대로 모방하여 만든 사이트인거죠.

    워드프레스

     

    모든 소스코드가 동일했습니다.

    아마도 자신의 전화번호를 도메인에 적용시키기 위해서 만든것으로 보입니다.

    모든 소스코드를 그대로 복사해서 html 페이지를 만든것이죠.

    워드프레스

    하필이면 제가 운영하고 있는 애드센스 코드까지 그대로 넣어버린겁니다.

    게다가 이 홈페이지가 실제로 유저들사이에서 트래픽이 일어나버리니 애드센스 측에서는 제 코드를 사용하는 사이트를 저에게 보여준것이죠.

     

    하지만 제 사이트가 아니고 제가 운영하는것이 아니기에~

    혹시라도 이 곳에 애드센스 승인을 받겠다며 승인하는 순간 그 이후로 위의 사이트 주인이 악용할 경우 제명의로 된 애드센스 계정에 피해를 입게됩니다.

     

    워드프레스

    그래서 이러한 경우에는 그냥 [ 아니요 ] 버튼을 클릭하셔서 없애버리는게 좋습니다.

    혹시라도 지금처럼 타인이 나의 홈페이지를 그대로 복사해서 운영하더라도 나에게는 큰 문제가 생기지 않으므로 애드센스만 잘 정리해놓으시면됩니다.

     

    애드센스 수익 많이 내시고요 도움되셨으면 하는 바램으로 글을 작성하였습니다.

    감사합니다.

  • 워드프레스 설치 다운로드 리눅스 명령어

    워드프레스 설치 다운로드 리눅스 명령어

    리눅스 서버에 워드프레스를 다운받는 방법입니다.

    wget 명령어를 이용하여 리눅스에서 직접 워드프레스 원본 소스 파일을 다은 받을 수 있습니다.

    리눅스에서 워드프레스 원본을 다운받아 보겠습니다.

     

    워드프레스 설치 다운로드 명령어

    1. 워드프레스 설치 파일을 받을 폴더를 생성합니다.

    mkdir backup

    폴더를 만들고 다운받아서 그곳에서 압축을 풀어야합니다.

     

    2. 워드프레스 설치 파일을 다운받습니다.

    wget https://wordpress.org/latest.zip
    #KRO
    wget https://ko.wordpress.org/latest-ko_KR.tar.gz

    워드프레스

    ※ 파일명이 lastest.zip 로 되어져있는것으로 보아 항상 최신 버전의 파일을 다운 받을 수 있습니다.

     

    3. 워드프레스 설치파일 압축을 해제합니다.

    unzip latest.zip

    워드프레스

     

     

    이상으로 워드프레스 설치 파일 다운받고 압축까지 해제해보았습니다.

    워드프레스를 직접 설치까지 해보실 분들은 아래 글을 참고하셔서 지접 나만의 워드프레스 블로그를 만들어 보시기 바랍니다.

     

    aws 워드프레스 설치 방법 초보도 따라해보세요