Trying out new .NET Core Alpine Docker Images

I blogged recently about optimizing .NET and ASP.NET Docker files sizes. .NET Core 2.0 has previously been built on a Debian image but today there is preview image with .NET Core 2.1 nightlies using Alpine. You can read about the announcement here abou…

Docker ContainersI blogged recently about optimizing .NET and ASP.NET Docker files sizes. .NET Core 2.0 has previously been built on a Debian image but today there is preview image with .NET Core 2.1 nightlies using Alpine. You can read about the announcement here about this new Alpine preview image. There's also a good rollup post on .NET and Docker.

They have added two new images:

  • 2.1-runtime-alpine
  • 2.1-runtime-deps-alpine

Alpine support is part of the .NET Core 2.1 release. .NET Core 2.1 images are currently provided at the microsoft/dotnet-nightly repo, including the new Alpine images. .NET Core 2.1 images will be promoted to the microsoft/dotnet repo when released in 2018.

NOTE: The -runtime-deps- image contains the dependancies needed for a .NET Core application, but NOT the .NET Core runtime itself. This is the image you'd use if your app was a self-contained application that included a copy of the .NET Core runtime. This is apps published with -r [runtimeid]. Most folks will use the -runtime- image that included the full .NET Core runtime. To be clear:

- The runtime image contains the .NET Core runtime and is intended to run Framework-Dependent Deployed applications - see sample

- The runtime-deps image contains just the native dependencies needed by .NET Core and is intended to run Self-Contained Deployed applications - see sample

It's best with .NET Core to use multi-stage build files, so you have one container that builds your app and one that contains the results of that build. That way you don't end up shipping an image with a bunch of SDKs and compilers you don't need.

NOTE: Read this to learn more about image versions in Dockerfiles so you can pick the right tag and digest for your needs. Ideally you'll pick a docker file that rolls forward to include the latest servicing patches.

Given this docker file, we build with the SDK image, then publish, and the result is about 219megs.

FROM microsoft/dotnet:2.0-sdk as builder  


RUN mkdir -p /root/src/app/dockertest
WORKDIR /root/src/app/dockertest

COPY dockertest.csproj .
RUN dotnet restore ./dockertest.csproj

COPY . .
RUN dotnet publish -c release -o published

FROM microsoft/dotnet:2.0.0-runtime

WORKDIR /root/
COPY --from=builder /root/src/app/dockertest/published .
ENV ASPNETCORE_URLS=http://+:5000
EXPOSE 5000/tcp
CMD ["dotnet", "./dockertest.dll"]

Then I'll save this as Dockerfile.debian and build like this:

> docker build . -t shanselman/dockertestdeb:0.1 -f dockerfile.debian

With a standard ASP.NET app this image ends up being 219 megs.

Now I'll just change one line, and use the 2.1 alpine runtime

FROM microsoft/dotnet-nightly:2.1-runtime-alpine

And build like this:

> docker build . -t shanselman/dockertestalp:0.1 -f dockerfile.alpine

and compare the two:

> docker images | find /i "dockertest"

shanselman/dockertestalp 0.1 3f2595a6833d 16 minutes ago 82.8MB
shanselman/dockertestdeb 0.1 0d62455c4944 30 minutes ago 219MB

Nice. About 83 megs now rather than 219 megs for a Hello World web app. Now the idea of a microservice is more feasible!

Please do head over to the GitHub issue here https://github.com/dotnet/dotnet-docker-nightly/issues/500 and offer your thoughts and results as you test these Alpine images. Also, are you interested in a "-debian-slim?" It would be halfway to Alpine but not as heavy as just -debian.

Lots of great stuff happening around .NET and Docker. Be sure to also check out Jeff Fritz's post on creating a minimal ASP.NET Core Windows Container to see how you can squish .(full) Framework applications running on Windows containers as well. For example, the Windows Nano Server images are just 93 megs compressed.


Sponsor: Get the latest JetBrains Rider preview for .NET Core 2.0 support, Value Tracking and Call Tracking, MSTest runner, new code inspections and refactorings, and the Parallel Stacks view in debugger.



© 2017 Scott Hanselman. All rights reserved.
     

Black Friday / Cyber Monday 2017 WordPress Deals – Big Savings

Are you looking for the best Black Friday and Cyber Monday deals on your favorite WordPress products. These next few days are the perfect time to buy premium WordPress plugins, themes, hosting, and other web tools to grow your business. To help you find the… Read More »

The post Black Friday / Cyber Monday 2017 WordPress Deals – Big Savings appeared first on WPBeginner.

Are you looking for the best Black Friday and Cyber Monday deals on your favorite WordPress products. These next few days are the perfect time to buy premium WordPress plugins, themes, hosting, and other web tools to grow your business. To help you find the best deals, we have listed the best WordPress Black Friday and Cyber Monday deals for 2017. Some of these are exclusive just for WPBeginner readers.

Black Friday / Cyber Monday 2017 WordPress Deals

Note: These offers are for LIMITED TIME only. We’ve indicated the expiration date next to each offer.

Some deals are not live at the time of publishing this blog post, but will be going live through out this week.

Don’t forget to bookmark this page because we will be updating it throughout the week as we find new deals.

NameTypeDiscount
OptinMonsterPlugin25% off
WPFormsPlugin25% off
MonsterInsightsPlugin25% off
Envira GalleryPlugin25% off
SoliloquyPlugin25% off
HostGatorHosting80% off
BluehostHosting63% off
SiteGroundHosting70% off
WPEngineHosting50% off
IPVanishServices76% off
Beaver BuilderPlugin25% off
Elegant ThemesSuite25% off
iThemesSuite50% off
LearnDashPlugin50% off
CSSIgniterThemes50% off
CSS HeroPlugin60% off
ThirstyAffiliatesPlugin30% off
Easy Digital DownloadsPlugin25% off
Restrict Content ProPlugin25% off
AffiliateWPPlugin25% off
StudioPressThemes50% off
ChurchThemes.comThemes30% off
WPZoomThemes70% off
ThemeIsleSuite25% off
FlywheelHosting25% off
Engine ThemesThemes40% off
MyThemeShopThemes72% off
ImagelySuite40% off
TeslaThemesThemes40% off
ShowThemesThemes40% off
PhotocratiThemes40% off
Swift PerformancePlugin60% off
ThemeStopThemes60% off
Barn2 MediaPlugin50% off
Page Builder SandwichPlugin33% off
ThemeumThemes50% off
WP-CRM SystemPlugin30% off
Conditional CheckoutPlugin30% off
WP ZincPlugin35% off
WP Native ArticlesPlugin30% off
Advanced AdsPlugin30% off
ProfilePressPlugin25% off
Winwar MediaPlugin25% off
StackPressHosting70% off
Acme ThemesThemes30% off
Smart Slider 3Plugin60% off
MaxCDNServices25% off
LiveCha tIncServices50% off

Get 25% OFF OptinMonster

OptinMonster helps you convert abandoning website visitors into subscribers and customers. It’s a powerful conversion optimization toolkit that Pros use to grow their email list and boost sales.

OptinMonster is created by Syed Balkhi, founder of WPBeginner. We use it on our site and have seen as high as 600% increase in our subscriber growth.

Other pro bloggers like Mike Stelzner from Social Media Examiner has added over 250,000 email subscribers using OptinMonster. See all OptinMonster case studies.

OptinMonster helps you design beautiful optin forms that are proven to convert. You can show personalized messages at the right time to your visitors with OptinMonster’s behavior automation features.

If you’re serious about growing your online business, then this is a MUST HAVE tool.

