14 votes
Accepted

Magento 2: Static files are present but shows 404

First, make sure apache “rewrite_module” is enable and then restart the server. If this hasn't worked. Then do following steps: Edit the file /etc/apache2/apache2.conf. Find this code: <...
D Singh's user avatar
  • 1,144
11 votes

Magento 2: Static files are present but shows 404

I have same issue and its occurs when i am was deleted pub/static folder. And its Resolved after placing missing .htaccess file in static folder <IfModule mod_php5.c> php_flag engine 0 </...
Ravi Oza's user avatar
  • 478
11 votes

Magento 1.9 multiple websites on different domains

You don't need to have multiple directories for multiple domains if you are using single magento instance to fulfill your requirements. Step 1: Point all domains to Magento root directory, i.e. ...
Aman Srivastava's user avatar
7 votes

Magento setup directory cannot be accessed

Appending /setup to the install URL should resolve the issue. In your case that would be http://localhost/~myusername/magento/setup
Andrew B's user avatar
6 votes

ERR_TOO_MANY_REDIRECTS error when setting up HTTPS

Just to close this out, a good friend of mine suggested I try this, and I am very pleased to say it worked. Perhaps it will help someone else who faces the same issue: In .htaccess file, add these ...
Nick Hoare's user avatar
5 votes
Accepted

Where does Magento 2 Generate Image URLs

Turns out the caches weren't entirely cleared. The system was running with the default full page caching enabled, and I had failed to clear the var/page_cache folder.
Alana Storm's user avatar
  • 44.4k
5 votes
Accepted

Nginx or Apache for Magento 2.x

I'd go for Nginx, because this is faster then Apache. There are several benchmarks on the internet about the differences and the pros and cons of them. I'd suggest to read some of them, like this one ...
Arjen Miedema's user avatar
5 votes

Magento 2 : Admin url 404 not found

Fileally After Rebuilding Server again installing php 7.1 mysql marine apache2 got the solution Source : After successful installation, admin URL is returning a 404? I was also facing the same ...
Shaik's user avatar
  • 181
4 votes

Magento2 with Varnish 4 and Nginx as SSL termination ends in mixed content

If you're having issues with Magento not detecting the HTTPS redirect, you can add this to your the Magento .htaccess file located in your docroot: ############################################ ## ...
jaywilliams's user avatar
4 votes

Magento2 with Varnish 4 and Nginx as SSL termination ends in mixed content

Final I found the solution. Replace the Base URL from http://example.com/ to //example.com/ CAUTION! The change is not allowed in magento2 admin. I made it in MySQL in table cron_config_data and ...
George A.B.'s user avatar
4 votes

ERR_TOO_MANY_REDIRECTS error when setting up HTTPS

Check if your https is properly configured, eg. here https://www.sslshopper.com/ssl-checker.html Clean Magento cache. Clean your browser cache and Magento domain cookies. Try it on "private" browsing ...
A.Maksymiuk's user avatar
4 votes

CORS error on Magento 2 with cloudfront

you have typo in headers: Header set Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS' always" Header set Access-Control-Allow-Headers "Host, Content-Type, Origin, Accept" probably must ...
MagenX's user avatar
  • 3,820
4 votes

How do I properly debug the root cause of 503 errors produced by Varnish?

It's a good idea to look at the varnishlog output. You pasted client-side varnishlog output, but the reason why fetches fail is reported in the backend-side varnishlog output. The part where the ...
Thijs Feryn's user avatar
  • 1,061
4 votes

Magento 2.4 HTTPD Memory Leak | Allowed memory size of 792723456 bytes exhausted

@hunter We ran into the same thing (next to some others). Upraded to 2.4 and the VPS would kill processes via OOM killer because the RAM Magento was consuming was unstoppable. Nothing worked until I ...
Carol Beer's user avatar
3 votes

Nginx or Apache for Magento 2.x

neither one is faster, because nginx or apache is just reading files, they have nothing to do with processing them. you will end up with php and mysql. only these two are responsible for speed. and ...
MagenX's user avatar
  • 3,820
