Questions tagged [ubuntu]

Denotes questions related to Ubuntu (open source software operating system)

Filter by
Sorted by
Tagged with
10 votes
3 answers
39k views

How to switch between PHP versions on Ubuntu Nginx [closed]

I have PHP 7.0 and 7.2 installed. For now, I use PHP 7.0. How can I switch to PHP 7.2?
Rufus's user avatar
  • 621
4 votes
1 answer
3k views

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

When we search any string from the search text box, We have encountered a 500 server error into the search result page in our live web site or search page getting blank. When we check in logs or ...
Emipro Technologies Pvt. Ltd.'s user avatar
4 votes
1 answer
800 views

Magento 2 integration with vue-storefront : When Installing the vue-storefront-api locally, it throws error for npm on Ubuntu

To install vue-storefront, i have followed the steps as per documentation guide https://docs.vuestorefront.io/guide/installation/linux-mac.html#requirements, but while installing vue-storefront-api ...
Khushbu Mehta's user avatar
3 votes
1 answer
4k views

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

I have installed a fresh copy of Magento 2 (2.3.5 with sample data) on a VPS which has the following stack: Ubuntu 18.04, Nginx, Mysql, and PHP 7.2 FPM. This vanilla installation worked. However, ...
fmt's user avatar
  • 33
3 votes
0 answers
167 views

My deployment scripts are utilizing all the ram and taking forever

Even if I increase the ram it will end up just using it up and bogging down. I'm not sure if this is riding the gray line of what should be in magento stack exchange vs ask ubuntu. Why are these ...
Head's user avatar
  • 135
2 votes
3 answers
8k views

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

Please help me. It's displayed below error when I have cloned and installed Magento 2.
Tiến Nguyển Tất's user avatar
2 votes
1 answer
150 views

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?

I need your help. I am new to Magento 2.3 and first everything worked perfect after the Installation on my Ubuntu 18.04 Maschine, but after my first Ubuntu restart the Magento Shop Page and Admin Page ...
Felix Schönherr's user avatar
2 votes
1 answer
3k views

PHP Extension bcmath is missing in PHP Extensions Check

I found a lot of questions on this topic. but sorry, nothing can resolve my issue. I am using virtual box to run centos 7. I have downloaded Magento 2.3. I tried composer install on my Magento ...
Sandeep Sudhakaran's user avatar
2 votes
1 answer
323 views

Best server configuration for Magento 2 small application [closed]

We are developing one small application of electronics in magento 2 community version. Now we are planning to publish this site so which server/configuration is best for this kind of site So please ...
Anil Prajapati's user avatar
2 votes
0 answers
273 views

PHP Fatal Error causing 500 Internal Server Error

I recently started to work with a small merchant to set-up their first web-shop and chose Magento Community to do so. While I have plenty of PHP, etc.. developer experience, Magento is new to me with ...
Diplonics's user avatar
  • 121
2 votes
1 answer
1k views

SoapFault: looks like we got no XML document - Magento and laravel

I am with a problem in my application Laravel, when i use the SoapClient, for example my_object_soap->login(); returned this error: Fatal error: Uncaught SoapFault exception: [Client] looks like ...
Diego Cunha's user avatar
2 votes
2 answers
905 views

Steps Install Elasticsearch 6.6 for Magento 2

I have many problems when installing Elasticsearch on my server. I'm going to put the steps that I followed in case someone can tell me if I'm missing something or not, please, or if I need to install ...
Despotars's user avatar
  • 475
2 votes
0 answers
534 views

Magento 2 installation problem in Ubuntu using composer

I am extremely new and undereducated with Ubuntu. I am trying to install Magento using composer and getting below error: Problem 1 - Installation request for magento/product-community-edition 2....
user76833's user avatar
2 votes
0 answers
59 views

How do i debug full project in phpstorm via xdebug - magento 2

I have setup magento localhost phpstorm project with xdebug how to i debug full project procedure
prabhakaran7's user avatar
  • 1,067
2 votes
1 answer
3k views

How to give proper file and directory permission for magento localhost [duplicate]

Hi i am using Ubuntu 18 and apache2 when i setup magento 2 on localhost always have file permission problems and also whenever i run sudo php bin/magento setup:di:compile it will cancel all ...
prabhakaran7's user avatar
  • 1,067
2 votes
1 answer
308 views

How to solve magento 2 localhost not working properly

