This article describes one of the ways to setup WordPress on Windows or Linux. This installation can be used for demo and development purposes.

To proceed you will need:

Assuming you’ve installed docker, docker-compose and php, let’s start:

  1. Download Eleanorsoft Utility and put it inside folder where you want to install Magento2.
  2. Run the following command in that folder:
    php esutil.phar wordpress/setupAll --docker-skeleton-path="./" --docker-skeleton-name="wordpress" --docker-skeleton-port-prefix="801" --docker-docroot-owner="" --wordpress-domain="localhost"

    See argument description below.

  3. Copy passwords, url, etc. from console
  4. Open in your browser.

That’s all. WordPress is setup. Its code is located inside www/html folder.

Now let’s describe command arguments:

  • docker-skeleton-path – a path to the folder where your project is going to be set up;
  • docker-skeleton-name – a name of the docker instance;
  • docker-skeleton-port-prefix – the setup requires 3 open ports to work: web server ({prefix}1), phpMyAdmin ({prefix}3) and sftp server ({prefix}4). In our example, we use prefix “800”. It means that web server is going to run on port 8001, phpMyAdmin – 8003, sftp server – 8004.
  • docker-docroot-owner – owner of the project files. In most cases, it has to be www-data. This setting is ignored on Windows.
  • wordpress-domain – the domain name on which your store is going to run..

During installation, you might get an error about missing PHP extensions. Most of these extensions can be enabled in your php.ini. If you’re installing Magento 2 on Windows, php.ini is located inside your Windows folder or PHP folder. On Linux you can find out its location from the command:

php -i | grep php.ini

To stop or start Magento 2 instance the following commands may be used (with sudo if needed):

docker-compose stop
docker-compose up -d

Related Post

Post Not Found.