Use the coupon code: BF2017 to get 25% OFF OptinMonster.

Get 25% OFF OptinMonster

Note: This deal is good from Monday Nov 20th — until Nov 30th.

Get 25% OFF WPForms

WPForms

WPForms is the best form builder plugin for WordPress. Unlike other WordPress contact form plugins, WPForms is designed to be the most beginner friendly form plugin in the market.

It comes with an intuitive drag and drop form builder which allows you to build any kind of form you want. It includes ready to use form templates, smart conditional logic, user registration and login form, front-end post submission form, newsletter signup form, payment forms, and much more.

WPForms integrates beautifully with third-party tools like PayPal, Stripe, MailChimp, Aweber, etc. Most importantly, all your forms are mobile friendly out of the box.

Use the coupon code: BF2017 to get 25% OFF all WPForms plans.

Get 25% Off WPForms

Note: This deal is good from Monday Nov 20th — until Nov 30th.

Get 25% OFF MonsterInsights

MonsterInsights

MonsterInsights is the best and most popular Google Analytics plugin for WordPress (currently being used on over 1.9 million websites).

MonsterInsights help you see how visitors find and use your website, so you can keep them coming back. Simply put, get stats that matter.

It allows you to get detailed user engagement reports, which helps you make data-driven decisions to boost sales and conversions. This holiday season, they are offering 25% OFF on all plans.

Use coupon code: BF2017

Get 25% OFF MonsterInsights

Note: This deal is good from Monday Nov 20th — until Nov 30th.

Get 25% OFF Envira Gallery

Envira Gallery

Envira Gallery is the best responsive WordPress gallery plugin in the market. Unlike other gallery plugins, Envira is built for speed and is faster than all other gallery plugins for WordPress.

It is packed with features like Albums, Lightbox popup, drag and drop builder, gallery templates, full screen slideshows, WooCommerce integration, watermarking, and much more.

Use the coupon code: BF2017 to get 25% OFF all Envira Gallery plans.

Get 25% Off Envira Gallery

Note: This deal is good from Monday Nov 20th — until Nov 30th.

Get 25% OFF Soliloquy

Soliloquy

Soliloquy is the best WordPress slider plugin in the market. It is super-easy to use and packed with great features like carousel, fullscreen sliders, featured content, Instagram, ready to use themes, and much more.

Use the coupon code: BF2017 to get 25% OFF on all Soliloquy plans.

Get 25% OFF Soliloquy

Note: This deal is good from Monday Nov 20th — until Nov 30th.

Get 80% OFF HostGator

HostGator

HostGator is one of the most popular WordPress hosting companies, and we use their dedicated servers to host WPBeginner. Our founder, Syed Balkhi, has been a HostGator customer since 2007.

They’re offering WPBeginner users an exclusive 80% off hosting deal and you get the domain for $2.99.

This is a WPBeginner exclusive offer, and it doesn’t get any better than this.

Get the best HostGator deal in the market

You have to use the coupon code: WPBEGINNER80 to claim the deal.

Note: This deal is already live right now and will be valid until November 28th.

Get 63% OFF Bluehost

Bluehost

Bluehost is one of the officially recommended WordPress hosting providers. This Black Friday they will be offering amazing discount deals throughout the week.

You can get web hosting + free domain + free SSL certificate for $2.65 / month on Black Friday till Sunday.

Get the best Bluehost Deal

Note: This deal is starts on November 24th and is valid until November 27th, 2017.

Get 70% OFF SiteGround

SiteGround

SiteGround is one of the leading WordPress hosting providers. They are offering discount deals upto 70% OFF during black friday and cyber monday.

Get 70% OFF SiteGround

We use Siteground to host our popular List25 site (see case study).

Note: This deal is good from November 24 till November 28.

Get 50% OFF WPEngine

WPEngine

WPEngine is the best WordPress managed hosting service provider. They are offering a 50% discount for initial payments on their hosting plans.

No coupon required

Get 50% OFF WPEngine

Get IPVanish Lifetime VPN for $2.87 / Month

ipvanish

IPVanish is one of the best VPN services for WordPress users. This holiday season, they are offering a lifetime VPN plan for just $2.87/month for all new users (billed $69.00 every two years).

Get IPVanish Lifetime VPN

Note: This offer is valid from November 22 until November 29, 2017.

Get 25% OFF Beaver Builder

Beaver Builder

Beaver Builder is the best WordPress page builder plugin in the market. It is 100% drag-and-drop which makes it really easy for beginners to create custom page layouts.

Unlike other plugins, it is actually quite fast and easy to learn. In our opinion, it is by far the best option in the market.

This holiday season, they’re offering a 25% discount.

Get 25% OFF BeaverBuilder

Note: Discounts will be applied automatically from November 24th – 27th.

Get 25% OFF Elegant Themes

Elegant Themes

Elegant Themes is one of the oldest and most reliable WordPress companies around offering premium WordPress themes and plugins to a large community of users. This holiday season they are offering 25% discount to all existing and new customers.

Get 25% OFF Elegant Themes

Note: This offer is valid on 24 November 00:00 PDT and 27 November 00:00 PDT.

Get 50% OFF iThemes + BackupBuddy

iThemes

Our friends at iThemes are offering a whopping 50% discount on their WordPress Toolkit. This kit includes BackupBuddy one of the best WordPress backup plugins in the market.

It also includes 40+ plugins, 200+ themes, 800+ hours of training, 10+ iThemes Sync Pro Sites, and more.

Use coupon code: WPTOOLKIT50

Get 50% OFF iThemes Now

Note: This offer expires on November 30, 2017.

Get 50% OFF LearnDash

LearnDash

LearnDash is the best WordPress LMS plugin in the market. It allows you to create highly interactive online courses with in WordPress. You can make money by accepting payments and selling courses. It also integrates beautifully with MemberPress to create amazing online communities on your learning website.

They are offering 50% OFF on Black Friday and Cyber Monday.

Use coupon code: BLACKFRIDAY Valid only on November 24, between 7am-4pm EST.

Use coupon code: CYBERMONDAY Valid only on November 27, between 7am-4pm EST.

Get 50% OFF CSSIgniter

CSSIgniter

CSSIgniter is one of the most popular WordPress theme shops. They offer well crafted, stunningly gorgeous, and well coded WordPress themes.

The have offered an exclusive 50% discount to WPBeginner users.

Use coupon code: BFWPB2017

Get 50% OFF CSSIgniter

Note: This offer is valid from November 25 to December 2.

Get 60% OFF CSS Hero

CSS Hero

CSS Hero allows you to customize the look of any WordPress theme or plugin without touching code. Using simple point-and-click interface you can change appearance of any part of your website.

Unlike page builder plugins which help you create new layouts, CSS Hero helps you customize existing layouts. For more details, take a look at our CSS Hero review.

This holiday season they are offering 60% discount.

Get 60% OFF CSS Hero

Note: This deal is valid from 24 November until 27 November 2017.

Get 30% OFF ThirstyAffiliates

ThirstyAffiliates

ThirstyAffiliates is a must have affiliate marketing plugin for WordPress users. It allows you to manage and cloak affiliate links in WordPress.

They are offering 30% OFF on all licenses during holiday season.

Use coupon code: BF2017

Get 0% OFF ThirstyAffiliates

Note: This deal is valid from 24th November through to midnight on Monday 27 November (PST – Pacific Time).

Get 25% OFF Easy Digital Downloads

Easy Digital Downloads

Easy Digital Downloads is one of the best WordPress eCommerce plugins. They are offering 25% discount on all extensions.

