Ke hoʻokō nei iā Amazon S3 no nā Blog WordPress

amazona s3 wordpress

'Ōlelo Aʻo: Mai ke kākau ʻana i kēia, ua neʻe mākou i Flywheel me ka Kuhi Pūnaewele Kuhi uila e StackPath CDN, kahi CDN ʻoi aku ka wikiwiki ma mua o Amazon.378

Inā ʻaʻole ʻoe ma kahi uku, ʻoihana hoʻokipa ʻoihana, paʻakikī e hoʻomaka i kahi ʻoihana me kahi CMS e like WordPress. ʻO ka hoʻoili ʻana i nā hoʻoili, nā kākoʻo papaʻa, nā mea hoʻēmi, hana hou, a me ka lawe ʻana i ka ʻike ma kahi liʻiliʻi.

Nui nā ʻelele IT i ʻike i nā paepae e like me WordPress a hoʻohana iā lākou no ka mea ʻo lākou like me. Pili pū ka manuahi. E hoʻokau iā WordPress ma kahi hanana hoʻokipa maʻamau a hoʻokahi haneli mau manawa like nā mea hoʻohana i hiki ke lawe i kāu pūnaewele i kahi wili wili. I mea e kōkua ai i ka hana ʻana o kaʻu blog, i kēia pule ua hoʻololi wau i kaʻu hoʻokomo ʻana o WordPress e kāomi i nā kiʻi āpau mai Amazon S3 (Amazon Simple Storage Service). Haʻalele kēia i kaʻu kikowaena e pahu maʻalahi iā HTML ma o PHP / MySQL.

Hāʻawi ʻo Amazon S3 i kahi lawelawe lawelawe pūnaewele maʻalahi hiki ke hoʻohana ʻia e mālama a lawe mai i kekahi nui o ka ʻikepili, i kēlā me kēia manawa, mai kēlā me kēia wahi o ka pūnaewele. Hāʻawi ia i kēlā me kēia mea hoʻomohala i ke komo i ka like me ka scalable, hilinaʻi, wikiwiki, inexpensive pūnaewele ʻike pilikino e hoʻohana ai ʻo Amazon e holo i kāna pūnaewele honua ponoʻī o nā pūnaewele. Hoʻolālā ka lawelawe e hoʻonui i nā pono o ka pālākiō a hāʻawi i kēlā mau pono i nā mea hoʻomohala.

No ka hoʻololi ʻana i ka pūnaewele no Amazon S3 ua hana iki kahi hana, akā eia nā kumu.

  1. Kākau inoa no Amazon Web Services.
  2. Hoʻouka i ka Add-on Firefox no S3. Hāʻawi kēia iā ʻoe i kahi kuʻina maikaʻi loa no ka mālama ʻana i ka ʻike ma S3.
  3. hui me ia i , i kēia hihia ua hoʻohui au www.martech.zone.
  4. Hoʻohui i kahi CNAME i kāu Registrar Domain e kuhikuhi i kahi subdomain mai kāu pūnaewele i Amazon S3 no ka hoʻokipa pūnaewele ʻana.
  5. Hoʻoiho a hoʻouka i ka plugin WordPress no Amazon S3.
  6. E hoʻonoho i kāu AWS Access Key ID a me Key Key a kaomi i ka hoʻohou.
  7. Koho i ka subdomain / bākeke āu i hana ai ma luna no ka E hoʻohana i kēia pākeke wahi.

wp-amazon-s3-hoʻonohonoho.png

ʻO nā ʻanuʻu aʻe ka ʻāpana leʻaleʻa! ʻAʻole wau i makemake e lawelawe wale i nā ʻike o ka wā e hiki mai ana mai S3, makemake wau e lawelawe i nā ʻike āpau, me nā hoʻolaha, nā poʻomanaʻo, a me nā faile media i hala.

  1. Ua hana wau i nā waihona no mau hoʻolaha iho, themes, a hoʻouka i kaʻu bākeke ma S3.
  2. Ua kākoʻo au i kaʻu ʻike i kēia manawa (kiʻi a me nā faile media) i nā waihona e pili ana.
  3. Ua hoʻololi wau i kaʻu faila CSS i kaʻu kumuhana e huki i nā kiʻi āpau www.martech.zone/themes.
  4. Ua hana au i Huli ʻo MySQL a hoʻololi a hōʻano hou i kēlā me kēia kuhikuhi i ka ʻike media e hōʻike ʻia mai ka subdomain S3.
  5. Ua hōʻano hou wau i nā kuhikuhi kiʻi no nā hoʻolaha e hōʻike ʻia mai ka waihona hoʻolaha ma ka subdomain S3.

