cancel
Showing results for 
Search instead for 
Did you mean: 

Some images are not loading on fresh install and banner images are not organised properly.

Some images are not loading on fresh install and banner images are not organised properly.

Good day,

 

I am trying to use sample data which seems to be installed well but

 

1. After install when I am opening domain.com it loads but images shown are not organised properly, also the items listed below those images are not showing all images but only a few.

2. If I go from navigation menu to any option it throws this:

 

"We can't find products matching the selection."

 

3. If I try to resize images, after processing a few images it gives this even if those images exist already in that location:

 

Cannot resize image "magento/pub/media/catalog/product/w/s/wsh12-red_main_1.jpg" - original image not found

 4. Also for some reason the site is not loading to https and only http.

 

My stack has:

Debain 10

nginx

elasticsearch

php-fpm

mysql

redis-server

 


A. My config:

server {
    listen 80;
    listen 443 ssl; #
    server_name domain.com www.domain.com;
    ssl_certificate /etc/nginx/ssl/domain/projectname.crt;   #
    ssl_certificate_key /etc/nginx/ssl/domain/projectname.key;   #
    
    set $MAGE_MODE developer;   #
    set $MAGE_ROOT /var/www/magento;
    index index.php;
    include /var/www/magento/nginx.conf.sample;
    client_max_body_size 25m;

    access_log /var/log/nginx/magento.access.log;
    error_log  /var/log/nginx/magento.error.log;
    

    location ~ ^/(app|includes|lib|media/downloadable|pkginfo|report/config\.xml|var)/ {
        deny all;
    }

    location ~ \.php$ {
        try_files $uri =404;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
	fastcgi_buffers 16 16k;
        fastcgi_buffer_size 32k;

    }

    location ~* (\.php$|\.phtml$|\.htaccess$|\.htpasswd$|\.git) {
        deny all;
    }
}

B. Command I used to install magento:

bin/magento setup:install \
--base-url=http://domain.com \
--use-secure=1 \
--base-url-secure=https://domain.com \
--use-secure-admin=1 \
--db-host=localhost \
--db-name=magento_db \
--db-user=user \
--db-password=password \
--admin-firstname=firstname \
--admin-lastname=lastname \
--admin-email=mail@mail.com \
--admin-user=user \
--admin-password=password \
--language=en_US \
--currency=USD \
--timezone=America/Chicago \
--use-rewrites=1 \
--elasticsearch-host=http://127.0.0.1 \
--elasticsearch-port=9200 \
--session-save=redis \
--session-save-redis-db=0 \
--session-save-redis-password=password \
--cache-backend=redis \
--cache-backend-redis-db=2 \
--cache-backend-redis-password=password \
--page-cache=redis \
--page-cache-redis-db=4 \
--page-cache-redis-password=password


C. permissions are set fine for pub folder

D. Checked php memory limit issue set it to 756M at all places.

E. User permissions are granted to user in mysql and redis

F.

service redis status

shows this:

redis-server.service: Can't open PID file /run/redis/redis-server.pid (yet?) after start: No such file or directory

G. Caching is enabled

 

ss1.png

 

ss2.png

Thank you