Use coupon code: BFCM2017

Get 25% off Easy Digital Downloads

Note: This offer is valid from 24 November until 27 November.

Get 25% OFF Restrict Content Pro

Restrict Content Pro

Restrict Content Pro allows you to restrict content to registered users only. They are offering 25% discount on all extensions.

Use coupon code: BFCM2017

Get 25% OFF Restrict Content Pro

Note: This offer is valid from 24 November until 27 November.

Get 25% OFF AffiliateWP

AffiliateWP

AffiliateWP is one of the best affiliate tracking and management plugin for WordPress. They are offering a 25% discount on all extensions.

Use coupon code: BFCM2017

Get 25% OFF AffiliateWP

Note: This offer is valid from 24 November until 27 November.

Get Upto 50% OFF StudioPress

StudioPress

StudioPress is one of the best premium WordPress theme shops and creators of the Genesis theme framework. This holiday season they are offering all new customers 25% OFF, and 50% OFF to all returning customers. This offer is also valid for multiple theme purchases as well as their Pro Pack which normally costs $499.95.

Get Upto 50% OFF StudioPress Themes

Note: This offer is valid from 21 November to 28 November 8:00 p.m. EST.

Get 30% OFF ChurchThemes.com

ChurchThemes

ChurchThemes offers beautifully designed WordPress themes for churches, religious, and spiritual websites. All their themes include a Church Content plugin which helps you easily add sermons, events, locations, people, and more.

This holiday season they are offering 30% off on all their products.

Get 30% off ChurchThemes.com

Note: This deal is valid from November 24 to November 29.

Get 70% OFF WPZOOM

WPZoom

WPZoom is a premium WordPress theme shop offering beautiful themes for all kind of websites. This holiday season, they are offering 60% discount on their All Theme Package and 70% discount on their All Theme Package PRO.

Get 70% OFF WPZoom

Note: This offer is valid from 24 November to 28 November, 2017.

Get 25% OFF ThemeIsle

ThemeIsle

ThemeIsle offers a great collection of premium WordPress themes and plugins. They are offering 25% discount on all new signups for their membership plans.

Get 25% off ThemeIsle

Note: This offer is valid from 24 November to 28 November.

Get 25% OFF Flywheel

Flywheel

Flywheel is a managed WordPress hosting provider. They are offering 3 months free (that’s 25% off) all new annual WordPress hosting plans (starting at just $11.25/month).

Get 25% OFF Flywheel

Note: This offer is valid from 12:01 a.m. on Monday, Nov. 20th to 11:59 p.m. on Tuesday, Nov. 28.

Get 40% OFF Engine Themes

Engine Themes

Engine Themes is a premium WordPress theme shop. They offer WordPress themes for all kind of websites. This holiday season, they are offering 40% off on all their themes.

Use coupon code: ET40

Get 40% OFF Engine Themes

Note: This deal is valid from 24 November until 27 November.

Get 72% OFF MyThemeShop

MyThemeShop

MyThemeShop offers premium WordPress themes for different industries and niches. They are offering upto 72% discount on their themes during Black Friday and Cyber Monday.

Use coupon code: BFCM17

Get 72% OFF MyThemeShop

Note: This offer is valid from 20th November until 3rd December, 2017.

Get 40% off Imagely

Imagely

Imagely is home of the popular WordPress photography plugin NextGen (See our comparison of the best WordPress gallery plugins). They are offering 40% discount on all their plugins and themes.

Use coupon code: BF40

Get 40% OFF Imagely

Note: This offer is valid from 24 November to 27 November.

Get 40% OFF TeslaThemes

TeslaThemes

TeslaThemes offers beautifully designed premium WordPress themes. They are offering 50% discount on all their products.

Use coupon code: BF40

Get 40% Off TeslaThemes

Note: This offer is valid from 24 November to 27 November.

Get 40% OFF ShowThemes

ShowThemes

ShowThemes offers premium WordPress themes for events, conferences, and event professionals. This holiday season, they are offering 40% discount on their themes.

Use coupon code: BF40

Get 40% OFF ShowThemes

Note: This offer is valid from 24 November to 27 November.

Get 40% Off Photocrati

Photocrati

Photocrati is a WordPress theme designed specifically for photographers. They are offering 40% discount during this holiday season.

Use coupon code: BF40

Get 40% OFF Photocrati

Note: This offer is valid from 24 November to 27 November.

Get 60% OFF Swift Performance

Swift Performance

Swift Performance is a premium WordPress performance optimization plugin. It helps you achieve higher page speed scores and a blazing fast website with just few clicks.

They are offering WPBeginner users an exclusive 60% discount on all plans.

Use coupon code: WPBCYBER

Get 25% OFF Swift Performance

Note: This offer is valid from 24 November until 30 November.

Get 60% OFF ThemeStop

ThemeStop

ThemeStop offers beautifully designed WordPress themes for all kind of websites. They are offering 60% discount on their theme club memberships.

Use coupon code: HOLIDAY60

Get 60% OFF ThemeStop

This deal is valid till 28th November.

Get 50% OFF Barn2 Media

Barn2 Media

Barn2 Media offers premium WordPress plugins like WooCommerce Product Table, WooCommerce Password Protected Categories, Posts Table Pro, and more. They are offering 50% discount on all their products.

Use coupon code: BARN2CYBER2017

Get 50% OFF Barn2 Media

Note: This deal is valid from 24th November until 27th November.

Get 33% OFF Page Builder Sandwich

Page Builder Sandwich

Page Builder Sandwich is an premium WordPress page builder plugin. During this holiday season, they are offering 33% discount on purchase of any license.

Use coupon code: CYBERMONDAY33

Get 33% OFF Page Builder Sandwich

Note: This deal is valid from 20 November to 27 November.

Get 50% OFF Themeum

Themeum

Themeum is a premium WordPress plugins and theme shop. They are offering 50% discount on all their products during holiday season.

Use this coupon code: BLACKFRIDAY50

Get 50% OFF Themeum

Note: This deal is valid from 23 November to 30 November.

Get 30% OFF WP-CRM System

WP-CRM System

WP-CRM System is a premium plugin that allows you to add a CRM system to your WordPress site. This holiday season, they are offering 30% discount on any plugin package.

Use coupon code: BFCM2017

Get 30% OFF WP-CRM System

Note: This deal is valid from 24 November to 27 November.

Get 30% OFF Conditional Checkout Fields

Conditional Checkout Fields

Conditional Checkout Fields allows you to collect data from customers during the checkout. They are offering 30% discount on all plugins during the holiday season.

Use coupon code: BFCM2017

Get 30% OFF Conditional Checkout Fields

Note: This deal is valid from 24 November to 27 November.

Get 35% Off WP Zinc

WP Zinc

WP Zinc offers premium WordPress plugins like WordPress to Buffer Pro, Comment Rating Field Pro, and Page Generator Pro. This holiday season, they are offering 35% OFF on all their plugins.

Use coupon code: BF2017

Get 35% OFF WP Zinc

Note: This offer is valid from 24 November to 27 November.

Get 30% OFF WP Native Articles

WP Native Articles

WP Native Articles is a WordPress plugin to add Facebook Instant Article support to your website. They are offering 30% OFF during the holiday season.

Use coupon code: BLACK30

Get 30% OFF WP Native Articles

Note: This offer is valid from 24 November to 28 November.

Get 30% OFF Advanced Ads

Advanced Ads

Advanced Ads is a WordPress ad management plugin. It allows you to easily insert ads into your WordPress website. They are offering 30% discount during holiday season.