Mai aneʻi ma waho, pono wau e hoʻouka i ka pāpaho i S3 ma mua o ka hoʻohana ʻana i kahi kamaʻilio hoʻoili kiʻi paʻamau no WordPress. Hana kahi hana i kahi hana kupanaha i ka waiho ʻana i ikona S3 ma ka wahi like o ka hoʻouka / Hoʻokomo i nā kiʻi ma ka luna WordPress.

ʻO ka neʻe ʻana i nā ʻikepili āpau a holo i luna o S3 no ʻelua mau lā i kēia manawa ua hopena he $ 0.12 i nā uku S3, no laila ʻaʻole wau hopohopo e pili ana i nā uku i pili - malia paha he mau kālā i ka mahina ka mea e uku ai. Ma ka ʻaoʻao maikaʻi, inā loaʻa iaʻu he tonika o nā malihini kipa, hiki iaʻu ke lawelawe i nā mea he nui aku ma mua o nā ʻau o ka papaha o kēia manawa. Ke hoʻouka nei kaʻu pūnaewele i ka ʻaoʻao home e pili ana 40% o ka manawa i maʻa, no laila hauʻoli loa wau i ka neʻe!

ʻO ka mea maikaʻi e pili ana i kēia neʻe ʻaʻole ia e koi i kahi hoʻomohala.

