Skip to content

SubrataBauri/magento2-nginx-vagrant-vbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Setup mysql

sudo mysql_secure_installation

Configure Nginx to Use the PHP Processor

Follow this link

sudo nano /etc/nginx/sites-available/default

server {
    listen 80 default_server;
    listen [::]:80 default_server;

    root /var/www/html;
    index index.php index.html index.htm index.nginx-debian.html;

    server_name server_domain_or_IP;

    location / {
        try_files $uri $uri/ =404;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.4-fpm.sock;
    }

    location ~ /\.ht {
        deny all;
    }
}
$ sudo service nginx restart

$ sudo service php7.4-fpm restart

ISSUES

admin 400 error after installation

Enable nginx rewrite

502 bad gateway

Solution - Increase buffer size

Admin/Frontend broken (css/js not loading)

var > cache > *DELETE ALL*
var > page_cache > *DELETE ALL*
var > session > *DELETE ALL*
> var > view_preprocessed > *DELETE ALL*
pub > static > DELETE ALL EXCEPT .HTACCESS

Remove static file signing in dev environment (mydql)

insert into core_config_data (config_id, scope, scope_id, path, value) values (null, 'default', 0, 'dev/static/sign', 0);

bin/magento setup:static-content:deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages