cancel
Showing results for 
Search instead for 
Did you mean: 

upgrade u.a. via php

upgrade u.a. via php

Hallo,

 

jeden Mal wenn ich eine Extension installiere, zerschießt es mir das Layout. Mit folgenden Zeilen kann ich es wieder richten:

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f de_DE en_US
php bin/magento c:c

Nun würde ich diesen Code gerne in ein php-File packen, damit ich ihn über den Browser starten kann.

Kann mir jemand helfen?

 

Vielen Dank

Justin

2 REPLIES 2

Re: upgrade u.a. via php

Hi @coffee4eve7485 

 

I think this is known question ! 

 

Here i am sharing the link from the same - https://magento.stackexchange.com/questions/131804/magento-2-programmatically-run-setup-upgrade

 

Kindly create a script based on the above code and run the same ! 

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

Re: upgrade u.a. via php

Hello @coffee4eve7485 

 

Please refer the below links:

https://www.geeksforgeeks.org/php-shell_exec-vs-exec-function/

https://www.php.net/manual/en/function.shell-exec.php

 

You may use like:

<?php
exec('php bin/magento c:f');
?>

Hope it helps.

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.