28 Comments

  1. 1

    Hui,

    He waihona S3 Amazon kaʻu, akā ma hope o ka hoʻāʻo ʻana e ʻike i nā mea, haʻalele wale wau no ka mea paʻakikī loa ia. Hana ʻo ka addin firefox no S3 i mea ʻoi aku ka maʻalahi?

  2. 3

    Pono wau e hoʻohui, pono ʻoe e kuhikuhi i kāu CNAME i ka mea hou kou_unique_cloudfront_distribution_name.cloudfront.net ma kahi o kou_unique_subdomain.s3.amazonaws.com. Akā ma hope o kēlā, mālama ʻoe iā ia e like me ka bākeke S3 maʻamau.

    ʻOi aku ke kumukūʻai hou aʻe i ka hoʻohana ʻana i ka koho ʻo CloudFront latency kiʻekiʻe / ʻoi loa. Inā hoʻoholo ʻoe e hoʻi hou i ka mana S3 maʻamau, e hoʻololi wale i kāu CNAME e kuhikuhi hou i s3.amazonaws.com ma kahi.

    Ma kahi o hoʻokahi makahiki i hala, ua kākau wauhttp://www.carltonbale.com/tag/amazon-s3/"a mau memo moʻomanaʻo ma Amaon S3 no ka poʻe makemake.

  3. 4

    Inā ʻoe e ʻimi hou ana i kahi hoʻonui wikiwiki, e hoʻolilo i kāu Amazon S3 Bucket i kahi bākeke Amazon CloudFront, kahi e hoʻokumu ai i kahi kikowaena pūnaewele he nui, kikowaena latency ʻike kikowaena latency haʻahaʻa. Eia kahi loulou me nā kikoʻī āpau: http://aws.amazon.com/cloudfront/faqs/

    Eia nō naʻe, hiki i ka wp-supercache plugin ke hāʻawi i ka piʻi wikiwiki loa i nā pūnaewele ʻoihana kiʻekiʻe ʻoiai e hoʻoliʻiliʻi nui ia i ka ukana CPU a me nā kāhea database.

    • 5

      ʻOluʻolu loa, e Carlton! No laila he kikowaena pūnaewele like ia akamai. ʻAʻole wau i ʻike ua loaʻa kā lākou i kēlā! Hiki paha iaʻu ke hoʻohana maikaʻi ma hope o ka ʻike ʻana i kekahi o nā koina.

      Ua loaʻa iaʻu kahi caching me wp i hiki ai ma mua, akā loaʻa iaʻu kekahi ʻike ikaika no laila ua hakakā maoli wau me ia no ka mea i kekahi manawa cache ka ʻike i makemake maoli wau e hoʻouka i ka manawa maoli.

      • 6

        Douglas,

        Mai kā lākou wehewehe ʻana ua like paha ia me Amazon e hana nei i kahi mea ʻokoʻa loa, ʻōlelo lākou:

        "Hoʻohana ʻo Amazon CloudFront i nā wahi he 14 ma nā mākeke nui a puni ka honua. ʻEwalu i loko o ʻAmelika Hui Pū ʻIa (Ashburn, VA; Dallas / Fort Worth, TX; Los Angeles, CA; Miami, FL; Newark, NJ; Palo Alto, CA; Seattle, WA; St. Louis, MO). ʻEhā ma ʻEulopa (ʻAmelekona; Dublin; Frankfurt; Ladana). Aia ʻelua ma Asia (Hong Kong, Tokyo). ”

        Lawe pono lākou i ka hoʻololi pūnaewele e leverage i ko lākou kokoke loa i ka mea hoʻohana hope ma kahi o CDN e like me Akamai he mau kikowaena i kokoke i ka mea hoʻohana hope ma waena o ka pūnaewele ISP.

        ʻO ke ala ʻo ʻAmona ʻoi aku ka haʻahaʻa a me ka maikaʻi o Akamai.

        Rogerio - http://www.itjuju.com/

  4. 7

    ʻAʻole wau e ʻōlelo paʻakikī? E "hana i ka hana me kahi CMS e like me WordPress."

    Aia ia i ka pehea e hoʻonohonoho ai i kāu ʻoihana a i ʻole ke ala e hoʻokipa ai i kāu CMS.
    ʻO ke ala o ka CMS ponoʻī i kuhi ʻia hiki ke pāʻani i kahi ʻāpana nui i kāna hana e like me kā Carlton kuhikuhi ʻana me ka hoʻohana ʻana i ka wp-supercache plugin.

    ʻOi aku ka maikaʻi inā kūkulu ʻia ka hana o ka wp-supercache plugin i ka huaʻōlelo mai ka hoʻomaka - akā pono ia e kākau hou i ka hopena mua. ʻO ka mea hea lightpress.org i hana ai.

    ʻO ka hoʻouka ʻana i nā ʻike kūpaʻa i kahi mea e like me S3 kahi ala maikaʻi e offload a me ka lawe ʻana mai ka kikowaena kikowaena. He ala maʻalahi a maʻalahi hoʻi ia o ke kāomi ʻana i nā hanana ʻo Amazons e hana ai i ka hāpai kaumaha akā i kou hiki ʻana i kahi paepae cretin, e hoʻomaka ʻo Amazon e lilo i kumukūʻai a ʻoi aku ka maʻalahi no ka hana ʻana i ka hale a hele pū me kahi CDN.

    Rogerio - http://www.itjuju.com/

    Ps
    Ke noʻonoʻo nei wau e pili ana i kēlā kūlana no kahi manawa, inā 100 wale nō ka poʻe i hui pū a hāʻawi i kēlā me kēia mahina i ke kumukūʻai o kahi kikowaena lawelawe e uku maʻamau nei no ka hiki iā lākou ke kūkulu / hui pū i nā ʻoihana hoʻokipa e hiki ke lawelawe i nā mea āpau.

  5. 8

    $ 0.12 no nā lā ʻelua mua o ka lawelawe S3. E nānā hou paha ʻoe i ke kumuhana i loko o kekahi mau mahina a hōʻike i kekahi helu helu o ke kalepa ʻana me nā koina? He mea hoihoi ia e ʻike ai i ka haʻihaʻi ʻana o ke kumukūʻai i nā malihini kipa kūʻokoʻa a kūʻē i nā kumukūʻai hoʻolaha a i ʻole nā ​​hoʻokomo ʻē aʻe.

  6. 13
  7. 14

    He lawelawe waiwai nui ʻo Amazon S3. ʻO wau wale nō i ke kaʻina o ka hoʻohui ʻana iā ia i kahi CMS. ʻO ka pilikia wale nō aʻu i ʻike ai mai kahi kuanaʻike hoʻomohala, ʻaʻole kahi kuanaʻike lawelawe Amazon, ʻo ia inā makemake ʻoe i kāu mea hoʻohana e hoʻoili pono i ka faila i S3 ma o POST a loaʻa iā ʻoe kahi palapala multipart i hoʻohui i nā huaʻōlelo i makemake ʻia no kāu kamaʻāina hōkeo ʻikepili, paʻa ʻoe. Pono ʻoe e hoʻokaʻawale iā ia i ʻelua mau ʻano, a i ʻole e hoʻāʻo e hoʻohana ajax e hoʻouka i ka faila ma mua a laila i ka kūleʻa e hoʻouna i ka ʻikepili kūloko.

    Inā loaʻa kahi hopena ʻoi aku ka maikaʻi, e ʻoluʻolu e haʻi iaʻu: o)

    Eia nō naʻe, ʻo ka mālama kālā ʻana no ka mālama ʻana i nā faila kalaka nui nui e hōʻoia i ka hoʻomohala ʻana o kahi ʻōnaehana.

    Grant

    Nā ʻōnaehana mālama papa inoa kāohi

  8. 15

    Hui,

    Kākau maikaʻi. Ua hele wau i loko e like me kāu e wehewehe nei, akā i loko o kaʻu panel admin kahi e hoʻouka ai i nā kiʻi, ʻike ʻole wau i kahi pihi S3. Ua ʻike wau i kaʻu mau kiʻi, ke hoʻouka ʻia a hoʻopau ʻia ma Amazon, ke manaʻo nei kēia ua hiki iaʻu ke kope i kaʻu mau kiʻi i hala a kāpae i nā mea ma ka pūnaewele.

    A pono wau e hoʻololi i kahi mai kaʻu mau kiʻi a i ʻole hana ka plugin i kēia?

  9. 16

    Aloha ʻoe,

    Pono ʻoe e ʻike i kahi ikona ʻikepili e nānā ana i ka ʻaoʻao ʻākau o kāu kiʻiona maʻamau. ʻO ia ka ikona e pukaaniani i ka puka aniani o Amazon. Ua neʻe wau i nā wp-ʻike / hoʻouka i Amazon a maopopo iaʻu he ala like kaʻu ... ʻo ka ʻokoʻa wale nō ka subdomain. Aia lākou ma http://www... a i kēia manawa aia lākou ma images.marketingtechblog.com. Ma hope o kaʻu kope ʻana i nā kiʻi āpau a hiki i Amazon, ua hoʻohana wau iā PHPMyAdmin a hana i kahi hulina a pani no src = "http://martech.zone a hoʻololi iā ia me src =" images.marketingtechblog.com. (https://martech.zone/wordpress/mysql-search-replace/)

    Lana ka manaʻo e kōkua! ʻAʻole humuhumu ia, akā holo pono ia.

    Doug

  10. 17

    E Douglas, mahalo no kēlā, ua hōʻano hou wau i ka DB no laila kuhikuhi nā kiʻi āpau i nā kiʻi., Akā ʻike wau i kekahi o nā manamana nui (ke nānā ʻia ma o ka ʻaoʻao ʻaoʻao) hōʻike i ka iamge mau ma www.

    Eia ka pūnaewele (www.gamefreaks.co.nz) - a, alos me kekahi pilikia hoʻomanaʻo nui no ka ʻaoʻao mua, hoʻomaka wale mākou i ka manawa a mākou i neʻe ai i ka hoʻokipa ʻana, no laila ke nānā nei wau i ka hoʻoiho ʻana i kekahi o nā kaomi hoʻokipa iā S3. 😎

  11. 18

    ʻike ʻoe inā hiki ke hoʻouka wale iā S3 me ka mālama ʻole ʻia o kahi kope ma ka kikowaena kikowaena?

    Nānā

  12. 19

    Aloha ʻoe, hāʻawi ka plugin S3 i kona ala ponoʻī i Amazon, no laila ʻaʻole mālama ʻia kahi faila ma kahi kūloko.

  13. 20
    • 21

      Kūlike ia me ka mana hou loa, akā makemake maoli wau ʻaʻole makemake i ke ʻano o kāna hana - pono ʻoe e hoʻololi a hoʻouka i nā kiʻi āpau i S3 me kahi kaʻina ʻokoʻa. Kūkulu maoli paha mākou i kahi CDN (Network Delivery Network) ʻoi aku ka ikaika o ka hoʻopili ʻana me WP e hoʻopili pū ana ma mua o ke koi ʻana i kahi kaʻina ʻokoʻa.

  14. 22
  15. 23

    ʻIke paha ʻoe inā pili kēia me "External Buckets"? Makemake wau e hoʻonohonoho i kēia no kahi blog o kuʻu hoaaloha a e ʻae iā ia e hoʻohana i kahi bakeke i kaʻu moʻokāki AWS (ua hana mua wau i kahi moʻokāki hoʻohana nona a hāʻawi iā ia e komo i kekahi o kaʻu mau bākeke e hoʻohana ana i nā pono hana IAM Amazon).

  16. 24
  17. 25
    • 26

      E Celia, e hele i ka home AWS http://aws.amazon.com/ a ma lalo o ka "My Account / Console" e waiho iho i lalo, koho i nā "Palekana Palekana." ʻEʻe inā pono ʻoe. Mai laila aku, e kaomi i lalo e kiʻi ai i nā ʻIke a ʻike ʻoe i kāu ID ki ʻeʻe i helu ʻia. E kope i kekahi o kēlā mau mea no ka ID kī no kēia plugin, a laila kaomi ma ka loulou "Hōʻike" e ʻike ai i ke kī ʻoi aku ka ʻike huna. E kope i kēlā a kāpili iā ia i nā hoʻonohonoho plugin pū kekahi. E hoʻonohonoho ʻia ʻoe āpau ma hope o kēlā!

  18. 27
  19. 28

Pehea kou manaʻo?

Ke hoʻohana nei kēia pūnaewele i ka Akismet e ho'ēmi i ka spam. E aʻo pehea e hanaʻia ai kāuʻikeʻikepili.