3 votes

Magento 2: Static files are present but shows 404

Instead of look on the server directly, we should check first the Magento setup. Generally, this errors comes when the setup missing the .htaccess file in the pub/static folder. Follow this https://...
naveenos's user avatar
  • 131
3 votes

Apache proxy + Varnish + Magento (HTTPS not caching)

Problem solved. The problem wasn't my .vcl file or apache config. The problem was inside the module I use with my Magento sotre (CE 1.5.1). The module is Phoenix-media pagecache for MAgento (https://...
Timothy GERETS's user avatar
2 votes

set always_populate_raw_post_data to -1 doesn't work

PHP 5.6.0 and above does not support always_populate_raw_post_data, so it need to be set to -1. This is the common error faced during Magento 2.0 installation. Setp 1: Find out the PHP version and ...
MANOJ CHOUDHARY's user avatar
2 votes

Magento 1.9 multiple websites on different domains

You can follow below steps to configure your multi store in magento: 1) All domains which you are adding as another domains like xyz.com, point this domain to your main magento website url abc.com 2) ...
Rahul Anand's user avatar
2 votes

Apache2 to Nginx migration failed (param?)

I've been experiencing the exact same issue as above. Randomly. The site has been operating fine for months and I couldnt put my finger on what triggered it. I initially thought it was related to ...
Neal Foster's user avatar
2 votes

Magento 2: Static files are present but shows 404

First please delete 'static' folder before delete please copy .htaccess file in other folder in your pc. After that using cmd/shell run these commands php bin/magento setup:static-content:deploy -f ...
Narwal Saab's user avatar
2 votes

Magento 2 query url rewrite

For apache you can use the following - for example just put it into your .htaccess file in the document root directory: RewriteCond %{REQUEST_URI} ^/products.*$ RewriteCond %{QUERY_STRING} ^.*...
HelgeB's user avatar
  • 4,521
2 votes

Magento 2: 403 error when visiting website in browser

How to fix In order to resolve the 403 Forbidden problem you have to adjust permissions for user which is used to run localhost server. Find your username with this command: whoami ...
Suresh Chikani's user avatar
2 votes

Magento 2: 403 error when visiting website in browser

This answer assumes that you are running apache 2.4 on ubuntu. Please provide more information about your server. Solution 1 Check that mod_rewrite is enabled on your server by running sudo a2enmod ...
Muckee's user avatar
  • 699
2 votes
Accepted

"ERR_TOO_MANY_REDIRECTS" when turn on Cloudflare CDN possible .htaccess file issue

Source: https://magento.stackexchange.com/a/182783/69 Just to close this out, a good friend of mine suggested I try this, and I am very pleased to say it worked. Perhaps it will help someone ...
B00MER's user avatar
  • 8,307
2 votes
Accepted

Magento 2 installation freeze at 0%

try to install magento2 with Command its work fast php bin/magento setup:install --base-url="http://localhost/mag234/" --db-host="localhost" --db-name="mag234" --db-user="root" --admin-firstname="...
Jigs Parmar's user avatar
  • 2,438
2 votes

Multiple Magento 2 Sites Varnish Configuration

Based on your comment, I can conclude that the 2 Magento sites are served on 2 different IP addresses. These sites will be defined as 2 separate backends, because their IP address differs. Let's take ...
Thijs Feryn's user avatar
  • 1,061
1 vote

Fatal error: Allowed memory size of 805306368 bytes exhausted

Just clear "Var" folder in magento root directory, then Delete all files from static folder except .htaccess file. Please dont delete .htaccess file in static folder. You can find Static folder in ...
Jassi BANga's user avatar
1 vote

Only index.php shows up through proxy pass

do not use ProxyPassMatch use SetHandler instead, something like this: <FilesMatch \.php$> SetHandler proxy:fcgi://127.0.0.1:9070 </FilesMatch> <Proxy "fcgi://127.0.0.1:...
MagenX's user avatar
  • 3,820

Only top scored, non community-wiki answers of a minimum length are eligible