Vagrant: “Warning: Authentication failure. Retrying… ” after packaging box

Easy fix:


Vagrant: “Warning: Authentication failure. Retrying… ” after packaging box
5 (100%) 1 vote[s]

Basic Magento 2 extension skeleton

What is necessary to create a very basic Magento 2 extension skeleton? Not that much. If you’re don’t have a patience to read the whole article – here is a link to download.

If you do – let’s start from basics.

Hint: Turn on developer mode while you working on new extensions

Create module

In Magento 1 we have three code pool folders under app/code directory: core, community and local. It’s much simplified in Magento 2 – now all extensions located by their namespace in same directory: app/code.

So to begin with module setup we need to create necessary files and folders. And here is a structure:

Now, when we have module structure – let’s fill it with some code:

1. Add following to app/code/YourName/FooBar/registration.php:

2. And this to app/code/YourName/FooBar/etc/module.xml:

Yes, that’s it – bare minimum to register new Magento 2 extension.

Module setup

Now when we have all necessary module files and folders in place – let’s register and enable it.

Navigate to your magento root folder and run following commands in terminal:

This will enable your module, flush some cache and register it with the database.

Now go to Admin -> Stores -> Configuration -> Advanced -> Advanced in admin panel. You should be able to see your module available there.

That’s all – in my next articles I will extend this basic skeleton and add a controllers, blocks, etc.


Rate this post

Install Magento 2 via command line

Sometimes (especially on shared hosting) Magento 2 web install just isn’t work – there is a plenty of reasons, but this post will not cover this topic, it’s about how to install Magento 2 via command line. So here is a simple shell script and hints to add some tuning to your install.


First of all you need to set correct file permissions. Per Magento recommendation change directory to you magento2 install root, then change ownership and file permissions:

Hint: also check Vinai’s gist


Now it’s time to install magento:

Tune your installation

If you’re using xdebug there is a known issue, so you want to change installer first line just like this:

If you have any special chars in db password – make sure to escape them:

If you want to use secure URL on backend – just add next option:

If you using a sample data just add this:

Full list of install options could be found in Magento 2 devdocs. Hope that helps.


Install Magento 2 via command line
5 (100%) 3 vote[s]

Create admin user in Magento via MySQL

Quick snippet on how to create admin user in Magento via MySQL query:


Create admin user in Magento via MySQL
5 (100%) 2 vote[s]

Multi Monitor Support for PHPStorm on MacOS Yosemite

I found very convenient to use a multi monitor support for PHPStorm on MacOS Yosemite to keep PHPStorm project tree, structure and debug windows on second monitor while developing. It’s pretty simple and well explained by JetBrains guys here. From benefits perspective it brings you more space to view project tree, easy to navigate and no need to switch windows to observe a real time debug.

But, of course, for MacOS, there is a bummer right out of the box. When I move floated windows to second screen, back to main project window and then click on any PHPStorm window on second monitor – it’s jump back to main window. This is quite annoying and kills the whole purpose of such a brilliant tool. If you struggle with the same issue – here is the fix for this:

Mission Control settings for multi monitor support

Just open System Preferences > Mission Control and uncheck Displays have separate Spaces option. And that’s it! Happy coding.

If you find this article helpful – don’t hesitate to rate it below and share to help others.


Multi Monitor Support for PHPStorm on MacOS Yosemite
4.8 (95%) 4 vote[s]

← Older posts