Questions tagged [server-setup]

All issues related to LAMP stack for your Magento installation. This can include Apache, Nginx, Lightspeed or any other web server. There is a tag for MySQL so I would reserve those questions for more specific database questions. This can also include vhosts, tuning, tricks and tips.

Filter by
Sorted by
Tagged with
0 votes
2 answers
2k views

Magento Cloud How to Set Access-Control-Allow-Origin

In Magento Cloud hosting, how to add following configuration, Header set Access-Control-Allow-Origin a.com When I login to Magento Cloud I have only read access to the server files. Is there a way ...
0 votes
1 answer
1k views

Magento2.3: How to send a file using SFTP connection?

I have successfully connected SFTP in magento 2 by referring the below URL: How to connect SFTP in magento 2 Now, I want to send a file to that server. In order to send a file, how can I proceed? ...
2 votes
3 answers
3k views

Magento 2: Ram memory issue

I have Magento2 website on production mode. And i have 8gb ubuntu 16.04 server. But i have checked ram memory uses 99% so my website is working slow. Please any one tell me why used my memory 99%? ...
0 votes
0 answers
203 views

Mysql Server Is restarting again and again due to High Memory usage

I have 4 vCPU and 6GB of memory in my server and red hat Linux distro with magento 1 configured and was working well suddenly it started to restart mysql server again and again. I checked the usage ...
0 votes
3 answers
4k views

Install issue permission and htaccess

I'm trying to install Magento 2. I run this for permission file and folder chown -R admin:www-data /var/www/magento2 find /var/www/magento2 -type f -print0 | xargs -r0 chmod 640 find /var/www/...
0 votes
1 answer
2k views

CSS / HTML / JS not updating XAMPP (local development) - Magento 2

I've tried to install Magento 2 locally using XAMPP. This works fine, except for the fact that when I alter my CSS, HTML, or JS, XAMPP won't get the updated files. It just takes the file I initially ...
0 votes
2 answers
83 views

PageSpeed - How to reduce Reduce initial server response time and Eliminate render-blocking to increase page speed

In gtmetrix, I am facing high initial server response time and render-blocking resources.
3 votes
1 answer
1k views

Magento Fatal Error: Call to undefined function mcrypt_module_open() using WampServer

I am using Magento 1, installed on a Windows 10 php(7.2) WampServer. I tried to add this extension=php_mcrypt.dll in php.ini, but continued to receive the error. How to add extension=php_mcrypt.dll ...
1 vote
1 answer
2k views

What is the most battle tested official goto configuration for Magento1 using nginx?

By doing some googling I've found this as the only documentation that seemed "official" regarding Nginx. Is it really that the official Magento1 Nginx configuration only sits in this quite &...
0 votes
3 answers
2k views

How to setup Access_Control_Allow_origin & From origin blocked by CORS in Nginx for Mageno 2 multi-Website store?

My main website store URL: test.website.in Second website store URL : grocery.website.in Initially, i developed multi-website in the localhost, and its working also but after move to live server main ...
1 vote
1 answer
199 views

Magento 2.3.4 - 5 Not working with PHP 7.2 - 7.3 but working fine on PHP 7.1

Could someone please help me ? I have newly setup VPS server, and as per Magento 2 requirements, I need PHP 7.2 or 7.3 to run Magento 2.3.4 - 5. I'm getting an error when I run Magneto 2.3.4 on PHP 7....
0 votes
1 answer
1k views

PHP 7.0.9/NGINX 1.11.3/Magento 2.0 Setup gives blank page

This is my first time posting here and I am hoping someone can help me out, I am a little stumped. We have a Linux CentOS 7 server with PHP 7.0.9 and NGINX 1.11.3 installed. We are trying to install ...
0 votes
1 answer
592 views

unable to access newly created domain in nginx on ubuntu

recently was setting up Magento in my local system, I did installed MariaDB, nginx and php7.1. I did created new files in sites-available and did symlink as well. And I did run nginx -t there were no ...
1 vote
2 answers
467 views

How to set magento 2 sudo chown -R username:www-data

I'm using AWS EC2 ubuntu 22.04 to install magento2.4.6, but I'm confused about sudo chown -R user_name:www-data ., what should the user_name be, ubuntu or root. The default ssh user of ubuntu 22.04 is ...
0 votes
1 answer
2k views

Magento 2.4 Error flushing Varnish server. Host: "127.0.0.1". PURGE response code: 405 message: Not Allowed after running upgrade command

