Questions tagged [magento]
Magento is an open source e-commerce web application.
233
questions
30
votes
8
answers
3k
views
Deploying new code live
What's the best practise to deploy new code on a live (e-commerce) site?
For now I have stopped apache for +/- 10 seconds when renaming directory public_html_new to public_html and old to ...
11
votes
2
answers
33k
views
Add trailing slash when it's missing in nginx
I'm running Magento on Nginx using this config: http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/configuring_nginx_for_magento.
Now I want to 301 all URLs without trailing slash ...
10
votes
2
answers
63k
views
nginx recv() failed (104: Connection reset by peer) while reading response header from upstream
I have recently upgrade my magento from 1.5 to 1.9 and when ever I add a certain product to basket, I started to receive this error: 502 Bad Gateway
There were no log entries in the var/log/ folder:
...
8
votes
6
answers
3k
views
How can I keep Apache from falling over?
I have a pair of servers hosting a single Magento ecommerce site with moderate traffic (60k page views per day reported from google analytics, I think about 80k reported on the server itself). The ...
7
votes
2
answers
4k
views
Magento hosting on a budget
I have to do a setup for Magento. My constraint is primarily ease of setup and fault tolerance/fail over. Furthermore costs are an issue. I have three identical physical servers to get the job done. ...
5
votes
2
answers
6k
views
Reclaim disk space after deleting Magento MySQL database
I needed to reclaim some disk space so I removed an old Magento database from my server. The database size was around 16 GB. I was surprised that once the database was deleted, it did not really free ...
5
votes
4
answers
14k
views
100% CPU when doing 4 or more concurrent requests with Magento
Currently I'm having trouble with a server running Magento, it's unbelievably slow.
It's a VPS with a few Magento installations on it used for development, so I'm the only one using them. When I do 4 ...
5
votes
2
answers
5k
views
Optimizing MySQL for small VPS
I'm trying to optimize my MySQL config for a verrry small VPS.
The VPS is also running NGINX/PHP-FPM and Magento; all with a limit of 250MB of RAM.
This is an output of MySQL Tuner...
-------- ...
5
votes
2
answers
2k
views
Solr Search - java.util.Map$Entry cannot be resolved
I have Solr 3.6.2 running and powering the search for a Magento Enterprise site, and it's all working well, with no errors on startup etc.
However when trying to access the following admin pages:
/...
5
votes
2
answers
7k
views
mysql becomes unresponsive at same time every day
My server goes down every day at same time.
I found that the issue was due to mysql.
I tried show processlist;
and found that data base was entering in to sleep mode. I saw there was so many inserts ...
4
votes
3
answers
2k
views
Varnish only cache assets from single session
Currently I manage to configure varnish to cache items from 1 user, but the when the second users comes in varnish fetch another asset from Apache.
How can I cache static assets behind magento ( ...
3
votes
3
answers
948
views
IP address redirects to www.IP address [closed]
I have a Google Cloud Compute instance running a Bitnami Magento stack. For some strange reason if I try to browse to the site via the IP address it prefixes the IP address with www. so fails. The ...
3
votes
1
answer
5k
views
Redis server high cpu debugging strategies
Recently, we have been noticing CPU spikes on our production environment caused by redis which can be seen below:
To combat this issue, I have been restarting the redis server about twice a day :( ...
3
votes
2
answers
16k
views
Can't gzip some JS and CSS files
I am optimizing a magento store, and some JS and CSS (compiled and minified in a MEDIA folder) aren't being served gziped as they should.
All pages are gziped (ex. this HTML page) but some content ...
3
votes
2
answers
2k
views
Can't access directory .well-known in a Magento 2.4 multistore setup
I'm trying to set up a let's encrypt cert with a store view in Magento 2.4.1, but I can't access the .well-known/acme-challenge directory.
In the Apache 2.4 virtual host, I have:
<VirtualHost>
.....
3
votes
3
answers
5k
views
Magento Product Images not showing up in backend
On our Magento store when we try to we go to the product page in the admin section to upload images, we see that the images which we already have there on the front end are missing and there is no ...
3
votes
3
answers
6k
views
Magento, NGINX, PHP-FPM, APC, MEMCACHED, 16gb Ram CentOS, Spiking PHP-FPM to 100% CPU
I have been trying to resolve my issue of spiking cpu caused by php-fpm processes. I've reduced the php-fpm config settings to:
pm = ondemand
pm.max_children = 12
pm.start_servers = 2
pm....
3
votes
1
answer
857
views
Best Way to store sessions in a High Availability / High Performance way in Multiple Server Environment
I have an application (Magento) that has an abstracted session storage layer. I'm trying to visualize the best way to store sessions.
mysql Database? I'm thinking a dedicated database with a very ...
3
votes
2
answers
2k
views
Loopback connection via PHP's getimage size crashes server (Magento's CMS)
We were able to trace down a problem that is crashing our NGINX server running Magento until the following point:
Background info: Magento Backend has a CMS function with a WYSIWYG editor.
This ...
2
votes
4
answers
8k
views
Which should I put on my bigger machine? Magento Webserver of Magento Database?
I am about to launch a new Magento website and I was interested in your feedback on this issue? Do you think the Magento PHP code is slower or the Magento MySQL operations are slower? Which should I ...
2
votes
3
answers
373
views
Magento CE PCI Compliance
We are currently trying to achieve PCI compliance using Trustwave's vulnerability scanner.
The Magento version is 1.5.1.0, running on CentOS 5.
We am down to the last issue according to the PCI ...
2
votes
2
answers
2k
views
Amazon EFS as code repository for auto-scaled EC2s
tl;dr: I need to set up a fast automatic sync from EFS to multiple EC2s
I've set up an EC2 Auto-Scaling Group in AWS and I'm looking for the best way to manage code deployments to my instances, with ...
2
votes
1
answer
4k
views
HTTPS:// is not working on Nginx
My domain is: http://indiasaplings.com/
I ran this command: sudo certbot --nginx -d indiasaplings.com -d www.indiasaplings.com
It produced this output:
IMPORTANT NOTES:
Congratulations! Your ...
2
votes
1
answer
120
views
IP change to Domain Name in Ubuntu
I am currently setting up Magento 2.2 for the company I am working with. I set up most of the things and installed the Magento package on the IP Host. I can access it and it kind of works fine until I ...
2
votes
1
answer
4k
views
Multiple magento sites running under different users in nginx
I have written a script that copies magento files and database from our production server and tries to configure it on a subdomain on our testing server.
Each testing site has:
- unique subdomain
- ...
2
votes
2
answers
2k
views
Magento subpages give 404
I just restored our Magento website on a different server running apache2 on ubuntu. The home page pulls up just fine but if I try to go to any other page, I get a 404.
Permissions
All files are 660 ...
2
votes
2
answers
6k
views
Avoiding Varnish Hitting Magento Cookies - VCL
Hello to serverfault users,
I would like to kindly ask someone to help me configure varnish for magento.
Using command: varnishtop -i TxHeader -I Cookie , following info show:
TxHeader Cookie: ...
2
votes
1
answer
311
views
Magento/Solr - where to run the Solr daemon on a 2 server system?
I got almost no experience with Solr, so please bear with me, if the answer is obvious:
In a Magento Enterprise 1.11 shop system (about 30k products), where one machine mainly serves the web requests ...
2
votes
1
answer
9k
views
Ajax "POST" not working on HTTPS/SSL Nginx
I moved my magento store from non SSL to SSL (webserver: Nginx)
The problem : The site's JS scripts ( Multiple Ajax function with "POST" ) has stopped working! Requests are fine but not able to get ...
2
votes
1
answer
1k
views
Magento with nginx: different config rules for admin section
I'm setting up a Magento store with nginx, and the store is working great. However, now I would like to set a higher client_max_body_size value (let's say 100m), but only for the admin section.
I've ...
2
votes
3
answers
4k
views
Memcached - doesn't seem to be working
my local.xml
<session_save><![CDATA[files]]></session_save>
<cache>
<backend>memcached</backend>
<prefix>MAGE_</prefix>
<memcached>
<...
2
votes
2
answers
5k
views
magento with nginx frontend and REST API url
We have magento configured with nginx, we are trying to use http//magentohost/api/rest to manage customers, but when we try to access that url i get 404.
Just wondering anybody proper configuration ...
2
votes
2
answers
303
views
Magento - Users unable to login from corporate networks with Bluecoat / F5 Load balancers
Hoping someone has come across this issue before with Magento and corporate clients.
We have two clients for our Magento site who both have their internal networks setup using bluecoat security ...
2
votes
0
answers
2k
views
MySQL Temporary table insert hangs and locks other queries
I have a MySQL 5.7.30 as storage for a Magento 2 shop. During the magento reindex process (a PHP process that transforms data into various tables for faster retrieval), some temporary tables are ...
2
votes
0
answers
473
views
Nginx: Serving magento site at different root with subdirectory inside other magento root
After many hours of googling and testing I have yet to get this to work. I have a functioning magento install at /srv/site1/htdocs . I have another magento install at /srv/site2/htdocs . I need site2 ...
2
votes
0
answers
979
views
“The location constraint is not valid” When Creating Azure VM
I've just signed up for an Azure account to test it out as a possible hosting solution, but when I try and create a VM from the VM Depot I seem to get the error "The location constraint is not valid", ...
2
votes
0
answers
1k
views
Error 499: Varnish is working how load balance Nginx Webservers
I created a solution to host a magento store with high traffic (> 500 user simultaneously) on AWS. Too often HTTP 499 error appears in the access.log the Varnish. When this happens users who have such ...
2
votes
2
answers
4k
views
High Wait Time from Time To First Byte with Magento + Nginx
I am having issue with high TTFB time, especially wait time after send.
Webpagetest shows the TTFB is almost 4 seconds.
Pingtom specifies the wait time is the bottleneck here
Here is my setup for ...
2
votes
0
answers
2k
views
URL rewrite doesn’t work for magento
Web Server Rewrites in admin is set to yes.
Secure and unsecure URLs do not have index.php in them.
mod-rewrite is enabled and works
I tried all combination with RewriteBase / in htaccess
Flushed cash ...
2
votes
1
answer
2k
views
VCL - configuration for Magento and Varnish 3.0.2
I would like to kindly ask if there's someone who can help me configure Varnish for Magento
to reach far more hits. My current ratio from varnishstat is:
cache_hit=271
cache_miss=926
I'm kindly ...
1
vote
3
answers
21k
views
Nginx unknown "https" variable
I've woken up this morning to find that a new Nginx server I've been teaching myself with is no longer serving websites. It looks like this is because Nginx is no longer running. When I try to start ...
1
vote
1
answer
4k
views
Apache2 Virtual Host auto redirects to https
I have ubuntu 16.04, I have setup virtual host in apache2 mysite.dev in file /etc/apache2/sites-available/mysite.conf
<VirtualHost *:80>
ServerName mysite.dev
ServerAlias *....
1
vote
3
answers
3k
views
Several Cron at same minute
I'm installing a bunch of Magento shops on a webserver. Every website has a cron job that Magento uses to update its stuff -- it takes 3-4 seconds to complete. The instructions tell to set it to run ...
1
vote
4
answers
339
views
please take a look at my server's ram usage
i am a noob with servers. I have a centos5.5 vps with 512mb ram. My goal is to have it host just one magento store. I've installed Magento on the server without any control panel, by just installing ...
1
vote
2
answers
2k
views
Memory adjustments for magento with php5-fpm , Nginx, APC, Mysql
I am using magento with php5-fpm , Nginx, APC, and Varnish. When there is varnish hit, the load time is very good. But on varnish miss, the site takes toomuch time to load. I have seen through htop ...
1
vote
2
answers
1k
views
How to make Swap work? CENTOS 5.7
I've got a Centos 5.7
running Magento with nginx.
I also got there 10GB of Swap.
But the os never use it.
How can i make it work?
1
vote
1
answer
560
views
Website not working if www is in URL [duplicate]
I am forcing my webserver to rewrite a none www URL to www, e.g. https://example.com to https://www.example.com, via .htaccess.
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\. [NC]
...
1
vote
2
answers
2k
views
Siege session cookie
I'm trying to use Siege to load test a Magento site. However, it does not appear that Siege makes requests with session cookie returned from previous request. For example, in my urls.txt file:
http://...
1
vote
3
answers
3k
views
How to reduce server response time for a magento e-commerce site
We have an e-commerce site developed using magento 1.9.0.1, we could not able to reduce server response time to below one sec, (as per google page speed testing tool we have now 1.4 sec) we have tried ...
1
vote
1
answer
6k
views
NGINX not serving CSS & JS
NGINX will not serve CSS or JS files to the browser
Link to page (magento) http://836237.vps-10.com/
Access log shows:
[01/Dec/2013:16:55:17 +0000] "GET /js/varien/form.js HTTP/1.1" 304 0 "http://...