Use coupon code: BFCB2017

Get 30% OFF Advanced Ads

Note: This offer is valid from November 24 to November 27.

Get 25% Off ProfilePress

ProfilePress

ProfilePress allows you to create user profile forms. They are offering 25% discount during this Black Friday and Cyber Monday.

Use coupon code: BFCM2017

Get 25% Off ProfilePress

Note: This offer is valid from November 24th to November 27th 2017.

Get 25% OFF Winwar Media Plugins

Winwar Media

Winwar Media offers premium WordPress plugins like WP Taxi Me Premium, which allows users to order Uber and Lyft taxis straight from your site. Their Inline Tweet Sharer Premium, allows you to add Tweetable quotes to your site.

During this holiday season, they are offering 25% discount on all purchases.

Use coupon code: BF2017

Get 25% OFF Winwar Media Plugins

Note: This offer is valid from 21 November to 29 November.

Get 70% OFF StackPress

StackPress

StackPress offers WordPress hosting for blogs and business websites. They are offering 70% discount on first six months.

Use coupon code: SAVE70

Get 70% OFF StackPress

Note: This offer is valid from 24 November to 28 November.

Get 30% OFF Acme Themes

Acme Themes

Acme Themes is a commercial WordPress theme shop offering themes for all kind of websites. They are offering 30% discount during Black Friday and Cyber Monday.

Use coupon code: BLACKFRIDAY2017

Get 30% OFF Acme Themes

Note: This offer is valid from 18th November till 3rd December 2017.

Get 60% OFF Smart Slider 3

Smart Slider 3

Smart Slider 3 is a WordPress slider plugin allowing you to create beautiful sliders easily. They are offering 60% discount on all licensing plans.

Use coupon code: BF2017

Get 60% OFF Smart Slider 3

Note: This offer is valid from November 23rd to 28th.

Get 40% OFF Quema Labs

Quema Labs

Quema Labs is a premium WordPress theme shop. They offer WordPress themes for business, portfolio, and personal websites. This holiday season, they are offering 40% discount on all themes.

Use this coupon code: BLACKFRIDAY40

Get 40% OFF Quema Labs

Note: This deal is valid from 24th November to 27th November.

Get 25% OFF MaxCDN

MaxCDN

MaxCDN is the industry leader in content delivery network. We use MaxCDN to improve performance of all our websites including WPBeginner (See why you need a CDN Infographic).

No coupon required, just follow the link.

Get 25% OFF MaxCDN

LiveChat Inc

Signup for LiveChat

LiveChat Inc is the industry leader in the live chat support software. It’s very easy to use and setup on your website. We use it on our sister websites to offer Live Chat support to our users.

For this black friday, they are offering WPBeginner users an exclusive 50% off first payment and a 30-day trial.

No coupon is required, just follow the link below.

Get 50% off LiveChat Inc

******* END Of DEALS *******

That’s all for now. We will be adding more deals and updating this page throughout the week.

Aside from these, we also have tons of other WordPress deals and discounts for WPBeginner readers.

Hopefully, you can take advantage of some of these limited time deals. Have a happy thanksgiving.

P.S. If you’re a WordPress company offering discount or know of one that is having a deal, then please let us know, so we can update this article.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post Black Friday / Cyber Monday 2017 WordPress Deals – Big Savings appeared first on WPBeginner.

How to Import / Export WordPress Theme Customizer Settings

Do you want to import or export theme customizer settings in WordPress? Exporting and importing theme customizer settings allow you to use the same configuration on another WordPress site. In this article, we will show you how to easily import / export WordPress theme customizer… Read More »

The post How to Import / Export WordPress Theme Customizer Settings appeared first on WPBeginner.

Do you want to import or export theme customizer settings in WordPress? Exporting and importing theme customizer settings allow you to use the same configuration on another WordPress site. In this article, we will show you how to easily import / export WordPress theme customizer settings.

Import / export theme customizer settings in WordPress

Why Import / Export WordPress Theme Customizer Settings?

Many WordPress themes allow you to set up your website using theme customizer. It allows you to change colors, header images, background images, choose layout settings, and more.

Some paid and free themes have more settings available in customizer, while others have just a few basic options.

If you were working on customizing the theme on a local server or staging site, then wouldn’t it be nice if you could just move those settings to the live site?

This will allow you to move theme customizer settings from one website to another without having to move content and database.

That being said, let’s take a look at how to easily import / export theme customizer settings in WordPress.

How to Import / Export Theme Customizer Settings in WordPress

First thing you need to do is install and activate the Customize Export/Import plugin on both sites where you want to export/import. For more details, see our step by step guide on how to install a WordPress plugin.

First let’s export the theme customizer settings.

You need to go to Themes » Customize page on the website you want to export from.

Export/Import option in Customizer

Next, you need to click on the ‘Export/Import’ panel to view its settings and then click on the ‘Export’ button.

Export customizer settings

The plugin will now export your customizer settings and send them to your browser in a .dat file.

It can export all your theme options that are defined as theme mods or stored as options in WordPress database. This means you can export things like color settings, layout directions, header media, etc.

However, it will not export your navigation menus, site title and description, widgets, and more.

To import customizer settings, head over to the WordPress site where you want to import these settings.

You need to go to Appearance » Customize page and click on the Export/Import panel.

After that you need to click on the ‘Choose file’ button to select the file you exported earlier. You also need to check the box next to ‘Download and import image files?’ option to import header and other image files.

Import theme settings
Next, click on the ‘Import’ button to start uploading.

The plugin will now import the customizer settings from your export file.

Once it is finished, you can review your changes in the customizer and then click on the ‘Save & Publish’ button to make those changes live.

The plugin only exports theme settings saved using theme customizer and does not export site data like menus, widgets, images, and more. You will have to manually setup those changes.

We hope this article help you find an easier way to import/export theme customizer settings in WordPress. You may also want to see our checklist of things you must do when changing WordPress themes.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Import / Export WordPress Theme Customizer Settings appeared first on WPBeginner.

Docker and Linux Containers on Windows, with or without Hyper-V Virtual Machines

Containers are lovely, in case you haven’t heard. They are a nice and clean way to get a reliable and guaranteed deployment, no matter the host system. If I want to run my my ASP.NET Core application, I can just type “docker run -p 5000:80 shanselman/…

Containers are lovely, in case you haven't heard. They are a nice and clean way to get a reliable and guaranteed deployment, no matter the host system.

If I want to run my my ASP.NET Core application, I can just type "docker run -p 5000:80 shanselman/demos" at the command line, and it'll start up! I don't have any concerns that it won't run. It'll run, and run well.

Some containers naysayers say , sure, we could do the same thing with Virtual Machines, but even today, a VHD (virtual hard drive) is rather an unruly thing and includes a ton of overhead that a container doesn't have. Containers are happening and you should be looking hard at them for your deployments.

docker run shanselman/demos

Historically on Windows, however, Linux Containers run inside a Hyper-V virtual machine. This can be a good thing or a bad thing, depending on what your goals are. Running Containers inside a VM gives you significant isolation with some overhead. This is nice for Servers but less so for my laptop. Docker for Windows hides the VM for the most part, but it's there. Your Container runs inside a Linux VM that runs within Hyper-V on Windows proper.

HyperV on Windows

With the latest version of Windows 10 (or 10 Server) and the beta of Docker for Windows, there's native Linux Container support on Windows. That means there's no Virtual Machine or Hyper-V involved (unless you want), so Linux Containers run on Windows itself using Windows 10's built in container support.

