cancel
Showing results for 
Search instead for 
Did you mean: 

Error when I try to execute the command php bin/magento setup:static-content:deploy

Error when I try to execute the command php bin/magento setup:static-content:deploy

Hello Everyone,

I have a installation of magento 2.2 in linux mint, I'm using lampp.

I am wanting to change the installation language and when I try to execute the command: php bin/magento setup:static-content:deploy es_AR I have the following error.

 

Captura de pantalla de 2017-12-26 16-08-50.png

 

It also happens to me with other commands like the following:

php bin/magento cache:clean

php bin/magento cache:flush

 

Someone has an idea that it may be happening or that the problem is due.

Thank you very much.

 

2 REPLIES 2

Re: Error when I try to execute the command php bin/magento setup:static-content:deploy

Have you tried to do actions from the Magento Documentation page? 

http://devdocs.magento.com/guides/v2.2/install-gde/trouble/php/tshoot_phpini.html

Please look through these instructions and try to fix your problem.

 

Re: Error when I try to execute the command php bin/magento setup:static-content:deploy

Hello @la_madrilena,

 

It can be  handled by changing 'localhost' to '127.0.0.1'.

First go to folder where you installed the xampp and find out config.inc.php. (mine is /opt/lamp/phpmyadmin/config.inc.php.

After take a look to $cfg['Servers'][$i]['host'] = '127.0.0.1';.
If it is localhost change by '127.0.0.1'

Also see below linkhttps://stackoverflow.com/questions/42484504/magento-installation-sqlstatehy000-2002-no-such-file-or...