I enabled varnish cache from admin(magento 2.4), then I ran this command bin/magento setup:config:set --http-cache-hosts=127.0.0.1 Now I can't run the upgrade script. I'm getting this error: Error ...
1 vote
1 answer
2k views

How to force Magento Cloud to recompile?

After pushing a new code to my Magento Cloud staging environment, the JS stopped working in the backend, I don't run compilation commands out of the Magento Cloud pipelines, but since the deployment, ...
2 votes
2 answers
556 views

Why my Magento Cloud is returning 502?

I'm trying to build my new environment but I'm receiving error 502 every time. When I check the logs in the Magento Cloud panel I don't have the end of the file, it seems to be too long to show. Do ...
1 vote
2 answers
238 views

how can we increase performance of bulk product save in magento 2 api

when we test performance of bulk product create api request using Apache 2 Benchmark, it takes to much time for return response of request. I tested bulk api requests with 200 total number of requests ...
0 votes
1 answer
191 views

Running security patch isn't working

I tried multiple times running patch -p1 ACSD-47578_2.4.4_2.4.5_COMPOSER_patch.composer.patch, even after running full server build on Magento root, but it seems to be stuck as seen in the image below....
1 vote
2 answers
48 views

Sizing for Store with 36k Products and 220 Attributes

how should I dimension my server for a shop with 36,000 products (7k configurables)? The products have up to 220 attributes, of which about 60 are displayed on the PDP. 30 attributes are searchable. ...
0 votes
0 answers
1k views

Warning: require(vendor/autoload.php): Failed to open stream: No such file or directory in

Below is the error I get in store frontend. Warning: require(vendor/autoload.php): Failed to open stream: No such file or directory in /home/magento/web/mymagentostorename.com/public_html/poms/libs/...
0 votes
1 answer
272 views

Magento 2 - Not Receiving Email After Order

I have this demo Magento 2 store (ver. 2.4.4) built on a Debian server and for some reason I'm not receiving emails after I make an order. In Stores > Configuration > Sales > Sales Emails I ...
1 vote
4 answers
14k views

Missing PHP Extension bcmath

Getting "Missing PHP Extension bcmath" error while doing Readiness check while doing Magento 2 setup. Even though, I have installed latest PHP bcmath - 7.0 Please help me to resolve this.
1 vote
3 answers
742 views

Magerun Unable to find the wrapper "phar"

I was able to run Magerun and suddenly is stopped working, and this error message showed up. Warning: file_exists(): Unable to find the wrapper "phar" - did you forget to enable it when you ...
3 votes
5 answers
8k views

php bin/magento setup:upgrade

when I install a new theme I do this commands via Putty: php bin/magento setup:upgrade how can I fix this problem? I'm working on Magento 2.1.0 PHP Warning: Uncaught Exception: Warning: ...
0 votes
2 answers
206 views

Magento 2 on Multi Server Architecture vs CI/CD

I have set setup of magento on multi server in AWS with loadbalancer - when there is cpu load of more than 80 percent new server is auto created with Base server images on specific time I am facing ...
0 votes
2 answers
571 views

unable to update extension from composer

I am trying to update one of my payment gateway extension through composer and the command is composer update razorpay/update But I am getting the below errors Problem 1 - guzzlehttp/guzzle 7.2.0 ...
0 votes
3 answers
509 views

What are System Requirements for Magento 2.4?

I am using ubuntu 18.04 with PHP 7.3 and MySQL 5.7 Magento 2.3.5 is working fine what are requirements for Magento 2.4
0 votes
1 answer
929 views

RabbitMQ doesn't have any queue, how to solve it?

I have RabbitMQ installed and configured, but when I run this command below I receive a message saying No items. python3 /usr/bin/rabbitmqadmin --host rabbitmq -u username -p ...
1 vote
2 answers
492 views

How to check Log4j in Magento installation?

I don't know if my Magento server is infected by Log4j, how could I check it?
1 vote
1 answer
2k views

Log4j CVE-2021-44228 Magento 2.3 / 2.4 with ElasticSearch

Has someone checked if a Magento 2.3/2.4 installation with ElasticSearch is vulnerable to the Log4j exploit CVE-2021-44228? I've checked for the relevant .jar files in the ElasticSearch Apache CVE-...
0 votes
1 answer
281 views

Why Magento 2 Cloud integration and development environments are very slow?

