34
loading...
This website collects cookies to deliver better user experience
/etc/nginx/sites-enabled/m232
, /etc/nginx/sites-enabled/m242
upstream fastcgi_backend_74 {
server unix:/run/php/php7.4-fpm.sock;
}
/etc/nginx/sites-enabled/m242
now looks like below:upstream fastcgi_backend_74 {
server unix:/run/php/php7.4-fpm.sock;
}
server {
listen 80;
server_name dev.m242.com;
set $MAGE_ROOT /home/djbravo/projects/m242;
include /home/djbravo/projects/m242/nginx.conf.sample;
access_log /var/log/nginx/m242.access;
error_log /var/log/nginx/m242.error;
}
<magento 2.4.2 project root>/nginx.conf.sample
(in our case /home/djbravo/projects/m242
)fastcgi_pass
directive (there were 3 places) inside above file and replace fastcgi_backend
with fastcgi_backend_74
(configured for PHP 7.4) which was configured in our virtual host file for m242 project above./etc/nginx/sites-enabled/m232
fastcgi_backend_72
this time for PHP 7.2upstream fastcgi_backend_72 {
server unix:/run/php/php7.2-fpm.sock;
}
server {
listen 80;
server_name dev.m232.com;
set $MAGE_ROOT /home/djbravo/projects/m232;
include /home/djbravo/projects/m232/nginx.conf.sample;
access_log /var/log/nginx/m232.access;
error_log /var/log/nginx/m232.error;
}
<magento 2.3.2 project root>/nginx.conf.sample
(in our case /home/djbravo/projects/m232
)fastcgi_pass
directive (there were 3 places) inside above file and replace 'fastcgi_backend' with 'fastcgi_backend_72' (configured for PHP 7.2) which was configured in our virtual host file for m232 project above./etc/nginx/sites-enabled/default
virtual host.sudo nginx -t
to check the syntax of virtual host files, and if all okay, do a 'sudo service nginx restart'