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 ...
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 ...
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 ...
8
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 ...
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 ...
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 ...
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 ...
3
votes
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 ...
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
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
...
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.
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
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 ...
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. ...
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.
...
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 ...
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-...
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/...
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 ...
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 ...
1
vote
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
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
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.
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 ...
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\*
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 - ...
1
vote
How to switch between PHP versions on Ubuntu Nginx
For Apache:
sudo a2dismod php7.0
sudo a2enmod php7.2
sudo systemctl restart apache2
Reference: Link
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
ubuntu × 81magento2 × 48
magento2.3 × 12
php × 12
nginx × 9
apache2 × 7
installation × 6
php-7 × 6
localhost × 6
database × 5
file-permissions × 5
elasticsearch × 4
docker × 4
magento2.3.4 × 3
varnish × 3
pwa × 3
php-7.2 × 3
linux × 3
css × 2
import × 2
magento2.3.1 × 2
aws × 2
apache × 2
windows × 2
centos × 2