Yesterday, I switched from developer mode to production mode.
After changing the mode, I used the following command:.
# /usr/local/php71/bin/php bin/magento deploy:mode:set production --skip-compilation # chown -R fascinate:www-data /var/www/html/primary # find /var/www/html/primary -type f -print0 | xargs -r0 chmod 664 # find /var/www/html/primary -type d -print0 | xargs -r0 chmod 775 # /usr/local/php71/bin/php bin/magento setup:upgrade # /usr/local/php71/bin/php bin/magento setup:di:compile # chown -R fascinate:www-data /var/www/html/primary # /usr/local/php71/bin/php bin/magento setup:static-content:deploy # /usr/local/php71/bin/php bin/magento setup:static-content:deploy ja_JP # chown -R fascinate:www-data /var/www/html/primary # find /var/www/html/primary -type f -print0 | xargs -r0 chmod 664 # find /var/www/html/primary -type d -print0 | xargs -r0 chmod 775 # chown -R www-data:www-data /var/www/html/primary/var/session An error occurred when accessing the front end.
The following contents were written.
2019/06/13 15:46:21 [error] 27980#27980: *40 FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected '<' in /var/www/html/primary/var/view_preprocessed/pub/static/app/design/frontend/Infortis/base/Infortis_Base/templates/product/list_featured_slider.phtml on line 1" while reading response header from upstream, client: 51.75.170.163, server: primary.development-ecommerce.com, request: "GET /english/?SID=m5rdn5o00j52d9n0u1ps52mmcu HTTP/1.1", upstream: "fastcgi://127.0.0.1:9071", host: "primary.development-ecommerce.com", referrer: "https://160.16.4.169/english/" I don't know what the cause is.
Could you help me?
error_reporting(E_ALL);andini_set('display_errors',1);inindex.phpfile to get the actual error on browser.