Setup Bedrock for WordPress Development on Windows OS

As an experienced PHP Developer, I have more often or not used WordPress when working on my web projects. Like many other developers, I have started to lose the same level of excitement I used to have when working within its rigid structure, as I found it has restricted form and limited functionality over time.

Recently however, I found a WordPress boilerplate called ‘Bedrock’ – which was created by the guys from Roots that pleasantly surprised me. It works by allowing the user to leverage a modern day development workflow that can help speed up your development process.

In this blog, we will go through the steps to set-up Bedrock for WordPress development. Throughout this tutorial, I will be using and referring to the Windows OS only. When working on other operating systems, the steps to set-up the document root will differ slightly, but everything else should be broadly similar.

Installation of Bedrock
Using a Windows computer with XAMPP already set-up, install Bedrock to begin setting up the WordPress boilerplate for development. We’ll use Composer to create our project, so make sure it is installed on your system before proceeding.

To create the project using Composer, head over to your htdocs directory from the command line and run the following command:

composer create-project roots/bedrock

This command creates a bedrock folder inside the htdocs. You can also pass the directory name as follows:

composer create-project roots/bedrock DIRECTORY_NAME

If you jump into your project directory, you will notice a few files such as;
.env, composer.json have been created. There is also a pre-filled .gitignore file with all rules defined already in it.

Next, go to the project directory in the terminal window/command line and install the dependencies using the command:

composer install

This installs all the dependencies required for the development and adds them inside the vendor folder created on your project’s file system.

We are now done with the installation, so let’s go ahead and configure Bedrock.

Bedrock setup and configuration

Start with the document root set-up on your OS for the Bedrock project.

Open xamppapacheconfextrahttpd-vhosts.conf in your text editor to configure the virtual hosts.

Add the following to the end of the file.

</em>
<em>&lt;VirtualHost *:80&gt;</em>
<em>DocumentRoot "D:/xampp/htdocs"</em>
<em>ServerName localhost</em>
<em>&lt;/VirtualHost&gt;</em>

<em>&lt;VirtualHost *:80&gt;</em>
<em>DocumentRoot "D:/xampp/htdocs/bedrock/web"</em>
<em>ServerName bedrock.local</em>
<em>&lt;/VirtualHost&gt;</em>
<em>

Here I have entered the directory path of the project – i.e. “D:/xampp/htdocs/bedrock/web” You can adjust this path as per your XAMPP setup.

Next, we need to make a small change to the Windows system file.
Open C:WindowsSystem32driversetchosts in the Notepad application.

Be sure you have opened the Notepad application with administrator access to make this change. To do this, Right-click on the App icon > Run as administrator.

Add the following lines to the end of the file.

</em>
<em>127.0.0.1 localhost</em>
<em>127.0.0.1 bedrock.local</em>
<em>

Note that I passed ‘bedrock.local’ as the local IP address with the same string (‘bedrock.local’) added in the ‘httpd-vhosts.conf’ file and it is mapped to my project directory path. If I now run bedrock.local on the browser it will point to the project directory that is associated with the above steps.

The final step in our setup is to create an empty database for our website and add its credentials in the .env file.
You can find this file in the root directory of the project.
Open the .env and add the DB Credentials as constants.

DB_NAME=bedrock
DB_USER=ADD_DB_USERNAME
DB_PASSWORD=ADD_DB_PASSWORD

