Bonjour,
J`ai concu un site Magento v. 2.3.5 en local sous xampp et tout est ok
Je l`ai tranféré sur serveur et appliqué toutes les modifications dans le fichier env.php et dans la table : core_config_data.
Lorsque je lance l`URL du site dans le navigateur, le Design CMS du site a disparu (voir photos Local et serveur) et impossible d`accéder à l`administration (erreur 500).
Quelqu`un aurait il une solution ? Merci !
en local
Solved! Go to Solution.
Did it.
1. without "php7.3-cli" nothing happens
2. php -dmemory_limit=-1 bin/magento setup:di:compile, still stops at 12%, sorry
Please run below command in magento 2 root directory
Static content deploy
php bin/magento cache:clean php bin/magento cache:flush php bin/magento setup:upgrade rm -rf pub/static/frontend/* pub/static/adminhtml/* var/cache/ var/generation/ var/page_cache/ var/view_preprocessed/ var/composer_home generated/ php -dmemory_limit=6G bin/magento setup:static-content:deploy -f chmod -Rf 777 pub/ var/ php bin/magento cache:clean
Apply permission
find . -type f -exec chmod 644 {} \; find . -type d -exec chmod 755 {} \; find ./var -type d -exec chmod 777 {} \; find ./pub/media -type d -exec chmod 777 {} \; find ./pub/static -type d -exec chmod 777 {} \; chmod 777 ./app/etc chmod 644 ./app/etc/*.xml
Also check your php version too, it should be same as your local system.
Hello Manish,
Thank you for your patience, since I`m a beginner in Magento.
Each time I Type these commands in the root directory (I use ssh putty), I get a syntax error message and impossible to apply the commands. Do you have an explanation for this ? I really do not understand. here is the syntax error on Mobaxterm ssh too :
<br />
<b>Parse error</b>: syntax error, unexpected '{' in <b>/homepages/46/d204221203/htdocs/shop1/bin/magento</b> on line <b>13</b><br />
The pictures I attached to my message do not display, why ?
Thank you for your help
No worries. Just run this command to check php version.
php -v
It seems PHP version issue.
https://devdocs.magento.com/guides/v2.3/install-gde/system-requirements-tech.html
Well, on Xampp local, php is 7.3.18, and server is 7.3
but on Putty and Mobaxterm ssh, Php is 4.4.9 (server 7.3)
How can I send you pictures of the server cms design ?
It should show like this on putty:
PHP 7.3.18 (cli) (built: May 14 2020 10:54:46) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.18, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.18, Copyright (c) 1999-2018, by Zend Technologies
oh, in putty, I get this :
PHP 4.4.9 (cgi-fcgi) (built: Aug 29 2019 12:59:15)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
How to upgrade to PHP 7.3.18 on putty ?
You have to configure you php path or run commands with correct php path it will work.
Please check if this will help you.
https://devdocs.magento.com/guides/v2.4/install-gde/install/cli/install-cli-subcommands.html
obviously, it was a Php conflict.
So, I ran the 3 commands :
1. php bin/magento cache:clean
2. php bin/magento cache:flush
3. php bin/magento setup:upgrade
But the last command : rm -rf... does not work (could not open rm file). Did I make a mistake ?