Skip to main content
Share Your Experience: Take the 2024 Developer Survey
76 votes
Accepted

How to install a specific Magento 2 version with Composer?

You can try below command: composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.1.7 /installation/directory/path
Jarnail S's user avatar
  • 4,697
51 votes
Accepted

500 after install - Class Magento\Framework\App\ResourceConnection\Proxy does not exist

chown -R www-data:www-data /var/www/magento2/ chmod 777 -R var generated app/etc rm -rf var/cache/* var/page_cache/* var/generation/* and php bin/magento setup:di:compile; If you're using Docker, ...
stnc's user avatar
  • 658
45 votes

Magento 2.4.1 setup:install problem : "the default website isn't defined. Set the website and try again."

It appears that this error might appear when a MySQL database is empty, but the env.php file is present. (Possibly because you had setup Magento, but for some reason, database was deleted.) To fix ...
Aleksandrs Rivkinds's user avatar
39 votes

Magento 2 Error ERR_TOO_MANY_REDIRECTS

I had same problem manipulating databases, this answer resolved my problem ERR_TOO_MANY_REDIRECTS : https://magento.stackexchange.com/a/84756/50635 To correct this, please try to set Use Secure ...
DependencyHell's user avatar
36 votes

How do I set Developer Mode in Magento 2

Another way, we can enable developer mode Goto app/etc/ and open env.php and change current application mode by MAGE_MODE' => 'default' to MAGE_MODE' => 'developer' Then,please flush the cache
Amit Bera's user avatar
  • 77.5k
36 votes

Magento 2 Error ERR_TOO_MANY_REDIRECTS

In my case, I was importing an already existing Magento 2 database. The reason I was getting the error was because of the cookie domain in the database. Go to your database and look in the table ...
Paul's user avatar
  • 1,501
34 votes
Accepted

Installation at 51% Module 'Magento_Theme' Error in Magento 2

You need to perfact solution please edit below function on line no 96 follow this- vendor\magento\framework\Image\Adapter\Gd2.php-- private function validateURLScheme(string $filename) : bool { ...
Pushpendra Singh's user avatar
24 votes
Accepted

Magento 2.1.1 not compatibile with PHP 7.1.0

Update - September 2017: Magento 2.2 now officially supports PHP 7.1, so that's the Magento version you should aim for from now on if PHP 7.1 is something you want or need on your platform. Original ...
TiEul's user avatar
  • 1,297
24 votes
Accepted

500 Internal Server Error when installing magento2.2.2

Ok Finally.... here is the process i did follow to get rid from this. Step1:: Please make sure that LoadModule version_module modules/mod_version.so is loaded from httpd.conf file to resolve Invalid ...
Zahirabbas's user avatar
  • 2,073
22 votes

Magento 2 Error ERR_TOO_MANY_REDIRECTS

I refer to your magento store domain as example.com in this post. If its www.example.com or store.example.com or whatever, substitute accordingly. I just ran into this issue and here are the ...
Ryan Wilson's user avatar
21 votes

Magento2 exception during installation: 'LogicException' with message 'Unknown module in the requested list: 'Magento_BundleSampleData'

Most of the time these type of errors come when you try to install magento2 previously and it was failed due to some reason. and you have started your installation process again after removing all of ...
Amit Dwivedi's user avatar
  • 1,550
21 votes

Magento 2 Installation Fatal Error - Cannot instantiate interface

Make sure the PHP module intl is installed, clear var/generation (or generation/* if you're using Magento 2.2+) and var/cache, enable Magento modules (bin/magento module:enable --all), compile DI (bin/...
Erfan's user avatar
  • 3,117
20 votes
Accepted

How to reinstall magento 2 extension properly?

To run your extension again you need to remove your extension entry from setup_module table also remove your table which are created by your extension script then run below command php bin/magento ...
Hardik Patel's user avatar
17 votes

Magento 2 CSS and JavaScript not loading from correct folder

you just need to update the apache2.conf file. On Ubuntu 16.04 Open and edit the file /etc/apache2/apache2.conf Navigate to the place in the apache2.conf file <Directory /var/www/> Change "...
S.A's user avatar
  • 171
17 votes
Accepted

Magento 2 Installation Fatal Error - Cannot instantiate interface

If you use nginx configuration from the official sample and running Magento in the default/developer mode this situation might happen with document root global value set as root $MAGE_ROOT/pub; The ...
Yaroslav Rogoza's user avatar
16 votes

Magento 2 Error ERR_TOO_MANY_REDIRECTS

In my case, I copied website from client's server, and was setting up it on my local system. I simply removed cookie/domain from core_config_data table and then flushed cache, it worked for me! ...
Jitendra Mandloi's user avatar
14 votes

Magento 2 CSS and JavaScript not loading from correct folder

For me it was simply because mod_rewrite wasn't enabled. sudo a2enmod rewrite and service apache2 restart
Haim's user avatar
  • 2,144
14 votes
Accepted

How to setup Magento 2 with Docker

I've been using for the last 6 months the docker images created by Fabrizio Balliano It works nicely on ubuntu. And you have a readme file explaining what you need to do to get it running.
Marius's user avatar
  • 198k
14 votes

Magento 2.4.1 setup:install problem : "the default website isn't defined. Set the website and try again."

I was changing a db and removing env.php helped to get rid of the error for me.
jekabs's user avatar
  • 318
13 votes

Magento 2 CSS and JavaScript not loading from correct folder

Here is the simplest solution if showing version name in css path like : pub/static/version323334/ then run this query in mysql INSERT INTO core_config_data (path, value) VALUES ('dev/static/sign',...
Surendra Kumar Ahir's user avatar
13 votes
Accepted

enable multiple modules for same namespace

You cannot use wildcards but you can enable all of them from one command like this: php bin/magento module:enable Vendor_MyModule1 Vendor_MyModule2 Vendor_MyModule3
Marius's user avatar
  • 198k
13 votes

enable multiple modules for same namespace

Short answer: Yes, you can. But it is *nix command trick, Magento 2 does not support it by default as Marius answer. You can execute the following command and it can do what you want. php bin/...
Toan Nguyen's user avatar
  • 3,059
13 votes
Accepted

Magento 2 : Running magento 2 on windows using windows subsystem for Linux (WSL)

Introduction: The Windows Subsystem for Linux (WSL) is a new Windows 10 feature that enables you to run native Linux command-line tools directly on Windows, alongside your traditional Windows desktop ...
Vivek Kumar's user avatar
  • 5,395
12 votes
Accepted

Why is my 'magento' directory missing from lib/internal?

I think you did the setup using composer. In a composer installation of magento2 there is no lib/internal/Magento folder instead it is in the vendor folder, "vendor/magento/framework" to be precise. ...
Atish Goswami's user avatar
12 votes
Accepted

Magento 2 : installation stuck at 67% every time

Please check below link and then try to install. Also Change in php.ini. max_execution_time = 1800 max_input_time = 1800 memory_limit = 1024M http://devdocs.magento.com/guides/v2.0/install-gde/...
Payal Patel's user avatar
  • 1,511
12 votes

Magento installation: Getting Fatal error

Your var folder does not have the right permissions. I suggest you follow the official documentation to set the right permissions on your Magento instance: http://devdocs.magento.com/guides/v2.0/...
Raphael at Digital Pianism's user avatar
12 votes
Accepted

Magento 2.4.6 : Could not validate a connection to the OpenSearch. No alive nodes found in your cluster

Replace --search-engine=opensearch with --search-engine= elasticsearch7, it will solve your issue. It is intended to bypass the Magento installation/upgrade process, you can change the configuration ...
Tu Van's user avatar
  • 7,153
12 votes

Magento 2.4.6 : Could not validate a connection to the OpenSearch. No alive nodes found in your cluster

By default OpenSearch uses SSL, but magento doesn't use it. So it needs to disable SSL plugin in OpenSearch for successful magento installation: sudo nano /etc/opensearch/opensearch.yml And add this ...
Litvinenko Sergey's user avatar
11 votes

How to download magento

Wondering why nobody mentioned https://github.com/OpenMage/magento-mirror
Tim Bezhashvyly's user avatar
11 votes

Magento 2 CSS and JavaScript not loading from correct folder

If you are facing problem of css and js page load design after installation in magento2 please follow the following step-: open the terminal and navigate to magento web root $ cd /var/www/html/...
Arvind's user avatar
  • 119

Only top scored, non community-wiki answers of a minimum length are eligible