Skip to main content
26 votes
Accepted

How to switch between PHP versions on Ubuntu Nginx

Please use to below command sudo update-alternatives --config php After run above command select the PHP version that you need to use. Press to keep the current choice[*], or type selection ...
Kamlesh Solanki's user avatar
10 votes

Magento 2.3.1 - Issue with catalog search when using php7.2-fpm

You might want to look at this Github issue here. Magento is compiling a list of product IDs to send as a cache header but the header ends up being too long because the header string includes all ...
S Adamson's user avatar
  • 719
9 votes

How to switch between PHP versions on Ubuntu Nginx

For Nginx, we simply need to update the PHP-FPM socket in its configuration file. But before that make sure that the PHP-FPM is installed for your version and is running as a service. Take a backup ...
Prathap Gunasekaran's user avatar
9 votes

Wrong file in vendor/magento/framework/Image/Adapter/Gd2.php:64 when i install magento 2.3

i was trying to install Magento 2.3.5-p1 on WINDOWS 7 (32 bit) (yes it's out of date) and i run into the same error. as per this thread, the error seems to be related to Windows platforms and the ...
cizario's user avatar
  • 191
4 votes
Accepted

Uncaught Error: Cannot instantiate interface

Magento in attempting to instantiate the interface, interfaces cannot be instantiated. You need a class that implements the interface. To do this use a preference in the di.xml that suggests which ...
NetStorm's user avatar
  • 108
3 votes

Wrong file in vendor/magento/framework/Image/Adapter/Gd2.php:64 when i install magento 2.3

Just ran into this problem for my Magento 2.3.5-p2 in wamp server on Windows 10. It looks like it is windows related problem only (I am yet to confirm that), I had to add strlen($url['scheme']) > 1 ...
Adarsh Khatri's user avatar
3 votes

How to set permisions for var/cache folder?

Run this command: chmod -R 777 var/*
aissyass's user avatar
  • 124
3 votes

Varnish - NGINX serving all resources HTTP instead of HTTPS (Magento 2)

Thanks to MagenX I found the solution! Find the line like this in nginx.config: location ~ (index|get|static|report|404|503|health_check|phpinfo).php$ { .... } Add this line: fastcgi_param HTTPS ...
Jeremy F.'s user avatar
3 votes
Accepted

Nginx Magento 2 403

Solved. Ended up being the host name, and then not doing setup:di:compile followed by the static-content:deploy
Brandon Irwin's user avatar
3 votes
Accepted

Some pages on Magento 2 website displaying Error 502 when Varnish cache is enabled - website hosted on Ubuntu 18.04 Nginx VPS

proxy_buffer_size 256k; That size is huge and won't do you good. You can read the guide on how to tune it properly with one important note: fastcg_buffer_size and proxy_buffer_size are ...
Danila Vershinin's user avatar
2 votes
Accepted

Ubuntu 18.04, xampp : php shell command using base php version instead of xampp php version 7

you need to point xampp php by following command it will work: /opt/lampp/bin/php bin/magento setup:upgrade or add sudo if you are not root user, becaus its need to generate and delete some files ...
Hassan Ali Shahzad's user avatar
2 votes

Magento is not supported on Windows OS and Mac OS?

it can be installed anywhere where you can run LAMP stack. support and not working is different.
MagenX's user avatar
  • 3,813
2 votes

Pub/media css was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff in magento 2

make sure .htaccess exist in pub/static
Lalit Kaushik's user avatar
2 votes

Wrong file in vendor/magento/framework/Image/Adapter/Gd2.php:64 when i install magento 2.3

I got the same error. I changed vendor\magento\framework\Image\Adapter\Gd2.php file, Line 63 to: if (!$filename || filesize($filename) === 0) { After this I can install magento. Or you can ...
Eason Liu's user avatar
2 votes

Magento2 configure PHPstorm & xdebug and how to use it

Note: I would rather enter this as a comment than an answer, but don't have the rep for it. I personally have only set up Xdebug with apache and netbeans, but I can't imagine they are too different. ...
FearTheBeard88's user avatar
2 votes

Magento2 configure PHPstorm & xdebug and how to use it

Remove all the previous setting and reset phpstrom and follow these steps: https://www.jetbrains.com/help/phpstorm/configuring-xdebug.html#integrationWithProduct from the official documentation. ...
Shekhar Suman's user avatar
1 vote

Error while trying to install in AWS Ubuntu Instance

When You Setup on Your Install Magento 2.3.4 . I have seen You have installing third Party Extention. so You can deselect third Party Extention While Installing Magento.After Installation Complete You ...
Dasharath Patel's user avatar
1 vote
Accepted

Mysql modify column not working

Strict mode affects whether the server permits '0000-00-00' as a valid date: If strict mode is not enabled, '0000-00-00' is permitted and inserts produce no warning. If strict mode is enabled, '0000-...
Jeff Yu's user avatar
  • 136
1 vote

Pub/media css was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff in magento 2

Remove all files from var/ folder. Check for .htaccess in pub/static. If not exists, take a file from a fresh setup. Run the following commands php bin/magento setup:static-content:deploy -f php bin/...
Teja Bhagavan Kollepara's user avatar
1 vote

Uncaught Error: Cannot instantiate interface

Well it does not find that interface or can not load it and that can have multiple reasons. Here a couple : Your interface does not exist The interface has the wrong namespace The interface is in ...
CompactCode's user avatar
  • 2,477
1 vote

Problem with installing mcrypt on PHP 7.3.13 Ubuntu

Mcrypt is deprecated since PHP 7.1.x and is removed now. I suggest replacing it with libsodium instead. Magento2 integrates without issues.
apeters's user avatar
  • 121
1 vote

Cannot setup Magento 2.3 in local due to autoload error?

Finally, I have solved this issue by running the following commands: sudo composer install sudo composer update After that the deployment commands. So, here I have added sudo with composer install ...
MagentoDev's user avatar
1 vote

How to set permisions for var/cache folder?

Run this command chown -f owner:group var/
Mitali's user avatar
  • 451
1 vote

How to set permisions for var/cache folder?

Try to run below command sudo chmod -R 777 var/ sudo rm -rf var/cache
ASQ's user avatar
  • 1,062
1 vote
Accepted

Magento 2.3 Installation worked on Ubuntu 18.04, but after Ubuntu Restart Magento Page will not load any more. Any Ideas what could be the Problem?

This can be a permission issue. So, give file permission to your generated/ pub/ var/ folders using following command. sudo chmod -R 777 var/ generated/ pub/media pub/static
Flying Finner's user avatar
1 vote
Accepted

Magento 2.3 Extensions on Ubunu 18.04

Check module.xml file of your module which you created at last. This error generally occurs because of this file only.
Flying Finner's user avatar
1 vote

Pub/media css was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff in magento 2

Same problem I am getting on my localhost so for this I have tried below methods: * replace .htaccess file in pub/static folder (no luck) * after lot search I run this commands and successfully ...
Rohit Kaushik's user avatar
1 vote
Accepted

PHP Extension bcmath is missing in PHP Extensions Check

You can solve it with the help of following command sudo yum install php72w-bcmath --disablerepo=epel\*
surbhi agr's user avatar
1 vote

Magento 2 + Permissions issue in Ubntu 16.04

Another solution would be to write a shell script which performs upgrade / static deployment and sets / corrects folder permissions. That way you are only running the shell script. As requested - ...
Dominic Pixie's user avatar

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