New answers tagged

0

don't forget to check stale cron:run processes before deployment (setup:upgrade) If you find it then kill it and clean them in cron_schedule table as well


0

Yes you can install it on localhost. rl localhost:9200 If not installed then: sudo apt update Then run the installation: sudo apt install elasticsearch First, reload the systemd configuration: sudo systemctl daemon-reload Then, enable the Elasticsearch service with: sudo systemctl enable elasticsearch.service And finally, after the service is enabled, start ...


0

If you use Nginx please give me your Nginx config. Maybe It's happening by your Nginx configuration with php-fpm. You can verify by yourself with echo phpinfo(); in /pub/index.php to check your PHP version running with Webserver.


0

I Check and found the solution that, When I need to switch the PHP Version from 7.2 to 7.4 I need to run the command like this one. sudo a2dismod php7.2 sudo a2enmod php7.4 sudo update-alternatives --set php /usr/bin/php7.4 sudo service apache2 restart


0

You might just need to enable the module first. bin/magento module:enable Module_Name This will update your config.php file and activate the module. You can check your module status in the data table setup_module


1

Actually Magento2.4.2 onwards, magento2 loads from pub directory of the magneto2 directory. Which version are you installing? If you want to recheck the steps, then have a look at this video


2

There might be multiple PHP versions installed on the server. So you can run the below command to check that. which PHP; or whereis PHP; Through this, you can get which PHP version is getting called.


0

A simple Solution: When you use php -v on shell, it will tell you which PHP version cli is using. But the composer could have use different php version if you have multi php installed. To run composer with your desired php version, you can use this command /usr/bin/php7.4 /usr/local/bin/composer update or any other composer command with php version. Note: ...


0

You can have multiple installed PHP versions on your host, please, check which version is used by the composer with the next command - composer -vvv about


0

Try to run the following commands and then check. php bin/magento cache:clean php bin/magento cache:flush php bin/magento indexer:reindex php bin/magento setup:upgrade php bin/magento setup:static-content:deploy -f sudo chmod -R 777 var/ generated/ pub/


0

Please Check .htaccess file is available in pub/static folder.If you don't have that file than you can download it from https://github.com/magento/magento2/tree/2.4-develop/pub/static and upload in your directory pub/static.


Top 50 recent answers are included