For now you have to switch "modes" between Hyper V and native Containers, and you can't (yet) run Linux and Windows Containers side by side. The word on the street is that this is just a point in time thing, and that Docker will at some point support running Linux and Windows Containers in parallel. That's pretty sweet because it opens up all kinds of cool hybrid scenarios. I could run a Windows Server container with an .NET Framework ASP.NET app that talks to a Linux Container running Redis or Postgres. I could then put them all up into Kubernetes in Azure, for example.

Once I've turned Linux Containers on Windows on within Docker, everything just works and has one less moving part.

Linux Containers on Docker

I can easily and quickly run busybox or real Ubuntu (although Windows 10 already supports Ubuntu natively with WSL):

docker run -ti busybox sh

More useful even is to run the Azure Command Line with no install! Just "docker run -it microsoft/azure-cli" and it's running in a Linux Container.

Azure CLI in a Container

I can even run nyancat! (Thanks Thomas!)

docker run -it supertest2014/nyan

nyancat!

Speculating - I look forward to the day I can run "minikube start --vm-driver="windows" (or something) and easily set up a Kubernetes development system locally using Windows native Linux Container support rather than using Hyper-V Virtual Machines, if I choose to.


Sponsor: Why miss out on version controlling your database? It’s easier than you think because SQL Source Control connects your database to the same version control tools you use for applications. Find out how.


© 2017 Scott Hanselman. All rights reserved.
     

21 Best WordPress Themes for Nonprofits

Are you looking for the best WordPress themes for nonprofits? Charity and non-profit websites require appealing presentation with tools to manage their donation goals. In this article, we will show you some of the best WordPress themes for nonprofits that will help you get maximum… Read More »

The post 21 Best WordPress Themes for Nonprofits appeared first on WPBeginner.

Are you looking for the best WordPress themes for nonprofits? Charity and non-profit websites require appealing presentation with tools to manage their donation goals. In this article, we will show you some of the best WordPress themes for nonprofits that will help you get maximum donations and achieve those goals.

Best WordPress themes for nonprofit organizations

Making a Website for a Nonprofit Organization

WordPress is the most popular website builder among nonprofits around the world. It is free and open source which gives you the freedom and flexibility you need for a solid online presence.

Just to be clear, there are two versions of WordPress. WordPress.com which is a hosted solution, and WordPress.org also known as self-hosted WordPress. See our comparison of WordPress.com vs WordPress.org for more details.

We recommend using self hosted WordPress.org. It gives you access to all the features of WordPress right out of the box (without any restrictions).

You’ll need a domain name and WordPress hosting account to start your self hosted WordPress website.

We recommend using Bluehost. They are one of the largest hosting companies in the world and an official WordPress recommended hosting provider.

They have agreed to offer WPBeginner users discount on hosting plus free domain and SSL Certificate. You’ll need SSL to collect donations in WordPress using third-party services like Stripe.

→ Click here to claim this exclusive Bluehost Offer ←

Once you have purchased hosting, you can move on to installing WordPress. See our guide on how to make a website for step by step instructions.

That being said, let’s take a look at the best WordPress themes for nonprofits and charities that you can use on your website.

1. Philanthropy

Philanthropy

Philanthropy is a WordPress theme designed specifically for nonprofits and charitable organizations. It features an impressive design with integrated donations and fundraising system.

It includes three slider styles to create a stunning first impression. It places call to actions on strategic locations to maximize user engagement. Other features include an integrated event management system, calendar, Google Maps, unlimited customization options, and a powerful drag and drop page builder.

2. Outreach Pro

Outreach Pro

Outreach Pro is beautifully designed WordPress theme for nonprofits, charities, and religious organizations. It is built on top of Genesis framework, which ensures rock solid WordPress speed and performance.

It includes page templates for archives, blog section, and a landing page template. Other features include customizable headers, theme options panel, and multiple widget ready areas to just drag and drop items to your website.

3. Creed

Creed

Creed is a stunningly beautiful WordPress theme for religious, nonprofits, and charities. It is part of a larger theme bundle and includes 23 ready-made websites, integrated page builder, and 1-click demo installer.

It includes donations, event management, photo galleries, unlimited colors, and multiple layout choices. It is super easy to use with a custom theme options panel to walk you through setup process.

4. Charity Foundation

Charity Foundation

Charity Foundation is a WordPress fundraising theme for nonprofits and charities. It comes with built-in system to accept one-time or recurring donations and WooCommerce support to add online store for your charity.

It includes 9 custom post types, 15 custom widgets, multiple layout combinations, and a ready-to-use child theme. It is easy to use and has a custom theme settings page.

5. Hope

Hope

Hope is a super-flexible WordPress theme for NGOs, churches, and charitable foundations. It includes dozens of readymade designs that can be installed with 1-click. All templates can be easily customized with a visual page builder.

It comes with donations, event management, and contact form integrations. It is super easy to setup and optimized for SEO and performance.

6. Social Welfare

Social Welfare

Social Welfare is a beautiful WordPress theme for fundraising, NGOs, and charities. It includes a modern homepage layout with beautiful CSS animations and parallax background effects.

It ships with a premium slider plugin and a visual page builder. It is easy to setup with 1-click demo installer and a simple theme settings panel.

7. Nayma

Nayma

Nayma is a thoughtfully designed multipurpose WordPress theme with several ready-made websites included into one package. It includes 1-click installer to setup your website complete with demo content.

It uses a modular approach to design and comes with several modules that you can just drag and drop to create your own page layouts. It is WooCommerce ready and can also be used to create multilingual websites.

8. Zeko

Zeko

Zeko is a wonderfully designed WordPress theme for charities and nonprofits. It features a clean and professional design with flexible options. All theme options can be easily setup using theme customizer with a live preview of your website.

Notable features include 5 page templates, blog with multi-column grid and flexible sidebars, unlimited colors, WooCommerce, BuddyPress, and bbPress support.

9. Grassroots

Grassroots

Grassroots is another excellent WordPress themes for nonprofits and fundraising websites. It features fullscreen video backgrounds on the homepage allowing you to create highly engaging landing pages.

For fundraising and donations, the theme supports WooCommerce, contact form, and donation plugins. Other notable features include featured content, staff and sponsors sections, custom logo upload, and multiple colors.

10. Hope

Hope

Hope is another great WordPress theme for nonprofits, fundraisers, and charity websites. It features a modern homepage with a call to action in the header followed by social profiles, navigation menus, and a full width slider.

It includes events and organizers post types, contact form page, shortcodes, and more. You can easily setup and modify theme settings using the live theme customizer.

11. Forward

Forward is a simple and elegant WordPress theme designed specifically for nonprofits. It allows you to easily add your own logo, colors, fonts, and more. It includes all the options you’ll need to build an engaging website.

Other notable features include WooCommerce support, email signup form, staff profiles, sponsors, and live theme customizer support. It easy and quick to setup even for absolute beginners.

12. Maisha

 Maisha

Maisha is a clean and modern WordPress nonprofit theme for NGOs, welfare, and charities. It features a modern homepage with multiple slider styles, headers, and layout settings. It also includes 15 page templates, blog section, and powerful options with live theme customizer.

It supports WooCommerce, WPML, and it is fully translation-ready. It ships with Soliloquy which is the best WordPress slider.

13. Foundation

Foundation

Foundation is another excellent WordPress nonprofit theme. Designed to raise funds and engage audiences, it features a prominent welcome message followed by two call to actions both located above the fold on the homepage.

It includes social media integration, custom logo upload, sponsors section, and easy templates to integrate with your donations form. It offers a simple and quick setup with easy customization options.