My Magento 2 installation on production and staging is working well, but on development and integration environments the same code is very slow. how could I find the issue?
0 votes
1 answer
255 views

Magento Cloud space error

I have a Magento Cloud instance with 50GB of space, but my Magento is running out of DB space, how is that possible?
0 votes
1 answer
572 views

Is it possible to run Elasticsearch and Magento 2 on different server?

I have a question and still considering it now. I have Magento 2.4.2 running on cloud hosting but in the way I found an issue with installing ES. cause ES not support install on shared/cloud hosting. ...
2 votes
2 answers
1k views

Elasticsearch Regular Search Returns No Results

I've recently upgraded my Magento to 2.4 which necessitates the use of Elasticsearch. Using the search function always shows the message "Your search returned no results". However using &...
9 votes
6 answers
26k views

Magento /setup/ page is blank after installation (possible causes)? [closed]

When I'm tryin to install Magento 2 in the server it shows a blank page on installation(/setup/#/landing-install), like this image: Please suggest, what could be the issue?
0 votes
2 answers
546 views

How to zip all my Magento 2 files on my server?

How could I zip all my Magento files excluding non-required to a local setup? I usually run this command to get all the files. But, it takes too long and the files are too heavy. zip -r magento2.zip ./...
1 vote
6 answers
9k views

Magento 2.3 : Serving site from pub, now images get 404

My original installation of v2.3.0 was working fine. All images showed up for categories. I decided (after setting up a lot of categories and images for those categories) to serve the site from pub. ...
0 votes
2 answers
81 views

How to Fix 500 Internal Server Error in Magento 2?

500 error in Magento 2 I faced at the time installation or up gradation of Magento, or while I backup the system on the product page or login admin page.
1 vote
2 answers
725 views

How to know if you're running out of space with Magento Cloud?

Sometimes I got many issues related to space in my Magento Cloud, then I clean up logs and database reports and it starts to work again. How could I measure it?
2 votes
1 answer
2k views

How to synchronize Magento Cloud environments?

I have three environments, Production, Staging, and Integration, I'd like to sync Integration DB and Code as its parent environment, which is Staging. How could I sync the database and the code?
0 votes
0 answers
155 views

Magento2. client denied by server configuration on hosting error report

client denied by server configuration on hosting error report When I check Cpanel errors I can see below errors appear lot of time AH01630: client denied by server configuration: /home/b/public_html/...
0 votes
1 answer
437 views

How to detect CRON issues from the server side?

It seems like we're having CRON issues, I usually check it via this command below. ./n98-magerun2.phar sys:cron:history How could I check it more precisely?
0 votes
2 answers
1k views

Magento2-Fatal error:Class 'IntlDateFormatter' not found in /vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 116

Transfer site from server to dedicated server. I am getting Fatal error: Class 'IntlDateFormatter' not found in /home/uscvuy32bk5d/public_html/vendor/magento/framework/ObjectManager/Factory/...
2 votes
0 answers
340 views

Custom module works on localhost but not on server | Magento 2

I have a simple custom module. It works fine on localhost but not on server. Frontend test route get a 404. Backend button action exist but does not works. I have no server log and no magento log. I ...
0 votes
1 answer
27 views

Checkout cart suddenly is not working anymore

In the middle of the day after 2 months without deploying anything, my Magento 2 cart is not working, everyone that tries to go to the cart account sees an error 500, my server said it's probably a ...
2 votes
1 answer
977 views

Magento Nginx: cache first page request only (no session) for super speed

In an effort (and test) to make Magento fly I was playing with microcaching in Magento and came up with the following. The idea is to: detect a first visit and return visit. A return visit may ...
0 votes
1 answer
223 views

Magento 2: Server error (5xx)

Google Search Console notifies an error as shown in the screenshot. How to ensure such errors do not occur so the search engines can crawl and access the pages on the site?
6 votes
6 answers
12k views

Image CAPTCHA requires FT fonts support

After entering my username and password into the admin uri of magento I get the following error in system.log [2017-10-09 00:00:00] main.CRITICAL: Image CAPTCHA requires FT fonts support [] [] there ...
0 votes
1 answer
271 views

Magento 2 cronjob doesn't seen to work

I'm using Magento 2 v 2.3.3 with Ubuntu. I have cron job activated but for some reason doesn't it seem to work and my website is taking up alot of server memory. On my var/lib/mysql it's taking up ...

1
2 3 4 5
8