I already run comment sudo chmod -R 777 var/www/html/myproject/* but still not showing how i can fix this??
prabhakaran7's user avatar
  • 1,067
1 vote
3 answers
4k views

Magento2 configure PHPstorm & xdebug and how to use it

I was using sublime and VScode for the development. Recently I heard that PHPStorm is the best IDE for the Magento2 development and using xdebug you can easily debug the issues and write modules. I ...
Jackson Wyss's user avatar
1 vote
6 answers
6k views

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

I set up Magento 2 localhost migrated from the server. but when load frontend showing like this Pub/media CSS was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff ...
prabhakaran7's user avatar
  • 1,067
1 vote
3 answers
4k views

Nginx Magento 2 403

Going through the magento devdocs on setting up magento 2 enterprise. Ubuntu 16.04 PHP 7.1 https://devdocs.magento.com/guides/v2.2/install-gde/prereq/nginx.html This is my issue I have worked through ...
Brandon Irwin's user avatar
1 vote
1 answer
2k views

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

I'm using an Ubuntu / NGINX server configuration. Followed the directions found here: https://www.rosehosting.com/blog/magento-2-with-redis-varnish-and-nginx-as-ssl-termination/ I installed the SSL ...
Jeremy F.'s user avatar
1 vote
2 answers
770 views

Magento is not supported on Windows OS and Mac OS?

I'm trying to upgrade from community edition of Magento 2.3.1 to Enetreprise Edition of M2. I am using docker Image for M2 CE and trying to upgrade to M2 EE. I have tried below ways: https://magento....
Ajwad Syed's user avatar
  • 1,591
1 vote
2 answers
446 views

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

on base ubuntu Iusing php5.6 on xampp using php7 for M2 when run command php bin/magento setup:upgrade giving error: Magento supports 7.0.2, 7.0.4, and 7.0.6 or later. Please read http://devdocs....
Hassan Ali Shahzad's user avatar
1 vote
1 answer
61 views

Is there any simple way to install Magento 2.4.1?

Whenever I am running this command to install Magento 2.4.1 php bin/magento setup:install --base-url="http://192.168.1.128/magento" --db-host="localhost" --db-name=&...
Abhay Sharma's user avatar
1 vote
2 answers
140 views

Magento 2.3 Extensions on Ubunu 18.04

I installed Magento 2.3 successfully on my Ubuntu Maschine and tried to start to make my first own module. I followed this tutorial: https://www.cloudways.com/blog/create-module-in-magento-2/. But I ...
Felix Schönherr's user avatar
1 vote
0 answers
53 views

Magento2: Installing stack on windows subsystem

I am unable to access website on my system I also whitelist domain in hosts file I followed steps to install magento stack using installation Please guide
Paras Arora's user avatar
1 vote
0 answers
8k views

Composer " The "https://repo.packagist.org/packages.json" file could not be downloaded"

I'm using a mac, virtualbox with a bridged connection and Ubuntu server 20.04. I'm following this tutorial to install Magento 2 on this server. https://websiteforstudents.com/install-magento-2-on-...
S-o's user avatar
  • 21
1 vote
0 answers
512 views

For setup vue storefront : when Installing the vue-storefront-api locally, it throws error for vue storefront page on Ubuntu

After installation of vue storefront, when I open page for storefront, display page like something went wrong. And also display console error The connection to http://localhost:3000/__webpack_hmr ...
Khushbu Mehta's user avatar
1 vote
1 answer
156 views

Error in PWA Setup in Magento 2.3.0

We have face error while setup PWA in Magento 2.3.0 with YARN. See screenshot for more detail Magento Version 2.3.0 PHP version 7.2 This error is shown when i try to build using sudo yarn run build ...
Divyarajsinh Dodiya's user avatar
1 vote
2 answers
811 views

Magento 2.3 installation problem

I have installed magento2.3.1 in example.com/test/ folder through commandline.Installed successfully. but when opening url in browser http://example.com/test/ it shows error in backend it shows ...
Asha's user avatar
  • 627
1 vote
2 answers
396 views

Magento 2 how to set proper file and folder permission in localhost ubuntu 18?

i'm using magento 2 in local setup in ubuntu 18 when every time i run cmds php bin/magento s:s:d -f php bin/magento s:up php bin/magento s:d:c the file permission changed how to give proper ...
prabhakaran7's user avatar
  • 1,067
1 vote
1 answer
1k views

Localhost Magento 2 — How to access on network?

I have installed Magento 2 to run locally (127.0.0.1) on a computer running Ubuntu. Eveything works and I am hoping to now be able to access it from other PC's on the network. Can anyone point ...
BDhillon's user avatar
1 vote
1 answer
863 views

Mysql - How to Restore database from '/var/lib/mysql/<database>' ubuntu

I want to restore my database from /var/lib/mysql/<database>. I have tried with this process, 1) First, I stop mysql service. 2) After that, I copy my database from /var/lib/mysql/<...
Emipro Technologies Pvt. Ltd.'s user avatar
1 vote
0 answers
533 views

Magento 2 : X-Magento-Cache-Debug:MISS, over SSL, pages are not being cached by varnish

I have configure varnish with magento 2 with the reverse proxy in apache ubuntu. But, when I see at the headers, I always get the header MISS from the host. So, page is not being cached by the ...
Emipro Technologies Pvt. Ltd.'s user avatar
1 vote
1 answer
574 views

Importing products takes too long on a fresh install of Magento 2 v2.2.4

Backstory: Suddenly, my MySQL database for Magento 2 has failed and been corrupted (This is a development installation and used to enter products data) and I don't have backup of the database except ...
Hassan Al-Jeshi's user avatar
1 vote
0 answers
2k views

setting language to website in magento 2.0.2

I need an italian language site but now is only in english. I tried to change my default language but my site is always in english language. My change was this: Stores -> Configuration -> In the "...
Cuarcuiu's user avatar
  • 121
0 votes
3 answers
4k views

Uncaught Error: Cannot instantiate interface

I'm using Ubuntu 18.04 with PHP 7.3.14. I was in my root directory and entered the command bin/magento setup:install and got this error. What is going on? PHP Fatal error: Uncaught Error: Cannot ...
Nicklas Gilbertsson's user avatar
0 votes
3 answers
4k views

How to set permisions for var/cache folder?

I can't able to remove var/cache folder. I'm using local server and accessed through ssh. How can I remove the var/cache folder by setting permission? I have run chmod 755 -R var/* and getting the ...
Siva's user avatar
  • 1,120
0 votes
3 answers
2k views

Print the index.php code instead of execute in magento 2

I have installed magento 2 in my ubuntu and I tried to run magento setup, it print the index.php code. Help me.
Sakthivel's user avatar
  • 145
0 votes
1 answer
122 views

Add magento 2 module in ubuntu error

Repositories code generation... 1/9 [===>------------------------] 11% < 1 sec 117.0 MiBsyntax error, unexpected token "&", expecting "function" or "const"#0 /...
Noor Mohamed's user avatar
0 votes
2 answers
753 views

Magento 2 Class Mageplaza\LayeredNavigation\Model\Category\Attribute\Backend\Attributes does not exist

I have the following error when trying to access Magento 2. Class Mageplaza\LayeredNavigation\Model\Category\Attribute\Backend\Attributes does not exist This happen after removed Porto Theme. ...
Chamssoudine Bacar's user avatar
0 votes
1 answer
413 views

Magento2 - How can I setup Vue StoreFront in my local Magento2.4 version

How can I setup Vue StoreFront in my local Magento2.4 version I have followed below steps https://docs.vuestorefront.io/guide/cookbook/setup.html#_2-recipe-2 From where can I get consumer key, ...
Hitesh Koshti's user avatar
0 votes
1 answer
189 views

Install the Magento 2.4.1 archive on local computer (Lubuntu 18.04.5)

I followed below link. https://devdocs.magento.com/guides/v2.4/install-gde/prereq/zip_install.html I set one user permission. But... When I typed 'sudo composer install' in magento root folder. $sudo ...
pullidea-dev's user avatar
0 votes
1 answer
76 views

How to install magento2.3.5-p1 in ubuntu20.04

I want to install magento2.3.5-p1 on ubuntu 20.04 LTS so can anyone having idea of how to do this please share with me. Thank you in advance.
Deep Shah's user avatar
  • 535
0 votes
2 answers
467 views

When access to my address http://localhost.com/magento2 i got an error

At final phase to install Magento 2, When i went to access my address http://localhost.com/magento2 i got an error cause of index.php file, my address does not read the file as php file so i got the ...
S J's user avatar
  • 1
0 votes
1 answer
24 views

Error while trying to install in AWS Ubuntu Instance

I have properly setup Magento 2.3.4 in my localhost. But whenever I try to deploy this to AWS Uuntu Instance I get the following error. [ERROR] Magento\Framework\Exception\LocalizedException: Area ...
Magento Learner's user avatar
0 votes
1 answer
298 views

Mysql modify column not working [closed]

What I wanna do is to update the field comment_author and change the type from tinytext to varchar(100) For some reason it complains about "Invaild default value for 'comment_date'" Why does it ...
Nicklas Gilbertsson's user avatar
0 votes
1 answer
307 views

Cannot setup Magento 2.3 in local due to autoload error?

I have done manual backup of my site and setup it on local bit getting the below error: Autoload error: Vendor autoload is not found. Please run 'composer install' under application root directory. ...
MagentoDev's user avatar
0 votes
2 answers
106 views

Magento 2 + Permissions issue in Ubntu 16.04

Every time i run setup upgrade or static-content deploy command, I need to assign permissions to var, generated, pub/static etc in Ubuntu. Is there any permanent solution for that so every time we ...
Yogesh's user avatar
  • 1,493
0 votes
1 answer
1k views

Why we rewrite urls in magento 2?

When I deployed magento project from one server to another server css and js didn't loaded. So I google and got this answer which worked for me. <Directory /var/www/html> Options ...
Ramesh KR's user avatar
  • 836
0 votes
1 answer
175 views

Magento 2 Ubuntu Xampp/Lampp php bin/magento setup:upgrade Show Warning

Magento 2 Ubuntu Xampp/Lampp setup:upgrade Show Warning php bin/magento setup:upgrade Warning As: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib /php/20160303/php_intl.dll' ...
matinict's user avatar
  • 1,519