14. Maranatha

Maranatha

Maranatha is a gorgeous WordPress theme for religious, spirtual, and nonprofit organizations. It comes with built-in sermons management area where you can upload audio, video, PDF, and text files. You can also organize your library in series by topics and books.

Its modern homepage displays a full screen image or video header followed by parallax effect as users scroll down the homepage. It also comes with sections for different locations, events calendar, and news or blog page.

15. Benevolent

Benevolent

If you are looking for a free WordPress theme for nonprofits, then take a look at Benevolent. This versatile theme features a modern homepage with beautiful slider, custom menu, and call to action button.

It has four footer area and a right sidebar and includes four custom widgets for the recent posts, popular posts, social media and the featured post. It is also translation ready and optimized for faster page loads.

16. Ultra

Ultra

Ultra is an all-purpose WordPress mega theme suitable for all kind of websites including nonprofits. It ships with 9 pre-made websites, 1-click demo content installer, and visual page editor to help you create engaging websites in minutes.

It includes animated counters, progress bars, contact form, Google Maps, pricing tables, and more. It is eCommerce ready and beginner friendly.

17. Exodus

Exodus

Exodus is a beautiful WordPress theme for religious and spiritual organizations. It features a professional homepage with engaging slider and call to action. It also includes a sermon management section with full multimedia support.

It also has sections to add ministries, staff and volunteer profiles, events, locations, etc. It is designed to be easily used even by non-technical users with simple and flexible customization settings.

18. Charity Review

Charity Review

Charity Review is another excellent free WordPress nonprofit theme for NGOs, church websites, and charitable organizations. With a professional clean design and flexible options, it offers an engaging user experience out of the box.

Notable features include custom menu, social media integration, call to action block, banner slider, testimonial sections, and more. It has multiple page layouts for different sections. All theme options are neatly organized under live theme customizer, which makes it quite simple to use.

19. Pena

Pena

Pena is a flexible WordPress theme for nonprofit organizations. It is designed to help you raise funds with an visually appealing presentation. It offers multiple slider layouts, header styles, and homepage layout settings to help you create a unique experience for your visitors.

It has 12 page templates, WooCommerce support, donation forms support, email subscriptions, and more. It offers a neat setup process with extensive settings to fine tune each aspect of your website.

20. Saved

Saves offers a very modern looking WordPress theme for religious and nonprofit organizations. It includes a drag and drop homepage layout, video background, slider, and contact details widget with Google maps.

Church websites can use the Theme’s companion church content plugin, which adds sermons and multimedia library support to your website. It also includes sticky navigation menu, custom colors, custom widgets, typography, and custom logo support.

21. The Core

The Core

The Core is a mega pack of multiple ready-made WordPress themes for all kind of individuals and organizations. Any of these designs can be installed with 1-click including demo content. To make it even more easier, each of these design can be easily edited with the built-in visual page editor.

It offers unlimited design possibilities with countless combinations of header styles, layout types, beautiful animations and scrolling effects. It also comes with a powerful custom theme options page with simple on/off buttons to add or remove features you want to use. It is super easy and helps beginners create professional websites with minimal effort.

We hope this article helped you find the best WordPress theme for nonprofits. You may also want to see our step by step WordPress SEO guide for beginners and a list of must have WordPress plugins.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post 21 Best WordPress Themes for Nonprofits appeared first on WPBeginner.

What’s New in WordPress 4.9

WordPress 4.9 was released just few hours ago. It is the second and last major WordPress release of 2017 with some exciting new features and enhancements. In this article, we will show you what’s new in WordPress 4.9 and which features you should try after… Read More »

The post What’s New in WordPress 4.9 appeared first on WPBeginner.

WordPress 4.9 was released just few hours ago. It is the second and last major WordPress release of 2017 with some exciting new features and enhancements. In this article, we will show you what’s new in WordPress 4.9 and which features you should try after updating your websites.

What's new in WordPress 4.9

4.9 is a major WordPress release, and unless you are on a managed WordPress hosting service, you will have to manually initiate the update.

Important: Don’t forget to create a complete WordPress backup before starting the update.

New Theme Browsing Experience in The Customizer

WordPress 4.9 brings several improvements to the customizer. These changes offer a better user experience and a new set of tools for developers.

Previewing and changing themes directly from customizer is now more user friendly. You can view all your installed themes in the preview panel and click on the live preview button to load them in customizer.

Browsing themes in customizer

You can also browse and search WordPress.org themes and install them directly from customizer.

Install and preview WordPress.org themes directly from customizer

Save and Schedule Changes in The Customizer

WordPress 4.9 brings changesets to theme customizer. It is like post revisions but for your theme changes. You can store changes without applying them.

Save theme draft

This new feature also allows you to easily share a preview of those changes with anyone. Simply copy the preview URL and send it to any user. They will be able to see the new changes without login.

Share customizer changes preview

WordPress 4.9 also allows you to easily schedule theme changes to be automatically published later.

Schedule theme changes in customizer

Theme developers will now be able to use these new changes in the customizer JS API. These changes will allow them to add better controls, beautiful outer panels, and display notifications on screen.

Better notifications in customizer

New Gallery Widget in WordPress 4.9

WordPress 4.8 introduced new media widgets which included rich text, audio, image, and video. WordPress 4.9 builds up on that with the introduction of the new gallery widget.

This new widgets allows you to create a native WordPress gallery and add it to your WordPress sidebar or any widget ready areas.

New gallery widget in WordPress 4.9

Just like the native WordPress galleries, this widget is also limited in terms of functionality. If you want a more powerful gallery with albums, then you need to look at a third-party plugin like Envira Gallery.

Add Media Button in Text Widget

The text widget in WordPress 4.8 came with plain text and HTML tabs. However, if you wanted to add an image in sidebar text widget, then you still had to write the HTML code.

WordPress 4.9 has fixed this by adding the ‘Add Media’ button in the text widget. Now you can easily select or upload an image directly inside the text widget.

Add Media button in text widget

OEmbed Support Outside Post Content

Previously automatic embeds didn’t work in areas other than post content. With WordPress 4.9, oEmbeds will now work in text widgets and other areas as well.

oEmbed in sidebar widgets

Shortcode in Sidebar Text Widgets

WordPress didn’t allow shortcode execution in text widgets. Users had to explicitly enable shortcodes in text widgets. WordPress 4.9 will finally change that and users will be able to add shortcodes in text widgets out of the box.

Shortcodes in sidebar widgets

New Code Editing Experience in WordPress 4.9

WordPress allows you to add HTML/CSS code at various places like theme editor, custom CSS panel, or in custom HTML widget.

Previously, these areas were plain text boxes and didn’t look or act like a proper code editor.

WordPress 4.9 has changed that by adding syntax highlighting, code suggestions, and auto-completion into those areas.

Code editing in WordPress 4.9

If you have ever faced syntax error when editing your theme, then this enhancement will automatically fix many common mistakes that cause such errors.

Error highlighting

If you don’t want to use the syntax highlighting feature, then you can still easily disable it. Simply go to your profile page and uncheck the syntax highlighting option.

Disable syntax highlighting

One of the big usability issues beginners faced was directly making changes from WordPress built-in editor without fully understanding the consequences. A slightest mistake would lead to a syntax error and making their websites inaccessible.

WordPress 4.9 now shows a warning to users when they access the editor.

Theme editor warning

It will also show users helpful tips and point them to custom CSS panel in the customizer.

However, many users access the editor not to make changes but to quickly look up code. Particularly when they are working on child themes. To help those users, the editor will now recursively show files and folder in the sidebar for easier browsing of all files in a theme folder.