Also, add the WP_HOME URL & the salt key (You can generate a salt key at https://roots.io/salts.html)

</em>
<em>WP_HOME=http://bedrock.local</em>
<em>

Keep the rest of the document as is, save and close the file.

Restart the Apache server and go to the URL: http://bedrock.local in your browser. It should redirect you to the famous 5-minute WordPress installation.

How to use Bedrock for WordPress development

We have so far learned how to install and set-up Bedrock, so let’s see how we can use Bedrock to develop a WordPress project.

In a default WordPress installation, the themes and plugins folder are found inside the ‘wp-content’ directory. With Bedrock, they are situated inside the ‘web/app’ folder. To set-up themes or plugins for Bedrock, add your theme(s) in ‘web/app/themes/’ and your plugins in the ‘web/app/plugins’ directory.

Using Composer, you can install the plugin as follows:

composer require wpackagist-plugin/updraftplus

Here ‘updraftplus’ is a slug of a plugin. This means you just need to use the ‘slug’ and Composer will install the plugin for you. There is no need to follow the manual process for installing plugins as you can search for the plugin packages on WordPress Packagist.

This concludes our quick tutorial on how to setup Bedrock – a very useful tool to manage your development. I recommend using it for all your upcoming WordPress developments.

Please share your thoughts or suggestions in the comment section below.

Sajid Sayyad

The post Setup Bedrock for WordPress Development on Windows OS appeared first on UpdraftPlus. UpdraftPlus – Backup, restore and migration plugin for WordPress.

How to add Microsoft Azure to your UpdraftPlus account settings

Backing up your website to the remote storage location of your choice is something UpdraftPlus have put a lot of time and effort into working on. We currently have a wide-range of supported remote storage options including Google Drive, Amazon S3 and DropBox.

Another remote storage option UpdraftPlus supports is Microsoft Azure. You can create a free Azure account for 12 months that offers users a wide choice of free Azure products and includes 5GB of LRS-Hot Blob Storage with 20,000 read and 10,000 write operations.

While connecting an Azure account may not be quite as simple as Google Drive, by following our easy to understand ‘step-by-step’ instructional video below, you can start backing up your website to Azure in next to no time. 

 

The post How to add Microsoft Azure to your UpdraftPlus account settings appeared first on UpdraftPlus. UpdraftPlus – Backup, restore and migration plugin for WordPress.

UpdraftPlus announces MetaSlider is now sold to Extendify

We are excited to announce we’ve sold our MetaSlider business to Extendify.

Kevin, the lead developer who’s helped build MetaSlider to what it is today, is moving with the plugin and continuing to work on it with the new owners.  You can find more info on their plans for MetaSlider here.

It’s been great working with this excellent plugin over the last three years and seeing lots of new features released.  It was also very satisfying to see it transforming thousands of sites, including high profile customers such as NASA; who purchased MetaSlider Premium to power their space education pages on NASA.gov.

Extendify will, of course, honour all existing support arrangements, GDPR agreements, and licenses.

We’re confident it’s in excellent hands with the vision to take it to the next level, and maintain its position as the most popular WordPress slider plugin, whilst we focus more on our backend plugins such as UpdraftPlus, EasyUpdatesManager, and WP-Optimize.

The post UpdraftPlus announces MetaSlider is now sold to Extendify appeared first on UpdraftPlus. UpdraftPlus – Backup, restore and migration plugin for WordPress.

UpdraftPlus release latest 1.16.28 version

The latest updates for UpdraftPlus 1.16.28 have now been released. This latest version comes with two main new features and several tweaks and fixes. The first new feature we are releasing with UpdraftPlus 1.16.28 is that users can now back up and restore MySQL and MariaDB routines. Backing up these stored routines means that users do not need to keep reissuing the individual statements, but can refer to the stored routine instead. 

The second new feature gives users the ability to search and replace the database via WP-CLI. Having this search and replace option will come in very handy when users need to change a site’s URL for example, or make another change of frequently appearing text inside your WordPress database. This new feature will save users lots of time when compared to manually updating any changes or creating a raw MySQL query to carry out the same action.

We recommend the update for all users.

The change-log for UpdraftPlus 1.16.28 is as follows. 

1.16.28

  • FEATURE: Support backing up and restoring MySQL/MariaDB routines (stored procedures and functions)
  • FEATURE: Added the ability to search and replace the database via WP-CLI
  • FIX: Bit fields in a table don’t necessarily get backed up correctly due to the difference in the output of mysql_query() and mysqli_query() for the bit-field type
  • FIX: Allow single multisite sub-sites to be restored when there is a http/https mismatch between the site and database backup
  • TWEAK: Update plugin updates checker dependency (in paid versions) to the 4.10 series, improving compatibility with WP 5.5+’s updates management
  • TWEAK: Suppress message about how to upgrade an already-installed plugin when on WP 5.5+ (where it is no longer relevant)
  • TWEAK: Internal refactoring to allow more flexibility when creating database backups
  • TWEAK: Force the turning off of ANSI_QUOTES in the active SQL mode when creating a backup, for better compatibility
  • TWEAK: Add the ability to configure the ‘max_allowed_packet’ option in the binary mysqldump command via the ‘UPDRAFTPLUS_MYSQLDUMP_MAX_ALLOWED_PACKET’ constant
  • TWEAK: The Google Drive options exist condition to prevent a false positive saved settings error
  • TWEAK: Improve the UpdraftPlus get_outgoing_ip_address method in finding user webserver’s IPv6 address
  • TWEAK: Removed MetaSlider notice in the notices collection

The post UpdraftPlus release latest 1.16.28 version appeared first on UpdraftPlus. UpdraftPlus – Backup, restore and migration plugin for WordPress.

How to add Google Cloud to your UpdraftPlus account settings

The latest version of UpdraftPlus gives you the option of backing up your WordPress website by using several different remote storage options. Ranging from Google, to Amazon S3, to DropBox, there is a remote storage option for everyone.

As with Google Drive, Google Cloud, as it offers 15GB of free remote storage for free per month and can be used in the knowledge that you are putting your backups and security in the hands of one the largest and most dependable companies in the world. 

By using your existing Google email account, you can set up your Google Cloud remote storage account in next to no time. If you require more remote storage space, you can purchase up to 2TB of space for just £79.99 a year. 

UpdraftPlus can be connected to your Google Cloud remote storage location in just a few minutes. We know that all the different options and settings can sometimes be a lot to figure out, so we have created the following helpful video guide on how to quickly and easily connect UpdraftPlus and Google Cloud.

Just follow the video below for a step-by-step guide.

The post How to add Google Cloud to your UpdraftPlus account settings appeared first on UpdraftPlus. UpdraftPlus – Backup, restore and migration plugin for WordPress.

How to add Google Drive to your UpdraftPlus account settings

When backing up your WordPress website with UpdraftPlus, you have the option of using several remote storage options in which to save your backup files.

One of the most popular storage locations is Google Drive, as it offers 15GB of free remote storage, has a world-wide reputation for security and dependability and is a quick and easy remote storage option to connect to as pretty much everyone already has a Gmail account already setup. 

As user interfaces and setup processes change rapidly, we at UpdraftPlus are constantly updating the latest ‘how-to’ videos, so users have a clear understanding of how to connect Google Drive and other remote backup options to their UpdraftPlus account. 

To find out how to add Google Drive to your UpdraftPlus backup settings, just follow the video below for a step-by-step instructions.

The post How to add Google Drive to your UpdraftPlus account settings appeared first on UpdraftPlus. UpdraftPlus – Backup, restore and migration plugin for WordPress.

Easy Updates Manager and WordPress 5.5

Easy Updates Manager has long been the leader in WordPress update management. We’ve watched Easy Updates Manager go from a humble 10,000 installs to its current 300,000 install count.

With WordPress 5.5, auto-updates have landed in WordPress Core. This is exciting.

With this latest WordPress update, we had to make the tough decision whether to natively integrate with WordPress Core’s interpretation of automatic updates, in regards to plugins and themes. While the native core integration of auto-updates is well-thought and we foresee it becoming more powerful, EUM has taken the decision to continue to control updates through our unique and innovative interface.

One example is our plugins and themes screen. Users can still enable auto-updates through those screens and it integrates well with core emails and our log functionality. Additionally, you can also disable updates completely for certain assets.

EUM also integrates out-of-the-box with most third-party plugins and has worked with hosts throughout the years to make native automatic updates to plugins and themes a possibility, even on managed hosts.

When a user couples automatic updates with backups that most managed hosts handle natively, or our own UpdraftPlus backup solution, users are covered even if the worst should happen.

With EUM Free, we have identified that most users simply want auto-updates to be enabled holistically throughout WordPress. This includes plugin/theme updates, translation updates and WordPress Core updates (minor and major versions).

We foresee automatic updates, as they have landed in Core, to be a popular feature. We provide additional features with our Premium offering.

With EUM Premium, users are given more control over updates. Examples of our popular Premium features include:

  • Update scheduling – Control when updates are run to avoid excessive server load and downtime.
  • Logs – Logs are a native feature, but premium allows you to integrate logs with third-party services such as Slack. The export log functionality also allows you to generate a report for clients.
  • Email reports of pending updates – If for some reason an update isn’t available through auto-updates, we can send you a periodic report of updates that need action. This will also work if you have disabled an asset from updating.

At Easy Updates Manager, we will strive to give users the features they need to have full control over their updates and will continue working with WordPress Core in regards to automatic updates. As Core updates mature, we will strive to integrate with native Core functionality when it makes sense.

The post Easy Updates Manager and WordPress 5.5 appeared first on UpdraftPlus. UpdraftPlus – Backup, restore and migration plugin for WordPress.

UpdraftPlus passes 3 million active installs

Though the world is going through a tough time right now, UpdraftPlus has found a reason to celebrate! Your support has meant we’ve reached the amazing milestone of 3,000,000 active installs. 

The UpdraftPlus office is in Wales, UK which has a population of 3 million – which means there’s a site actively using us for every person in this nation.

After hitting 2 million in December 2018, we’re humbled to reach this figure in an increasingly crowded and competitive marketplace. 

UpdraftPlus is now the 13th most popular plugin in the world.  Excluding official WordPress.org and Automattic plugins (which are pre-installed or promoted heavily in the plugin installer interface), we’re 8th most popular.

We also remain the #1 backup plugin (All-in-One WP Migration, which includes a backup facility but markets itself essentially for migrations, is on 2 million, with Duplicator on 1 million) – the next biggest plugin that directly presents itself as a backup plugin is BackWPup on 600,000).

We’d like to thank the team here, who even during these difficult times, have all continued working to improve the plugin and provide support in order to give you the peace of mind they need by providing the highest quality possible backup experience

But we couldn’t carry out the developments and improvements that have made UpdraftPlus so popular without all of our loyal users. So thank you again, and here’s to the next million!

The post UpdraftPlus passes 3 million active installs appeared first on UpdraftPlus. UpdraftPlus – Backup, restore and migration plugin for WordPress.

Where to find motivation and inspiration when building your first website

For most people, the internet is all about consumption. They go online to find entertainment, shop, learn and generally be distracted from all of the troubles and stress modern life is currently throwing at us. People are generally aware of the internet’s incredible potential for creative expression and professional development, but most people have never actually attempted to create their own websites.

When someone does resolve to take the first steps into the exciting and daunting world of building your first site, they have a remarkable journey ahead of them. Consult anyone with a history of web development (professional or amateur) and they’ll tell you that their first website project can be a transformative experience.

It’s isn’t an easy process though, particularly for those with minimal tech expertise, and not every attempt you make at building a website will work out. It can be easy for an aspiring web developer or entrepreneur to give up due to confusion about what to do technically, or even a lack of creative direction. After all, simple setup procedures and free themes can’t solve all design problems.

This blog is intended to help someone in such a position. If you know someone building their first site, or if you are working on building your first website, these inspirational ideas will hopefully help:

Take a basic course

While it is possible for someone with decent IT skills to cobble together a fairly decent website with no formal development tuition or training, it doesn’t mean it’s preferable. If you are trying to build a site but aren’t sure how to proceed, it is highly recommended that you think about taking a basic course in website development. This can be a great way to pick up the fundamentals that can otherwise be missed so easily when you’re winging it.

When it comes to deciding which course you should take, it really depends on what you are willing to spend, how much you already know, what results you are trying to achieve and what type of website you are aiming to build. A simple blog website for example will require much less knowledge than a large online store with various payment, shipping, tax and language options. Udemy for example has various courses specifically for WordPress, many concentrating on different elements of the development process. Just one solid course can prove extremely useful. Remember to read user reviews before committing your time and money on a course though, as quality and results can vary.

Research and read success stories

A journey of a thousand miles starts with a single step: even though we all know this, it’s still tough for someone to take that step to place it into an appropriate context. If the process of developing your first website starts to drag, it is the easiest thing in the world to just give up on the idea, justifying this abandonment by assuming that it would never have amounted to anything anyway. As with all those well-meaning New Year’s resolutions that fall by the wayside after a month or two, the world is littered with partially designed and built websites that are ultimately forgotten because things got too difficult.

That’s where success stories become so meaningful. There are plenty of examples out there of thriving businesses that started out slowly, without massive budgets or fanfare. Instead, many successful sites began as simple side hustles set up by aspiring entrepreneurs that eventually grew into highly successful and lucrative businesses. Their creators believed in themselves, worked hard on their websites and kept moving ahead until they achieved their goals. Knowing that success can be achieved is hugely important for getting through the tough early stages.

Examine great sites

When trying to build something great, it can be a massive challenge should you not be very experienced with the production process. It can even be tough to properly envisage exactly what you may be ultimately aiming for. What should the website ultimately look like? How should it work? What pages and categories should you have? In life, there can be a lot of value in having role models to emulate as it can provide inspiration and allow you to see how established and successful sites got where they are, giving you something to aim towards too.

Because of this, one of the best ways to get inspired when building your website is to closely examine the best and most successful websites out there that are similar to yours. Why do users like them so much? What lessons can you learn about how to build a great website? And most importantly, what can be done better? This will allow you to return to your development project with a much clearer vision of where you would like to take your site.

Join a community

One of the best things about the online world has always been its ability to bring people from different backgrounds and lifestyles together. Whatever interest a given person is looking to pursue, they can be absolutely confident that there are relevant internet communities already in place, and that’s certainly the case for web development (and entrepreneurship in general).

Each content management system has numerous communities dedicated to it online, which are always a great place to start. Reddit is another great place for general advice: the r/Entrepreneur subreddit has 650k members, which is a great place to ask broader business questions. There are also subs like r/webdev (416k members) for more specific technical queries. There are also thousands of videos on YouTube that help show you how to develop and setup a WordPress site, taking you through all the steps needed to take your website plan from idea to reality. 

Inspiration can come in many forms and mean different things to different people, but at its core it’s about motivation: motivation to learn, to keep going, and to strive for greater achievement. While the ideas listed above are far from revolutionary, they are incredibly potent and just one of them can be enough to push a project through to fruition.

Rodney Laws

The post Where to find motivation and inspiration when building your first website appeared first on UpdraftPlus. UpdraftPlus – Backup, restore and migration plugin for WordPress.

5 effective on-site marketing tips for your WordPress site

With 1.3 billion websites, WordPress is by far and away the top choice for website creation across the world. The platform’s popularity comes from allowing users to easily create personal sites, purchase domain names and customize the site with easy to use, no-development-needed plugins. Since its launch in 2003, WordPress has made the world of site creation accessible for everyone. 

If you have created your own WordPress site and customized it to your personal preference, your next step will probably be figuring out how you market and drive traffic to your brand new site.

This can prove to be very challenging. You could have the greatest idea and site in the world, but without the right marketing, it could remain essentially invisible and un-visited. Luckily, we have 5 of the best tips for successfully marketing your WordPress site.

1. Use the right plugins

WordPress allows you to easily integrate plugins so you can make improvements to your website without having to code them yourself. Plugins are extensions that add features, data analytics, and other resources to assist your website. However, you may not know how to choose the plugins that will be best for your site.

Choosing the right plugins for your website comes down to identifying exactly what needs improving, or where you can get a competitive edge on your competitors. For example, you can find plugins that offer features such as these:

  • Improving your SEO (making it more findable).
  • Allowing you to resize and compress images on your website ( making it faster).
  • Gathering, collecting, and adding email addresses to your newsletter (making it easier to connect with your visitors).

Source

WordPress allows you to easily find popular plugins that others use. You can also search for specific plugins in the internal WordPress search engine – you should have no problems finding the right plugin to address issues or provide changes for your website.

2. Optimize your website

Internet users today expect any website they visit to load almost instantly and provide quick answers. Due to this expectation, it is essential you optimize your website and reduce load times so people can quickly access it. Even a few seconds can make the difference between someone staying on your site or leaving.

Source

Every second counts when it comes to website loading speed. The image above shows how the bounce rate increases by 32 percent after visitors are forced to wait three seconds for the website to load. This continues to grow and become worse as more time passes. So, if you want to reduce the number of people that leave your site, you need to lower those load times.

Some options to improve your loading speed include purchasing a private or shared hosting service, removing unused plugins and optimizing your images. Even small optimizations like these can help your site to load slightly faster and retain more visitors.

3. Use A/B testing for landing pages

Effective marketing requires you to collect data so you can implement the right changes to your website. Many companies use the A/B testing approach to accomplish this, meaning that websites will display two different versions of landing pages to visitors. They will then collect the data for both (for example; session time, click rates, click map) so they can see exactly which elements are working well and which are not. 

Source

The image above shows how a company can improve their metrics with A/B testing. This method can also be used in multiple ways to help improve your pages, emails and other resources.

  • Testing colors will let you know which ones appeal most to your customers.
  • Trying out different email formats and subject lines to get more clicks.
  • Showing different landing pages will help you to find the one that draws in most leads.

A/B testing works because it allows you to see which idea performs the best. This way, you can effectively test your pages and optimize them to their maximum potential.

4. Integrate pop-ups to gain contacts

If you’ve been on the internet before, then you will no doubt know about pop-ups. They usually appear on your screen as soon as you go on a website or if you’re about to leave. Even if you do use popups on your site, you might think that they could cause people to leave as they can generally be seen as annoying. So are they worth the risk?

Source

Looking at the data, you can see that popups have no noticeable effect on your bounce rate but they can double your subscription rate. This suggests that typically you needn’t worry about pop-ups causing people to leave as it has no discernible impact on user behaviour. The benefits of popups seem to heavily outweigh the drawbacks.

There are a few best practices to follow with popups:

  • Whether you choose an immediate popup, or an exit-intent popup, choose one or the other and don’t overdo it. It can feel spammy otherwise. 
  • Target your popups to be relevant to the page content. This makes it feel more native to the content that your visitor is already engaged with.
  • Make it so that if a visitor closes a popup, they won’t see it again for a certain amount of time. 30 days is usually a good benchmark for when you can re-show a returning visitor, but test that time frame for your own site. 

Remember that you can use popups to encourage certain actions from your visitors. For example, you can invite them to follow your social media pages, make an account on your website, or sign up to get emails or SMS notifications from you. Experiment and find the best approach for your popups.

5. Optimize your blogs

If you want to improve your website’s SEO, then you should focus on your blogs as they can help your business grow in various ways..

  • Provide high-quality content on your website.
  • Encourage people to visit your website regularly to read articles.
  • Include keywords in your articles to improve your search engine rankings.
  • Create fresh content that updates frequently, something which Google prizes highly in its search engine algorithm.

But what parts of your article should you focus on to improve your site’s SEO?

Source

If you don’t know where to start with blog optimization, then use the data above. Headline optimization works well because your titles will draw in clicks from outbound links and search engines. Additionally headers and body text allow you to incorporate keywords that can help improve your search engine ranking.

As you improve your blog SEO, you can gain more traffic on your website which will hopefully develop into more leads and conversions if your sales funnel is well-optimized.

Final comments

Remember that creating a website is only the first part of establishing your online presence. After providing a place for people to make purchases or interact with your business, you need to work on marketing. By using the five tips mentioned in this article, you can improve your site and allow your business to meet its marketing goals.

The post 5 effective on-site marketing tips for your WordPress site appeared first on UpdraftPlus. UpdraftPlus – Backup, restore and migration plugin for WordPress.