Questions tagged [ubuntu]

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

Filter by
Sorted by
Tagged with
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 ...
0 votes
3 answers
57 views

issues when installing magento 2.4.6 on WSL2 ubuntu 22.04

Ok, let's move on. I am new to this and I am trying to install magento 2.4.6 on a local WSL server with Ubuntu 22.04, I have apache2, php8.1 and 8.2, composer, mysql and elasticsearch 8 installed. I ...
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 ...
0 votes
3 answers
2k views

Magento 2 Installation error in Ubuntu system

In Ubantu System xampp server using install the Magento 2 erorr! 1.Magento 2.3.4 admin penal does not open gives Error 404 . 2.When I open the terminal and hit the magento command like: php bin/...
0 votes
3 answers
1k views

magento2.2.3 - Can't create directory

I am using magento 2.2.3 in ubuntu 16.04. I have transferred a server copy to my local pc. I am having following error RuntimeException: Can't create directory /var/www/html/new_utshob/generated/code/...
0 votes
1 answer
1k views

Problem with installing mcrypt on PHP 7.3.13 Ubuntu

I have moved my magento 2 project from one vps server to another. So im currently setting up all the PHP modules. But there seem to be some problem with the mcrypt module. This is what I have been ...
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 ...
0 votes
0 answers
21 views

Magento 2 Grunt Install Error on Ubuntu LEMP

npm install -g grunt-cli Showing Error on Grunt Install Error on Ubuntu LEMP: npm notice npm notice New major version of npm available! 8.5.5 -> 9.6.7 npm notice Changelog: https://github.com/npm/...
0 votes
1 answer
123 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 /...
0 votes
0 answers
29 views

Deploy a magento2 existing project in a virtual machine with ubuntu to be able to run in localhost

I have an existing Magento2 project hosted on a server, and now I want to import it to my virtual machine. Here are the steps I have taken so far: 1-Created a virtual machine and installed Apache, ...
0 votes
3 answers
37 views

Magento layout file not called?

This is my Controller Index.php <?php namespace Hikmadh\Menu\Controller\Adminhtml\Product; class Index extends \Magento\Framework\App\Action\Action { /** @var \Magento\Framework\View\Result\...
0 votes
2 answers
758 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. ...
10 votes
3 answers
40k 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?
0 votes
2 answers
185 views

Installation of Magento 2 in Ubuntu loaclhost

Hi I have been trying to install Magento 2 on my Ubuntu localhost. I followed the below-mentioned command. sudo composer create-project --repository-url=https://repo.magento.com/ magento/project-...
0 votes
1 answer
673 views

how can we install Magento2.4 on AWS EC2 Instance?

How we can install Magento 2.4 on EC2 Amazon Instance. I am a newbie and new to coding, it will be a great help if someone can tell me the exact steps and commands I have to run in order to install ...
0 votes
4 answers
5k views

Web Setup Wizard installation of "magento/composer-root-update-plugin" failed

In final stage to install Magento2 version 2.4 by the following command i got an error. this is my command: ./magento setup:install --base-url=http://localhost.com/magento2 --db-host=localhost --db-...
1 vote
2 answers
397 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 ...
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 ...
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, ...
0 votes
0 answers
67 views

How to setup multiple websites, stores and store views in magneto 2?

Create a root category - Catalog-> Categories-> Add Root Category Create a website, store and store view - Stores-> All Stores 2.1 Create Website -> Create Website (Ex- Berlin Website)...
0 votes
2 answers
216 views

How to setup Cronjob For Magento in AWS (Ubuntu OS)?

Recently i had moved my website from Bluehost to AWS. Now i have to create cronjobs for magento in AWS (Ubuntu OS). please help me how to setup the cronjobs in Linux and if possible please share me ...
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 ...
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=&...
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.
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.
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-...
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, ...
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 ...
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 ...
0 votes
1 answer
155 views

Which files & folders do I replace in order to upgrade Magento 2 manually?

Which files and folders need to be replaced in the Magneto root folder in order to upgrade Magento 2 Manually? I am running a stock copy of Mangento 2.3.5 on a Ubuntu 18.04 test server. I am trying to ...
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.
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 ...
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 ...
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
0 votes
1 answer
750 views

Installing PHP Modules in Docker for 2.3.4 Upgrade

I've been working on upgrading my local environment from 2.2.10 to 2.3.4, but can't figure out how to install the extra PHP modules for the new version (ie: sodium) using Docker. I was previously ...
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 ...
2 votes
0 answers
275 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 ...
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 ...
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 ...
0 votes
1 answer
363 views

magento 2 :- Installation stuck at 75% on ubuntu OS

Details of Console Log:- Starting Magento installation: File permissions check... Required extensions check... Enabling Maintenance Mode... Installing deployment configuration... Installing ...
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 ...
0 votes
1 answer
2k views

Magento2.3 files permissions inside docker container (ubuntu)

i am beginner in Magento 2.3, and i encountred an issue when i tried to enable my first custom module: bin/magento module:enable Mageplaza_HelloWorld I'm using docker apache container to run my ...
0 votes
0 answers
3k views

Apache Virtual host setup configuration in localhost for multiple magento sites

I have two Magento 2 instances in my Virtualbox ubuntu server. 1st one is new installation magento2.3 located at /var/www/html/, it is working fine and accessible from the browser using IP 127.0.0.1 ...
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. ...
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 ...
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....
0 votes
1 answer
279 views

How to install japanese kuromoji analysis plugin in ubuntu 16?

I am using elasticsearch. I have the Japanese data. I want to create index on Japanese data. As I have searched how to install Japanese kuromoji analysis plugin in ubuntu 16, there are lot of sites ...
0 votes
1 answer
8k views

New Magento 2, nginx config error 403 forbidden

After my installation of magento2 on Ubuntu, I get this error on localhost http://localhost/magento2/ - 403 forbidden I have to change the port to any other like 8080 in file /etc/nginx/sites-...
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 ...
2 votes
1 answer
151 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 ...