Files and directories in theme editor

Under The Hood Changes

WordPress 4.9 also brings several great changes for developers as well. Here are some of those under the hood improvements.

Better mapping for theme widgets and navigation menus after switching themes. #39693, #39692

Removal of SWFUpload library from the core. #41752

Require a confirmation link in an email to be clicked by admin when a user attempts to change their email address. #16470

We hope this article offered you a good insight into what’s new in WordPress 4.9. We are particularly excited about the customizer changes. What are you excited about?

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post What’s New in WordPress 4.9 appeared first on WPBeginner.

Announcing Visual Studio and Kubernetes – Visual Studio Connected Environment

I’ve been having all kinds of fun lately with Kubernetes, exploring building my own Kubernetes Cluster on the metal, as well as using a managed Kubernetes cluster in Azure with AKS. Today at the Connect() conference in NYC I was happy to announce Visua…

I've been having all kinds of fun lately with Kubernetes, exploring building my own Kubernetes Cluster on the metal, as well as using a managed Kubernetes cluster in Azure with AKS.

Today at the Connect() conference in NYC I was happy to announce Visual Studio Connected Environment. How would one take the best of Visual Studio and the best of managed Kubernetes and create something useful for development teams?

Ecosystem momentum behind containers is amazing right now with support for containers across clouds, operating systems, and development platforms. Additionally, while microservices as an architectural pattern has been around for years, more and more developers are discovering the advantages every day.

You can check out videos of the Connect() conference at https://www.microsoft.com/connectevent, but you should check out my practice video where I show a live demo of Kubernetes in Visual Studio:

The buzzword "cloud native" is thrown around a lot. It's a meaningful term, though, as it means "architecture with the cloud in mind." Applications that are cloud-native should consider these challenges:

  • Connecting to and leveraging cloud services
    • Use the right cloud services for your app, don't roll your own DB, Auth, Discovery, etc.
  • Dealing with complexity and staying cognizant of changes
    • Stubbing out copies of services can increase complexity and hide issues when your chain of invocations grows. K.I.S.S.
  • Setting up and managing infrastructure and dealing with changing pre-requisites
    • Even though you may have moved to containers for production, is your dev environment as representative of prod as possible?
  • Establishing consistent, common environments
    • Setting up private environments can be challenging, and it gets messier when you need to manage your local env, your team dev, staging, and ultimately prod.
  • Adopting best practices such as service discovery and secrets management
    • Keep secrets out of code, this is a solved problem. Service discovery and lookup should be straightforward and reliable in all environments.

A lot of this reminds us to use established and mature best practices, and avoid re-inventing the wheel when one already exists.

The announcements at Connect() are pretty cool because they're extending both VS and the Azure cloud to work like devs work AND like devops works. They're extending the developers’ IDE/editor experience into the cloud with services built on top of the container orchestration capabilities of Kubernetes on Azure. Visual Studio, VS Code and Visual Studio for Mac AND and through a CLI (command line interface) - they'll initially support .NET Core, node.js and Java on Linux. As Azure adds more support for Windows containers in Kubernetes, they'll enable .NET Full Framework applications. Given the state of Windows containers support in the platform, the initial focus is on green field development scenarios but lift-shift and modernize will come later.

It took me a moment to get my head around it (be sure to watch the video!) but it's pretty amazing. Your team has a shared development environments with your containers living in, and managed by Kubernetes. However, you also have your local development machine which then can reserve its own spaces for those services and containers that you're working on. You won't break the team with the work you're doing, but you'll be able to see how your services work and interact in an environment that is close to how it will look in production.

PLUS, you can F5 debug from Visual Studio or Visual Studio Code and debug, live in the cloud, in Kubernetes, as fast as you could locally.

Shared Development Environment

This positions Kubernetes as the underlayment for your containers, with the backplane managed by Azure/AKS, and the development experience behaving the way it always has. You use Visual Studio, or Visual Studio code, or the command line, and you use the languages and platforms that you prefer. In the demo I switch between .NET Core/C# and Node, VS and VSCode, no problem.

I, for one, look forward to our containerized future, and I hope you check it out as well!

You can sign up for the preview at http://aka.ms/signup-vsce


Sponsor: Why miss out on version controlling your database? It’s easier than you think because SQL Source Control connects your database to the same version control tools you use for applications. Find out how.



© 2017 Scott Hanselman. All rights reserved.
     

How to Fix Secure Connection Error in WordPress

Are you seeing ‘Unable to establish secure connection error’ in WordPress? It is a common WordPress error and usually occurs when you are trying to install or update a WordPress plugin or theme from official WordPress.org directory. In this article, we will show you why… Read More »

The post How to Fix Secure Connection Error in WordPress appeared first on WPBeginner.

Are you seeing ‘Unable to establish secure connection error’ in WordPress? It is a common WordPress error and usually occurs when you are trying to install or update a WordPress plugin or theme from official WordPress.org directory. In this article, we will show you why this error occurs and how to easily fix secure connection error in WordPress.

Fixing secure connection error in WordPress

What Causes Unable to Establish Secure Connection Error in WordPress?

WordPress comes with a built-in system to manage updates. This system regularly checks for updates and show notifications for you to install plugin / theme updates.

However, it needs to connect to the WordPress.org website in order to check for updates or install them. Due to some misconfiguration on your WordPress hosting server, your website may fail to connect with WordPress.org website.

This will result in a secure connection error, and you will see an error message like this:

An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /home/username/public_html/wp-admin/includes/update.php on line 122

Secure connection error in WordPress

That being said, let’s see how to easily fix secure connection error in WordPress.

Fixing Secure Connection Error in WordPress

There are multiple ways to fix the unexpected secure connection error in WordPress. You can try one of the following solutions based on your situation.

Hosting and Server Related Issues

If your shared hosting server is under DDoS attack, then it is likely that the connection to WordPress.org will timeout causing the secure connection error.

In that case, you can wait for a few minutes and try again. If the error persists, then you need to reach out to your web hosting company’s support team.

Cloud or VPS Server Connectivity Issue

If you are on a cloud or VPS hosting, then it is possible that your server is unable to connect to WordPress.org due to some DNS issues.

In that case, you can point your server directly to WordPress.org servers. You will need to connect to your server using SSH.

SSH is short for secure shell which is an encrypted protocol that allows you to connect to your server using command line tools.

Windows users can use a tool called PuTTy whereas Mac / Linux users can use the terminal app.

You will need login credentials for the account with shell access to your hosting account. You can get this information from your hosting account’s cPanel dashboard or ask your web hosting server provider.

In the terminal, you can connect to your server like this:

ssh [email protected]

Don’t forget to replace username with your own username and example.com with your own domain name.

Once connected, you need to run the following command:

sudo nano /etc/hosts

This will open a file, and you will need to add the following code at the bottom of the file:

66.155.40.202 api.wordpress.org

You can now save your changes and exit the the editor. Visit your website to see if this resolved the error.

Fixing WordPress Secure Connection Error on Localhost

If you are running WordPress on your own computer (localhost), then you may not have cURL extension enabled for PHP. This extension is required to access WordPress.org for updates.

You will need to edit the php.ini file on your computer. This file is usually located in the PHP folder of your Mamp, Xampp, or WAMP folder.

If you are on a Windows computer, then look for the following line:

;extension=php_curl.dll

Mac and Linux users would have to look for this line:

;extension=curl.so

Now you need to remove the semicolon before the text to enable the extension. Don’t forget to save your php.ini file.

