{"id":2521,"date":"2018-01-09T03:54:22","date_gmt":"2018-01-09T03:54:22","guid":{"rendered":"http:\/\/myprojects.advchaweb.com\/?p=2521"},"modified":"2018-10-11T14:12:15","modified_gmt":"2018-10-11T14:12:15","slug":"magento-ce-2-2-2-with-sample-data-installation","status":"publish","type":"post","link":"https:\/\/myprojects.advchaweb.com\/index.php\/2018\/01\/09\/magento-ce-2-2-2-with-sample-data-installation\/","title":{"rendered":"Magento CE 2.2.2 (With Sample Data) Installation"},"content":{"rendered":"<p>I want to install Magento CE 2.2.2 (with sample data) in my machine MacOS High Sierra (10.13.2), PHP 7.0 and Apache2. For the installation on Ubuntu 16.04 with Nginx and PHP7.0-FPM, See after this.<\/p>\n<ol>\n<li>Download the installation file from magento website (https:\/\/magento.com\/tech-resources\/download). I downloaded the file with sample data in tar.bz2 format<\/li>\n<li>Extract the compressed file into your web root. I extract them in &#8216;magentoce222&#8217; directory.<\/li>\n<li>Create a virtualhost<br \/>\nModify \/usr\/local\/etc\/httpd\/extra\/httpd-vhosts.conf. then add this:<\/p>\n<pre class=\"lang:default decode:true \">&lt;VirtualHost *:80&gt; \r\n\tServerName magentoce222.local \r\n\tServerAlias www.magentoce222.local \r\n\tDocumentRoot \"\/Library\/WebServer\/Documents\/Projects\/magentoce222\" \r\n\tDirectoryIndex index.php \r\n\t&lt;Directory \"\/Library\/WebServer\/Documents\/Projects\/magentoce222\"&gt; \r\n\t\tAllowOverride All \r\n\t\tAllow from All \r\n\t\tRequire all granted \r\n\t&lt;\/Directory&gt;\r\n\r\n\tErrorLog \"\/usr\/local\/var\/log\/httpd\/magentoce222_error.log\" \r\n\tCustomLog \"\/usr\/local\/var\/log\/httpd\/magentoce222_access.log\" common \r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>Save the file.<br \/>\nThen modify \/private\/etc\/hosts. Then insert this:<\/p>\n<pre class=\"lang:default decode:true\">127.0.0.1\tmagentoce222.local<\/pre>\n<p>Save the file.<br \/>\nThen restart apache server<\/p>\n<pre class=\"lang:default decode:true\">sudo apachectl restart<\/pre>\n<p>&nbsp;<\/li>\n<li>Open the site on the browser: http:\/\/magentoce222.local\/<br \/>\nFollow the instruction (Agree the terms and condition, check the readiness, the database addition (create the database manually), web config, timezone (mine: western indonesia time (indonesia\/jakarta)<br \/>\nSo here is the local config:<\/p>\n<pre class=\"lang:default decode:true \">Store address: http:\/\/magentoce222.local\/\r\nAdmin address: http:\/\/magentoce222.local\/admin_sjqexh<\/pre>\n<p><span class=\"rcp-restricted-content-message\">SORRY, ONLY ADMIN CAN SHOW THIS!<\/span><br \/>\nThen click &#8216;Install&#8217; button.<br \/>\nSuccess!<\/li>\n<li>When I opened the admin page, it need to be reindexed and the cache need to be cleared:\n<pre class=\"lang:default decode:true\">php bin\/magento indexer:reindex\r\nphp bin\/magento c:f<\/pre>\n<\/li>\n<li>On the frontpage, I got the grid for the products (hot sellers section) not good enough. not like on http:\/\/magentoce215.local\/<\/li>\n<li>INSTALL MSP VIA COMPOSER:\n<pre class=\"lang:default decode:true \">Satrias-MacBook-Pro:~ teddy$ cd \/Library\/WebServer\/Documents\/Projects\/magentoce222\/\r\nSatrias-MacBook-Pro:magentoce222 teddy$ composer -V\r\nComposer version 1.6.2 2018-01-05 15:28:41\r\nSatrias-MacBook-Pro:magentoce222 teddy$ composer require msp\/devtools\r\n\r\n    Authentication required (repo.magento.com):\r\n      Username: 491a468ba9afd310d3eac792647361be \r\n      Password: \r\nDo you want to store credentials for repo.magento.com in \/Users\/teddy\/.composer\/auth.json ? [Yn] Y\r\nUsing version ^1.2 for msp\/devtools\r\n.\/composer.json has been updated\r\nLoading composer repositories with package information\r\nUpdating dependencies (including require-dev)\r\nPackage operations: 2 installs, 0 updates, 0 removals\r\n  - Installing msp\/common (0.1.5): Downloading (100%)         \r\n  - Installing msp\/devtools (1.2.9): Downloading (100%)         \r\nPackage sjparkinson\/static-review is abandoned, you should avoid using it. Use phpro\/grumphp instead.\r\nWriting lock file\r\nGenerating autoload files<\/pre>\n<p>Enable it:<\/p>\n<pre class=\"lang:default decode:true \">Satrias-MacBook-Pro:magentoce222 teddy$ php bin\/magento module:enable MSP_Common MSP_DevTools\r\nThe following modules have been enabled:\r\n- MSP_Common\r\n- MSP_DevTools\r\n\r\nTo make sure that the enabled modules are properly registered, run 'setup:upgrade'.\r\nCache cleared successfully.\r\nGenerated classes cleared successfully. Please run the 'setup:di:compile' command to generate classes.\r\nInfo: Some modules might require static view files to be cleared. To do this, run 'module:enable' with the --clear-static-content option to clear them.<\/pre>\n<p>run setup:upgrade<\/p>\n<pre class=\"lang:default decode:true \">Satrias-MacBook-Pro:magentoce222 teddy$ php bin\/magento setup:upgrade<\/pre>\n<p>Then enable it also in the admin page : Stores -&gt; Configuration -&gt; MAGESPECIALIST<br \/>\nNOTE: I GOT THIS ERROR AFTER ENABLE IT:<br \/>\nOne or more\u00a0<a href=\"http:\/\/magentoce222.local\/admin_sjqexh\/admin\/integration\/index\/key\/a9f5d45c386579b4b295804ee7a1b0d24c94b5f0d4c1c443d2c341e85453526b\/\">integrations<\/a>\u00a0have been reset because of a change to their xml configs.<br \/>\nSOLUTION: I NEED TO DISABLE AN EXTENSION:<br \/>\nphp bin\/magento module:disable Shopial_Facebook<br \/>\nREF: https:\/\/github.com\/magento\/magento2\/issues\/12095<\/li>\n<\/ol>\n<p>The installation on Ubuntu 16.04 with Nginx and PHP7.0-FPM<br \/>\nref: http:\/\/devdocs.magento.com\/guides\/v2.0\/install-gde\/prereq\/nginx.html<\/p>\n<ol>\n<li>Download Magento 2.2.2 (with sample data)<\/li>\n<li>Create the config file\n<pre class=\"lang:default decode:true \">sudo gedit \/etc\/nginx\/sites-available\/magento222.test<\/pre>\n<p>Here is the content:<\/p>\n<pre class=\"lang:default decode:true\">server {\r\n    listen 80;\r\n    server_name magento222.test;\r\n    set $MAGE_ROOT \/home\/teddy\/Documents\/works\/magento222;\r\n\r\n    root $MAGE_ROOT;\r\n\r\n    index index.php;\r\n    autoindex off;\r\n    charset UTF-8;\r\n    error_page 404 403 = \/errors\/404.php;\r\n    #add_header \"X-UA-Compatible\" \"IE=Edge\";\r\n    client_max_body_size 100M;\r\n\r\n    # PHP entry point for setup application\r\n    location ~* ^\/setup($|\/) {\r\n        root $MAGE_ROOT;\r\n        location ~ ^\/setup\/index.php {\r\n            fastcgi_split_path_info ^(.+?\\.php)(\/.*)$;\r\n            fastcgi_buffers 1024 4k; \r\n            fastcgi_read_timeout 600s; \r\n            fastcgi_connect_timeout 600s;\r\n            fastcgi_pass unix:\/run\/php\/php7.0-fpm.sock; #FOR AWS SERVER\r\n            #fastcgi_pass 127.0.0.1:9000;\r\n            #fastcgi_index index.php;\r\n            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n            include fastcgi_params;\r\n        }\r\n\r\n        location ~ ^\/setup\/(?!pub\/). {\r\n            deny all;\r\n        }\r\n\r\n        location ~ ^\/setup\/pub\/ {\r\n            add_header X-Frame-Options \"SAMEORIGIN\";\r\n        }\r\n    }\r\n\r\n    # PHP entry point for update application\r\n    location ~* ^\/update($|\/) {\r\n        root $MAGE_ROOT;\r\n\r\n        location ~ ^\/update\/index.php {\r\n            fastcgi_split_path_info ^(\/update\/index.php)(\/.+)$;\r\n            fastcgi_pass unix:\/run\/php\/php7.0-fpm.sock; #FOR AWS SERVER\r\n            #fastcgi_pass 127.0.0.1:9000;\r\n            fastcgi_index index.php;\r\n            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n            fastcgi_param PATH_INFO $fastcgi_path_info;\r\n            include fastcgi_params;\r\n        }\r\n\r\n        # Deny everything but index.php\r\n        location ~ ^\/update\/(?!pub\/). {\r\n            deny all;\r\n        }\r\n\r\n        location ~ ^\/update\/pub\/ {\r\n            add_header X-Frame-Options \"SAMEORIGIN\";\r\n        }\r\n    }\r\n\r\n    location \/ {\r\n        try_files $uri $uri\/ \/index.php?$args;\r\n    }\r\n\r\n    location \/pub\/ {\r\n        location ~ ^\/pub\/media\/(downloadable|customer|import|theme_customization\/.*\\.xml) {\r\n            deny all;\r\n        }\r\n        alias $MAGE_ROOT\/pub\/;\r\n        add_header X-Frame-Options \"SAMEORIGIN\";\r\n    }\r\n\r\n\r\n    location ~ ^\/pub\/static\/version {\r\n        rewrite ^\/pub\/static\/(version\\d*\/)?(.*)$ \/pub\/static\/$2 last;\r\n    }\r\n\r\n    location \/static\/ {\r\n        # Uncomment the following line in production mode\r\n        # expires max;\r\n\r\n        # Remove signature of the static files that is used to overcome the browser cache\r\n        location ~ ^\/static\/version {\r\n            rewrite ^\/static\/(version\\d*\/)?(.*)$ \/static\/$2 last;\r\n        }\r\n\r\n        location ~* \\.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2)$ {\r\n            add_header Cache-Control \"public\";\r\n            add_header X-Frame-Options \"SAMEORIGIN\";\r\n            expires +1y;\r\n\r\n            if (!-f $request_filename) {\r\n                rewrite ^\/static\/(version\\d*\/)?(.*)$ \/static.php?resource=$2 last;\r\n            }\r\n        }\r\n\r\n        location ~* \\.(zip|gz|gzip|bz2|csv|xml)$ {\r\n            add_header Cache-Control \"no-store\";\r\n            add_header X-Frame-Options \"SAMEORIGIN\";\r\n            expires off;\r\n\r\n            if (!-f $request_filename) {\r\n                rewrite ^\/static\/(version\\d*\/)?(.*)$ \/static.php?resource=$2 last;\r\n            }\r\n        }\r\n\r\n        if (!-f $request_filename) {\r\n            rewrite ^\/static\/(version\\d*\/)?(.*)$ \/static.php?resource=$2 last;\r\n        }\r\n\r\n        add_header X-Frame-Options \"SAMEORIGIN\";\r\n    }\r\n\r\n    location \/media\/ {\r\n        try_files $uri $uri\/ \/get.php?$args;\r\n\r\n        location ~ ^\/media\/theme_customization\/.*\\.xml {\r\n            deny all;\r\n        }\r\n\r\n        location ~* \\.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2)$ {\r\n            add_header Cache-Control \"public\";\r\n            add_header X-Frame-Options \"SAMEORIGIN\";\r\n            expires +1y;\r\n            try_files $uri $uri\/ \/get.php?$args;\r\n        }\r\n\r\n        location ~* \\.(zip|gz|gzip|bz2|csv|xml)$ {\r\n            add_header Cache-Control \"no-store\";\r\n            add_header X-Frame-Options \"SAMEORIGIN\";\r\n            expires off;\r\n            try_files $uri $uri\/ \/get.php?$args;\r\n        }\r\n\r\n        add_header X-Frame-Options \"SAMEORIGIN\";\r\n    }\r\n\r\n    location \/media\/customer\/ {\r\n        deny all;\r\n    }\r\n\r\n    location \/media\/downloadable\/ {\r\n        deny all;\r\n    }\r\n\r\n    location \/media\/import\/ {\r\n        deny all;\r\n    }\r\n\r\n    # PHP entry point for main application\r\n    location ~ (index|get|static|report|404|503)\\.php$ {\r\n        try_files $uri =404;\r\n        fastcgi_pass unix:\/run\/php\/php7.0-fpm.sock; #FOR AWS SERVER\r\n        #fastcgi_pass 127.0.0.1:9000;\r\n        fastcgi_buffers 1024 4k;\r\n\r\n        fastcgi_read_timeout 600s;\r\n        fastcgi_connect_timeout 600s;\r\n        # to configure profiler in Magento 2\r\n        fastcgi_param  MAGE_PROFILER html;\r\n\r\n        fastcgi_index index.php;\r\n        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n        #include fastcgi_params;\r\n        #FOR DEVELOPMENT MODE ONLY - BEGIN\r\n        fastcgi_param MAGE_IS_DEVELOPER_MODE true;\r\n        fastcgi_param PHP_VALUE  display_startup_errors=on;\r\n        fastcgi_param PHP_VALUE  display_errors=on;\r\n        fastcgi_param PHP_VALUE  html_errors=on;\r\n        fastcgi_param PHP_VALUE  log_errors=on;\r\n        fastcgi_param PHP_VALUE  error_log=\/home\/teddy\/Documents\/works\/magento222\/var\/log\/system.log;\r\n        #FOR DEVELOPMENT MODE ONLY - END\r\n        include fastcgi_params;\r\n        #FOR DEBUGGING WITH XDEBUG - BEGIN\r\n        #fastcgi_read_timeout 600;\r\n        #FOR DEBUGGING WITH XDEBUG - END\r\n    }\r\n\r\n    gzip on;\r\n    gzip_disable \"msie6\";\r\n\r\n    gzip_comp_level 6;\r\n    gzip_min_length 1100;\r\n    gzip_buffers 16 8k;\r\n    gzip_proxied any;\r\n    gzip_types\r\n    text\/plain\r\n    text\/css\r\n    text\/js\r\n    text\/xml\r\n    text\/javascript\r\n    application\/javascript\r\n    application\/x-javascript\r\n    application\/json\r\n    application\/xml\r\n    application\/xml+rss\r\n    image\/svg+xml;\r\n    gzip_vary on;\r\n\r\n    # Banned locations (only reached if the earlier PHP entry point regexes don't match)\r\n    location ~* (\\.php$|\\.htaccess$|\\.git) {\r\n        deny all;\r\n    }\r\n}<\/pre>\n<\/li>\n<li>Enable file config\n<pre class=\"lang:default decode:true\">sudo ln -s \/etc\/nginx\/sites-available\/magento222.test \/etc\/nginx\/sites-enabled\/magento222.test<\/pre>\n<\/li>\n<li>Register the host on my system\n<pre class=\"lang:default decode:true \">sudo gedit \/etc\/hosts<\/pre>\n<p>Like this:<\/p>\n<pre class=\"lang:default decode:true \">...\r\n127.0.0.1 \tmagento222.test\r\n...<\/pre>\n<\/li>\n<li>CHECK THE NGINX SETTING AND RESTART IT:\n<pre class=\"lang:default decode:true \">teddy@teddy:~$ sudo nginx -t\r\nnginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok\r\nnginx: configuration file \/etc\/nginx\/nginx.conf test is successful<\/pre>\n<pre class=\"lang:default decode:true\">sudo systemctl restart nginx<\/pre>\n<p>&nbsp;<\/li>\n<li>Set file permission and owner:\n<pre class=\"lang:default decode:true\">teddy@teddy:~\/Documents\/works\/magento222$ sudo su\r\nroot@teddy:\/home\/teddy\/Documents\/works\/magento222# find var vendor pub\/static pub\/media app\/etc -type f -exec chmod g+w {} \\;\r\nroot@teddy:\/home\/teddy\/Documents\/works\/magento222# find var vendor pub\/static pub\/media app\/etc -type d -exec chmod g+ws {} \\;\r\nroot@teddy:\/home\/teddy\/Documents\/works\/magento222# chown -R :www-data .\r\nroot@teddy:\/home\/teddy\/Documents\/works\/magento222# chmod u+x bin\/magento\r\nroot@teddy:\/home\/teddy\/Documents\/works\/magento222# exit<\/pre>\n<p>Then<\/p>\n<pre class=\"lang:default decode:true\">sudo chown www-data -R var\/ pub\/ app\/etc\/ setup\/ generated\/\r\nsudo chmod -R 777 var\/ pub\/ app\/etc\/ setup\/ generated\/<\/pre>\n<p>&nbsp;<\/li>\n<li>Test: &#8211;&gt; NOT WORKING! I GOT BLANK PAGE. MAY BE SOMETHING WRONG ON NGINX &#8216;magento222.test&#8217; CONFIG ERROR. BUT WHERE?<br \/>\nIT ALSO REALLY WORTH TO CHECK THE ERROR MESSAGE FROM \/var\/log\/nginx\/error.log<br \/>\nOK. I FOUND THE SOLUTION (ref: https:\/\/github.com\/magento\/magento2\/issues\/2504). I CAN DO ONE OF THIS SOLUTION (THE LATTER IS PREFERRED):<br \/>\n1. CHANGE &#8216;cgi.fix_pathinfo&#8217; TO &#8216;1&#8217; IN \/etc\/php\/7.0\/fpm\/php.ini<br \/>\n2. MODIFY THE CONFIG FILE IN \/etc\/nginx\/sites-available\/magento222.test THEN ADD &#8216;fastcgi_split_path_info ^(.+?\\.php)(\/.*)$;&#8217; JUST BELOW\/IN &#8216;location ~ ^\/setup\/index.php {&#8216;. PLS SEE THE FIXED SETTING ABOVE &#8211;&gt; PREFERRED. BECAUSE\u00a0 THIS PROBLEM ONLY WHEN I TRIED TO SETUP FOR THE FIRST TIME.<br \/>\nI ALSO GOT &#8216;connection timeout&#8217; ERROR WHEN TRYING TO INSTALL IT. SO I ADDED A FEW MORE LINES ON &#8216;setup&#8217; SECTION ON THE NGINX CONFIG LIKE THIS:<\/p>\n<pre class=\"lang:default decode:true \">...\r\nlocation ~ ^\/setup\/index.php {\r\n    fastcgi_split_path_info ^(.+?\\.php)(\/.*)$;\r\n    fastcgi_buffers 1024 4k; \r\n    fastcgi_read_timeout 600s; \r\n    fastcgi_connect_timeout 600s;\r\n    ...<\/pre>\n<p>ref: https:\/\/www.digitalocean.com\/community\/questions\/nginx-php5-fpm-error-110-connection-timed-out<br \/>\nMAY BE I NEED TO DO THE SAME ON THE &#8216;update&#8217; SECTION???<br \/>\n3. To enable Magento 2 profiler for nginx, pls add &#8216;fastcgi_param MAGE_PROFILER html;&#8217; like this:<\/p>\n<pre class=\"lang:default decode:true \">...\r\n    # PHP entry point for main application\r\n    location ~ (index|get|static|report|404|503)\\.php$ {\r\n        ...\r\n        fastcgi_connect_timeout 600s;\r\n        # to configure profiler in Magento 2\r\n        fastcgi_param  MAGE_PROFILER html;\r\n\r\n        ...\r\n    }<\/pre>\n<p>NOTE: THE PROFILER WOULD SLOW THE PAGE LOAD!!!<br \/>\nref: https:\/\/magento.stackexchange.com\/questions\/192401\/how-to-enable-profiler-on-nginx<\/p>\n<p>I HAVE TO USE APACHE TO INSTALL IT<br \/>\n<span class=\"rcp-restricted-content-message\">SORRY, ONLY ADMIN CAN SHOW THIS!<\/span><\/li>\n<li>Compile\n<pre class=\"lang:default decode:true\">teddy@teddy:~\/Documents\/works\/magento222$ sudo su -s \/bin\/bash www-data\r\nwww-data@teddy:\/home\/teddy\/Documents\/works\/magento222$ php bin\/magento setup:upgrade --keep-generated &amp;&amp; php bin\/magento setup:di:compile &amp;&amp; php bin\/magento setup:static-content:deploy -f --language en_AU --language en_US &amp;&amp; php bin\/magento indexer:reindex &amp;&amp; php bin\/magento cache:clean &amp;&amp; php bin\/magento cache:flush<\/pre>\n<p>&nbsp;<\/p>\n<p>OR (BECAUSE I GOT ERROR: &#8216;Area code not set: Area code must be set before starting a session. &#8230; vendor\/magento\/framework\/Session\/SessionManager.php&#8217;)<\/p>\n<pre class=\"lang:default decode:true \">php bin\/magento setup:upgrade &amp;&amp; php bin\/magento setup:static-content:deploy -f &amp;&amp; php bin\/magento indexer:reindex &amp;&amp; php bin\/magento cache:flush<\/pre>\n<p>Make sure the php version for cli is php 7.0.x (php 7.0.x for magento 2.2.2), if not, pls change the php cli version:<\/p>\n<pre class=\"lang:default decode:true \">sudo ln -sfn \/usr\/bin\/php7.0 \/etc\/alternatives\/php<\/pre>\n<p>If you get an error like &#8216;Class Magento\\Framework\\App\\ResourceConnection\\Proxy does not exist&#8217; on the cli and\/or the browser, then you need to remove &#8216;generated&#8217; directory first.<\/p>\n<pre class=\"lang:default decode:true \">sudo rm -rf generated\/*\r\nsudo rm -rf pub\/static\/*\r\n\r\n<\/pre>\n<p>then run the setup:upgrade and the other commands like usual<br \/>\nI GOT ANOTHER ERROR:<\/p>\n<pre class=\"lang:default decode:true \">www-data@teddy:\/home\/teddy\/Documents\/works\/magento222$ php bin\/magento setup:static-content:deploy -f &amp;&amp; php bin\/magento indexer:reindex &amp;&amp; php bin\/magento cache:clean &amp;&amp; php bin\/magento cache:flush\r\n\r\nDeploy using quick strategy\r\nfrontend\/Magento\/blank\/en_US            0\/2241              &gt;--------------------------- 0% %    &lt; 1 sec\r\n#0 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/framework\/App\/View\/Asset\/Publisher.php(73): Magento\\Framework\\View\\Asset\\File-&gt;getSourceFile()\r\n#1 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/framework\/App\/View\/Asset\/Publisher.php(61): Magento\\Framework\\App\\View\\Asset\\Publisher-&gt;publishAsset(Object(Magento\\Framework\\View\\Asset\\File))\r\n#2 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployStaticFile.php(89): Magento\\Framework\\App\\View\\Asset\\Publisher-&gt;publish(Object(Magento\\Framework\\View\\Asset\\File))\r\n#3 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployPackage.php(189): Magento\\Deploy\\Service\\DeployStaticFile-&gt;deployFile('mage\/gallery\/ga...', Array)\r\n#4 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployPackage.php(136): Magento\\Deploy\\Service\\DeployPackage-&gt;processFile(Object(Magento\\Deploy\\Package\\PackageFile), Object(Magento\\Deploy\\Package\\Package))\r\n#5 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployPackage.php(107): Magento\\Deploy\\Service\\DeployPackage-&gt;deployEmulated(Object(Magento\\Deploy\\Package\\Package), Array, false)\r\n#6 [internal function]: Magento\\Deploy\\Service\\DeployPackage-&gt;Magento\\Deploy\\Service\\{closure}()\r\n#7 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/framework\/App\/State.php(186): call_user_func_array(Object(Closure), Array)\r\n#8 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployPackage.php(108): Magento\\Framework\\App\\State-&gt;emulateAreaCode('frontend', Object(Closure))\r\n#9 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Process\/Queue.php(281): Magento\\Deploy\\Service\\DeployPackage-&gt;deploy(Object(Magento\\Deploy\\Package\\Package), Array)\r\n#10 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Process\/Queue.php(200): Magento\\Deploy\\Process\\Queue-&gt;execute(Object(Magento\\Deploy\\Package\\Package))\r\n#11 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Process\/Queue.php(162): Magento\\Deploy\\Process\\Queue-&gt;assertAndExecute('frontend\/Magent...', Array, Array)\r\n#12 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Strategy\/QuickDeploy.php(76): Magento\\Deploy\\Process\\Queue-&gt;process()\r\n#13 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployStaticContent.php(109): Magento\\Deploy\\Strategy\\QuickDeploy-&gt;deploy(Array)\r\n#14 \/home\/teddy\/Documents\/works\/magento222\/setup\/src\/Magento\/Setup\/Console\/Command\/DeployStaticContentCommand.php(140): Magento\\Deploy\\Service\\DeployStaticContent-&gt;deploy(Array)\r\n#15 \/home\/teddy\/Documents\/works\/magento222\/vendor\/symfony\/console\/Command\/Command.php(241): Magento\\Setup\\Console\\Command\\DeployStaticContentCommand-&gt;execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#16 \/home\/teddy\/Documents\/works\/magento222\/vendor\/symfony\/console\/Application.php(843): Symfony\\Component\\Console\\Command\\Command-&gt;run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#17 \/home\/teddy\/Documents\/works\/magento222\/vendor\/symfony\/console\/Application.php(193): Symfony\\Component\\Console\\Application-&gt;doRunCommand(Object(Magento\\Setup\\Console\\Command\\DeployStaticContentCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#18 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/framework\/Console\/Cli.php(104): Symfony\\Component\\Console\\Application-&gt;doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#19 \/home\/teddy\/Documents\/works\/magento222\/vendor\/symfony\/console\/Application.php(117): Magento\\Framework\\Console\\Cli-&gt;doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#20 \/home\/teddy\/Documents\/works\/magento222\/bin\/magento(23): Symfony\\Component\\Console\\Application-&gt;run()\r\nfrontend\/Magento\/blank\/en_US            1267\/2241           ===============&gt;------------ 56% %   1 sec\r\n#0 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/framework\/App\/View\/Asset\/Publisher.php(73): Magento\\Framework\\View\\Asset\\File-&gt;getSourceFile()\r\n#1 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/framework\/App\/View\/Asset\/Publisher.php(61): Magento\\Framework\\App\\View\\Asset\\Publisher-&gt;publishAsset(Object(Magento\\Framework\\View\\Asset\\File))\r\n#2 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployStaticFile.php(89): Magento\\Framework\\App\\View\\Asset\\Publisher-&gt;publish(Object(Magento\\Framework\\View\\Asset\\File))\r\n#3 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployPackage.php(189): Magento\\Deploy\\Service\\DeployStaticFile-&gt;deployFile('css\/styles.less', Array)\r\n#4 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployPackage.php(136): Magento\\Deploy\\Service\\DeployPackage-&gt;processFile(Object(Magento\\Deploy\\Package\\PackageFile), Object(Magento\\Deploy\\Package\\Package))\r\n#5 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployPackage.php(107): Magento\\Deploy\\Service\\DeployPackage-&gt;deployEmulated(Object(Magento\\Deploy\\Package\\Package), Array, false)\r\n#6 [internal function]: Magento\\Deploy\\Service\\DeployPackage-&gt;Magento\\Deploy\\Service\\{closure}()\r\n#7 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/framework\/App\/State.php(186): call_user_func_array(Object(Closure), Array)\r\n#8 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployPackage.php(108): Magento\\Framework\\App\\State-&gt;emulateAreaCode('frontend', Object(Closure))\r\n#9 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Process\/Queue.php(281): Magento\\Deploy\\Service\\DeployPackage-&gt;deploy(Object(Magento\\Deploy\\Package\\Package), Array)\r\n#10 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Process\/Queue.php(200): Magento\\Deploy\\Process\\Queue-&gt;execute(Object(Magento\\Deploy\\Package\\Package))\r\n#11 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Process\/Queue.php(162): Magento\\Deploy\\Process\\Queue-&gt;assertAndExecute('frontend\/Magent...', Array, Array)\r\n#12 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Strategy\/QuickDeploy.php(76): Magento\\Deploy\\Process\\Queue-&gt;process()\r\n#13 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployStaticContent.php(109): Magento\\Deploy\\Strategy\\QuickDeploy-&gt;deploy(Array)\r\n#14 \/home\/teddy\/Documents\/works\/magento222\/setup\/src\/Magento\/Setup\/Console\/Command\/DeployStaticContentCommand.php(140): Magento\\Deploy\\Service\\DeployStaticContent-&gt;deploy(Array)\r\n#15 \/home\/teddy\/Documents\/works\/magento222\/vendor\/symfony\/console\/Command\/Command.php(241): Magento\\Setup\\Console\\Command\\DeployStaticContentCommand-&gt;execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#16 \/home\/teddy\/Documents\/works\/magento222\/vendor\/symfony\/console\/Application.php(843): Symfony\\Component\\Console\\Command\\Command-&gt;run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#17 \/home\/teddy\/Documents\/works\/magento222\/vendor\/symfony\/console\/Application.php(193): Symfony\\Component\\Console\\Application-&gt;doRunCommand(Object(Magento\\Setup\\Console\\Command\\DeployStaticContentCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#18 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/framework\/Console\/Cli.php(104): Symfony\\Component\\Console\\Application-&gt;doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#19 \/home\/teddy\/Documents\/works\/magento222\/vendor\/symfony\/console\/Application.php(117): Magento\\Framework\\Console\\Cli-&gt;doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#20 \/home\/teddy\/Documents\/works\/magento222\/bin\/magento(23): Symfony\\Component\\Console\\Application-&gt;run()\r\n#21 {main}\r\n#0 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/framework\/App\/View\/Asset\/Publisher.php(73): Magento\\Framework\\View\\Asset\\File-&gt;getSourceFile()\r\n#1 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/framework\/App\/View\/Asset\/Publisher.php(61): Magento\\Framework\\App\\View\\Asset\\Publisher-&gt;publishAsset(Object(Magento\\Framework\\View\\Asset\\File))\r\n#2 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployStaticFile.php(89): Magento\\Framework\\App\\View\\Asset\\Publisher-&gt;publish(Object(Magento\\Framework\\View\\Asset\\File))\r\n#3 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployPackage.php(189): Magento\\Deploy\\Service\\DeployStaticFile-&gt;deployFile('css\/email-fonts...', Array)\r\n#4 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployPackage.php(136): Magento\\Deploy\\Service\\DeployPackage-&gt;processFile(Object(Magento\\Deploy\\Package\\PackageFile), Object(Magento\\Deploy\\Package\\Package))\r\n#5 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployPackage.php(107): Magento\\Deploy\\Service\\DeployPackage-&gt;deployEmulated(Object(Magento\\Deploy\\Package\\Package), Array, false)\r\n#6 [internal function]: Magento\\Deploy\\Service\\DeployPackage-&gt;Magento\\Deploy\\Service\\{closure}()\r\n#7 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/framework\/App\/State.php(186): call_user_func_array(Object(Closure), Array)\r\n#8 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployPackage.php(108): Magento\\Framework\\App\\State-&gt;emulateAreaCode('frontend', Object(Closure))\r\n#9 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Process\/Queue.php(281): Magento\\Deploy\\Service\\DeployPackage-&gt;deploy(Object(Magento\\Deploy\\Package\\Package), Array)\r\n#10 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Process\/Queue.php(200): Magento\\Deploy\\Process\\Queue-&gt;execute(Object(Magento\\Deploy\\Package\\Package))\r\n#11 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Process\/Queue.php(162): Magento\\Deploy\\Process\\Queue-&gt;assertAndExecute('frontend\/Magent...', Array, Array)\r\n#12 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Strategy\/QuickDeploy.php(76): Magento\\Deploy\\Process\\Queue-&gt;process()\r\n#13 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployStaticContent.php(109): Magento\\Deploy\\Strategy\\QuickDeploy-&gt;deploy(Array)\r\n#14 \/home\/teddy\/Documents\/works\/magento222\/setup\/src\/Magento\/Setup\/Console\/Command\/DeployStaticContentCommand.php(140): Magento\\Deploy\\Service\\DeployStaticContent-&gt;deploy(Array)\r\n#15 \/home\/teddy\/Documents\/works\/magento222\/vendor\/symfony\/console\/Command\/Command.php(241): Magento\\Setup\\Console\\Command\\DeployStaticContentCommand-&gt;execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#16 \/home\/teddy\/Documents\/works\/magento222\/vendor\/symfony\/console\/Application.php(843): Symfony\\Component\\Console\\Command\\Command-&gt;run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#17 \/home\/teddy\/Documents\/works\/magento222\/vendor\/symfony\/console\/Application.php(193): Symfony\\Component\\Console\\Application-&gt;doRunCommand(Object(Magento\\Setup\\Console\\Command\\DeployStaticContentCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#18 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/framework\/Console\/Cli.php(104): Symfony\\Component\\Console\\Application-&gt;doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#19 \/home\/teddy\/Documents\/works\/magento222\/vendor\/symfony\/console\/Application.php(117): Magento\\Framework\\Console\\Cli-&gt;doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#20 \/home\/teddy\/Documents\/works\/magento222\/bin\/magento(23): Symfony\\Component\\Console\\Application-&gt;run()\r\n#21 {main}\r\n#0 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/framework\/App\/View\/Asset\/Publisher.php(73): Magento\\Framework\\View\\Asset\\File-&gt;getSourceFile()\r\n#1 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/framework\/App\/View\/Asset\/Publisher.php(61): Magento\\Framework\\App\\View\\Asset\\Publisher-&gt;publishAsset(Object(Magento\\Framework\\View\\Asset\\File))\r\n#2 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployStaticFile.php(89): Magento\\Framework\\App\\View\\Asset\\Publisher-&gt;publish(Object(Magento\\Framework\\View\\Asset\\File))\r\n#3 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployPackage.php(189): Magento\\Deploy\\Service\\DeployStaticFile-&gt;deployFile('css\/styles-m.le...', Array)\r\n#4 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployPackage.php(136): Magento\\Deploy\\Service\\DeployPackage-&gt;processFile(Object(Magento\\Deploy\\Package\\PackageFile), Object(Magento\\Deploy\\Package\\Package))\r\n#5 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployPackage.php(107): Magento\\Deploy\\Service\\DeployPackage-&gt;deployEmulated(Object(Magento\\Deploy\\Package\\Package), Array, false)\r\n#6 [internal function]: Magento\\Deploy\\Service\\DeployPackage-&gt;Magento\\Deploy\\Service\\{closure}()\r\n#7 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/framework\/App\/State.php(186): call_user_func_array(Object(Closure), Array)\r\n#8 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployPackage.php(108): Magento\\Framework\\App\\State-&gt;emulateAreaCode('frontend', Object(Closure))\r\n#9 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Process\/Queue.php(281): Magento\\Deploy\\Service\\DeployPackage-&gt;deploy(Object(Magento\\Deploy\\Package\\Package), Array)\r\n#10 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Process\/Queue.php(200): Magento\\Deploy\\Process\\Queue-&gt;execute(Object(Magento\\Deploy\\Package\\Package))\r\n#11 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Process\/Queue.php(162): Magento\\Deploy\\Process\\Queue-&gt;assertAndExecute('frontend\/Magent...', Array, Array)\r\n#12 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Strategy\/QuickDeploy.php(76): Magento\\Deploy\\Process\\Queue-&gt;process()\r\n#13 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployStaticContent.php(109): Magento\\Deploy\\Strategy\\QuickDeploy-&gt;deploy(Array)\r\n#14 \/home\/teddy\/Documents\/works\/magento222\/setup\/src\/Magento\/Setup\/Console\/Command\/DeployStaticContentCommand.php(140): Magento\\Deploy\\Service\\DeployStaticContent-&gt;deploy(Array)\r\n#15 \/home\/teddy\/Documents\/works\/magento222\/vendor\/symfony\/console\/Command\/Command.php(241): Magento\\Setup\\Console\\Command\\DeployStaticContentCommand-&gt;execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#16 \/home\/teddy\/Documents\/works\/magento222\/vendor\/symfony\/console\/Application.php(843): Symfony\\Component\\Console\\Command\\Command-&gt;run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#17 \/home\/teddy\/Documents\/works\/magento222\/vendor\/symfony\/console\/Application.php(193): Symfony\\Component\\Console\\Application-&gt;doRunCommand(Object(Magento\\Setup\\Console\\Command\\DeployStaticContentCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#18 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/framework\/Console\/Cli.php(104): Symfony\\Component\\Console\\Application-&gt;doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#19 \/home\/teddy\/Documents\/works\/magento222\/vendor\/symfony\/console\/Application.php(117): Magento\\Framework\\Console\\Cli-&gt;doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#20 \/home\/teddy\/Documents\/works\/magento222\/bin\/magento(23): Symfony\\Component\\Console\\Application-&gt;run()\r\n#21 {main}\r\n#0 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/framework\/App\/View\/Asset\/Publisher.php(73): Magento\\Framework\\View\\Asset\\File-&gt;getSourceFile()\r\n#1 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/framework\/App\/View\/Asset\/Publisher.php(61): Magento\\Framework\\App\\View\\Asset\\Publisher-&gt;publishAsset(Object(Magento\\Framework\\View\\Asset\\File))\r\n#2 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployStaticFile.php(89): Magento\\Framework\\App\\View\\Asset\\Publisher-&gt;publish(Object(Magento\\Framework\\View\\Asset\\File))\r\n#3 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployPackage.php(189): Magento\\Deploy\\Service\\DeployStaticFile-&gt;deployFile('css\/styles-l.le...', Array)\r\n#4 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployPackage.php(136): Magento\\Deploy\\Service\\DeployPackage-&gt;processFile(Object(Magento\\Deploy\\Package\\PackageFile), Object(Magento\\Deploy\\Package\\Package))\r\n#5 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployPackage.php(107): Magento\\Deploy\\Service\\DeployPackage-&gt;deployEmulated(Object(Magento\\Deploy\\Package\\Package), Array, false)\r\n#6 [internal function]: Magento\\Deploy\\Service\\DeployPackage-&gt;Magento\\Deploy\\Service\\{closure}()\r\n#7 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/framework\/App\/State.php(186): call_user_func_array(Object(Closure), Array)\r\n#8 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployPackage.php(108): Magento\\Framework\\App\\State-&gt;emulateAreaCode('frontend', Object(Closure))\r\n#9 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Process\/Queue.php(281): Magento\\Deploy\\Service\\DeployPackage-&gt;deploy(Object(Magento\\Deploy\\Package\\Package), Array)\r\n#10 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Process\/Queue.php(200): Magento\\Deploy\\Process\\Queue-&gt;execute(Object(Magento\\Deploy\\Package\\Package))\r\n#11 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Process\/Queue.php(162): Magento\\Deploy\\Process\\Queue-&gt;assertAndExecute('frontend\/Magent...', Array, Array)\r\n#12 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Strategy\/QuickDeploy.php(76): Magento\\Deploy\\Process\\Queue-&gt;process()\r\n#13 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/module-deploy\/Service\/DeployStaticContent.php(109): Magento\\Deploy\\Strategy\\QuickDeploy-&gt;deploy(Array)\r\n#14 \/home\/teddy\/Documents\/works\/magento222\/setup\/src\/Magento\/Setup\/Console\/Command\/DeployStaticContentCommand.php(140): Magento\\Deploy\\Service\\DeployStaticContent-&gt;deploy(Array)\r\n#15 \/home\/teddy\/Documents\/works\/magento222\/vendor\/symfony\/console\/Command\/Command.php(241): Magento\\Setup\\Console\\Command\\DeployStaticContentCommand-&gt;execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#16 \/home\/teddy\/Documents\/works\/magento222\/vendor\/symfony\/console\/Application.php(843): Symfony\\Component\\Console\\Command\\Command-&gt;run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#17 \/home\/teddy\/Documents\/works\/magento222\/vendor\/symfony\/console\/Application.php(193): Symfony\\Component\\Console\\Application-&gt;doRunCommand(Object(Magento\\Setup\\Console\\Command\\DeployStaticContentCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#18 \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/framework\/Console\/Cli.php(104): Symfony\\Component\\Console\\Application-&gt;doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#19 \/home\/teddy\/Documents\/works\/magento222\/vendor\/symfony\/console\/Application.php(117): Magento\\Framework\\Console\\Cli-&gt;doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#20 \/home\/teddy\/Documents\/works\/magento222\/bin\/magento(23): Symfony\\Component\\Console\\Application-&gt;run()\r\n#21 {main}\r\nCompilation from source: \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/theme-frontend-blank\/web\/css\/email-inline.less\r\nvariable @baseUrl is undefined in file \/home\/teddy\/Documents\/works\/magento222\/var\/view_preprocessed\/pub\/static\/frontend\/Magento\/blank\/en_US\/css\/source\/_email-extend.less in _email-extend.less on line 19, column 13\r\n17| \/\/  as the latter will cause font rendering issues if the web fonts are inaccessible.\r\n18| \r\n19| @import url(\"@{baseUrl}css\/email-fonts.css\");\r\n20| \r\nCompilation from source: \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/theme-frontend-blank\/web\/css\/print.less\r\nvariable @color-black is undefined in file \/home\/teddy\/Documents\/works\/magento222\/var\/view_preprocessed\/pub\/static\/frontend\/Magento\/blank\/en_US\/css\/print.less in print.less on line 25, column 16\r\n23|         -webkit-filter: none !important; \/\/ Use in 41 Chrome\r\n24|         background: transparent !important;\r\n25|         color: @color-black !important;\r\n26|         filter: none !important;\r\n27|         text-shadow: none !important;\r\n28|     }\r\nCompilation from source: \/home\/teddy\/Documents\/works\/magento222\/vendor\/magento\/theme-frontend-blank\/web\/css\/email.less\r\nvariable @baseUrl is undefined in file \/home\/teddy\/Documents\/works\/magento222\/var\/view_preprocessed\/pub\/static\/frontend\/Magento\/blank\/en_US\/css\/source\/_email-extend.less in _email-extend.less on line 19, column 13\r\n17| \/\/  as the latter will cause font rendering issues if the web fonts are inaccessible.\r\n18| \r\n19| @import url(\"@{baseUrl}css\/email-fonts.css\");\r\n20| \r\n\r\n                                                                               \r\n  [Magento\\Framework\\Exception\\FileSystemException]                            \r\n  Cannot read contents from file \"\/home\/teddy\/Documents\/works\/magento222\/pub\/  \r\n  static\/frontend\/Magento\/blank\/en_US\/mage\/gallery\/gallery.css\" Warning!file_  \r\n  get_contents(\/home\/teddy\/Documents\/works\/magento222\/pub\/static\/frontend\/Mag  \r\n  ento\/blank\/en_US\/mage\/gallery\/gallery.css): failed to open stream: No such   \r\n  file or directory                                                            \r\n                                                                               \r\n\r\nsetup:static-content:deploy [-f|--force] [-s|--strategy [STRATEGY]] [-a|--area [AREA]] [--exclude-area [EXCLUDE-AREA]] [-t|--theme [THEME]] [--exclude-theme [EXCLUDE-THEME]] [-l|--language [LANGUAGE]] [--exclude-language [EXCLUDE-LANGUAGE]] [-j|--jobs [JOBS]] [--symlink-locale] [--content-version CONTENT-VERSION] [--refresh-content-version-only] [--no-javascript] [--no-css] [--no-less] [--no-images] [--no-fonts] [--no-html] [--no-misc] [--no-html-minify] [--] [&lt;languages&gt;]...\r\n<\/pre>\n<p>SO REMOVE SOME FILES MANUALLY:<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~\/Documents\/works\/magento222$ sudo rm -rf generated\/*\r\nteddy@teddy:~\/Documents\/works\/magento222$ sudo rm -rf pub\/static\/*\r\nteddy@teddy:~\/Documents\/works\/magento222$ sudo rm -rf var\/*\r\n\r\nONLY IF NEEDED:\r\nteddy@teddy:~\/Documents\/works\/magento222$ sudo chown www-data -R var\/ pub\/ app\/etc\/ setup\/ generated\/\r\nteddy@teddy:~\/Documents\/works\/magento222$ sudo chmod -R 777 var\/ pub\/ app\/etc\/ setup\/ generated\/\r\n\r\n<\/pre>\n<p>RUN THE DEPLOY COMMAND AGAIN!<\/li>\n<li>Test:\u00a0 http:\/\/magento222.test\/<br \/>\nAdmin page: http:\/\/magento222.test\/admin_14p856<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>I want to install Magento CE 2.2.2 (with sample data) in my machine MacOS High Sierra (10.13.2), PHP 7.0 and Apache2. For the installation on Ubuntu 16.04 with Nginx and PHP7.0-FPM, See after this. Download the installation file from magento website (https:\/\/magento.com\/tech-resources\/download). I downloaded the file with sample data in tar.bz2 format Extract the compressed &hellip; <a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2018\/01\/09\/magento-ce-2-2-2-with-sample-data-installation\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Magento CE 2.2.2 (With Sample Data) Installation&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,71],"tags":[],"class_list":["post-2521","post","type-post","status-publish","format-standard","hentry","category-macosx","category-magento"],"_links":{"self":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/2521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/comments?post=2521"}],"version-history":[{"count":32,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/2521\/revisions"}],"predecessor-version":[{"id":2986,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/2521\/revisions\/2986"}],"wp:attachment":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=2521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=2521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=2521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}