Lastly, don’t forget to restart the Apache server for changes to take affect.

Check Open Ports in Firewall

If cURL extension is properly installed on your local server, then the next step is to check your internet connection firewall.

Your computer’s firewall may be blocking outgoing connections from local server to WordPress.org. If you are on Windows, then press the start button and search for Windows Firewall. Mac users can find firewall settings in System Preferences » Security & Privacy

You need to add Apache to your firewall’s allowed programs and allow both incoming and outgoing connections.

Firewall Apache

You will need to restart Apache for changes to take effect.

We hope this article helped you solve the WordPress secure connection error. You may also want to see our ultimate step by step WordPress security guide for beginners.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Fix Secure Connection Error in WordPress appeared first on WPBeginner.

How to Fix Secure Connection Error in WordPress

Are you seeing ‘Unable to establish secure connection error’ in WordPress? It is a common WordPress error and usually occurs when you are trying to install or update a WordPress plugin or theme from official WordPress.org directory. In this article, we will show you why… Read More »

The post How to Fix Secure Connection Error in WordPress appeared first on WPBeginner.

Are you seeing ‘Unable to establish secure connection error’ in WordPress? It is a common WordPress error and usually occurs when you are trying to install or update a WordPress plugin or theme from official WordPress.org directory. In this article, we will show you why this error occurs and how to easily fix secure connection error in WordPress.

Fixing secure connection error in WordPress

What Causes Unable to Establish Secure Connection Error in WordPress?

WordPress comes with a built-in system to manage updates. This system regularly checks for updates and show notifications for you to install plugin / theme updates.

However, it needs to connect to the WordPress.org website in order to check for updates or install them. Due to some misconfiguration on your WordPress hosting server, your website may fail to connect with WordPress.org website.

This will result in a secure connection error, and you will see an error message like this:

An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /home/username/public_html/wp-admin/includes/update.php on line 122

Secure connection error in WordPress

That being said, let’s see how to easily fix secure connection error in WordPress.

Fixing Secure Connection Error in WordPress

There are multiple ways to fix the unexpected secure connection error in WordPress. You can try one of the following solutions based on your situation.

Hosting and Server Related Issues

If your shared hosting server is under DDoS attack, then it is likely that the connection to WordPress.org will timeout causing the secure connection error.

In that case, you can wait for a few minutes and try again. If the error persists, then you need to reach out to your web hosting company’s support team.

Cloud or VPS Server Connectivity Issue

If you are on a cloud or VPS hosting, then it is possible that your server is unable to connect to WordPress.org due to some DNS issues.

In that case, you can point your server directly to WordPress.org servers. You will need to connect to your server using SSH.

SSH is short for secure shell which is an encrypted protocol that allows you to connect to your server using command line tools.

Windows users can use a tool called PuTTy whereas Mac / Linux users can use the terminal app.

You will need login credentials for the account with shell access to your hosting account. You can get this information from your hosting account’s cPanel dashboard or ask your web hosting server provider.

In the terminal, you can connect to your server like this:

ssh [email protected]

Don’t forget to replace username with your own username and example.com with your own domain name.

Once connected, you need to run the following command:

sudo nano /etc/hosts

This will open a file, and you will need to add the following code at the bottom of the file:

66.155.40.202 api.wordpress.org

You can now save your changes and exit the the editor. Visit your website to see if this resolved the error.

Fixing WordPress Secure Connection Error on Localhost

If you are running WordPress on your own computer (localhost), then you may not have cURL extension enabled for PHP. This extension is required to access WordPress.org for updates.

You will need to edit the php.ini file on your computer. This file is usually located in the PHP folder of your Mamp, Xampp, or WAMP folder.

If you are on a Windows computer, then look for the following line:

;extension=php_curl.dll

Mac and Linux users would have to look for this line:

;extension=curl.so

Now you need to remove the semicolon before the text to enable the extension. Don’t forget to save your php.ini file.

Lastly, don’t forget to restart the Apache server for changes to take affect.

Check Open Ports in Firewall

If cURL extension is properly installed on your local server, then the next step is to check your internet connection firewall.

Your computer’s firewall may be blocking outgoing connections from local server to WordPress.org. If you are on Windows, then press the start button and search for Windows Firewall. Mac users can find firewall settings in System Preferences » Security & Privacy

You need to add Apache to your firewall’s allowed programs and allow both incoming and outgoing connections.

Firewall Apache

You will need to restart Apache for changes to take effect.

We hope this article helped you solve the WordPress secure connection error. You may also want to see our ultimate step by step WordPress security guide for beginners.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Fix Secure Connection Error in WordPress appeared first on WPBeginner.

How to Restrict Media Library Access to User’s Own Uploads in WordPress

By default, WordPress allows authors to see all images on your site’s media library. This could be problematic if you invite a lot of guest authors. In this article, we will show you how to restrict WordPress media library access to user’s own uploads. Why… Read More »

The post How to Restrict Media Library Access to User’s Own Uploads in WordPress appeared first on WPBeginner.

By default, WordPress allows authors to see all images on your site’s media library. This could be problematic if you invite a lot of guest authors. In this article, we will show you how to restrict WordPress media library access to user’s own uploads.

Restrict WordPress media library access to user's own uploads

Why Restrict Media Library Access to User’s Own Uploads?

WordPress allows authors to see all files in the media library. They can also see images uploaded by an administrator, editor, or other authors.

To learn more, see our article on WordPress user roles and permissions.

Let’s say you are creating a new post to announce an upcoming product or deal. Authors and guest authors on your website will be able to see the images you upload to that article in the media library.

Your uploads will also be visible on the ‘Add Media’ popup which users see when adding images to their own articles.

For many websites, this may not be a big deal. However, if you run a multi-author website, then you may want to change this.

Let’s take a look at how to easily restrict media library access to user’s own uploads.

Method 1: Restrict Media Library Access Using a Plugin

This method is easier and is recommended for all users.

First thing you need to do is install and activate the Restrict Media Library Access plugin. For more details, see our step by step guide on how to install a WordPress plugin.

This plugin works out of the box, and there are no settings for you to configure.

Upon activation, it filters the media library query to see if the current user is an administrator or editor. If the user role does not match either of them, then it will only show user’s own uploads.

Users with the administrator or editor user role will be able to see all media uploads as usual.

Method 2: Restrict Media Library Access Manually

The first method would work for most websites as it limits media library access and allows only administrator and editor to view all media uploads.

However, if you want to add a custom user role or simply don’t want to use a plugin, then you can try this method instead. It uses the same code used by the plugin, but you will be able to modify it to meet your needs.

This method requires you to add code to your WordPress files. If you haven’t done this before, then take a look at our guide on how to copy and paste code in WordPress.

You’ll need to add the following code to your WordPress functions.php file or a site-specific plugin.

// Limit media library access
 
add_filter( 'ajax_query_attachments_args', 'wpb_show_current_user_attachments' );

function wpb_show_current_user_attachments( $query ) {
    $user_id = get_current_user_id();
    if ( $user_id && !current_user_can('activate_plugins') && !current_user_can('edit_others_posts
') ) {
        $query['author'] = $user_id;
    }
    return $query;
} 

This code uses current_user_can function to check if the user has the capability to activate plugins or edit other user’s posts. If they don’t, then it changes the query used to display media files and limit it to user’s ID.

We hope this article helped you learn how to restrict WordPress media library access to user’s own uploads. You may also want to limit authors to their own posts in WordPress admin area.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Restrict Media Library Access to User’s Own Uploads in WordPress appeared first on WPBeginner.