bin/magento indexer:reindexĭavids-MacBook-Pro:bin david$ /Applications/MAMP/bin/php/php7.0.22/bin/php bin/magento indexer:reindex Is there a reason why I should use 7.0.20 instead of 7.0.22(which is my CLI version and the version which is stated on the phpinfo.php page)? Independent which one I try I always get the same response:ĭavids-MacBook-Pro:bin david$ /Applications/MAMP/bin/php/php7.0.22/bin/php. It responds: Could not open input file: magento Applications/MAMP/bin/php/php7.0.22/bin/php magento indexer:reindex */1 * * * * /Applications/MAMP/bin/php/php7.0.22/conf -c /Library/Application Support/appsolute/MAMP PRO/conf/php.ini /Applications/MAMP/htdocs/magento/bin/magento setup:cron:run > /Applications/MAMP/htdocs/magento/var/log/& */1 * * * * /Applications/MAMP/bin/php/php7.0.22/conf -c /Library/Application Support/appsolute/MAMP PRO/conf/php.ini /Applications/MAMP/htdocs/magento/update/cron.php > /Applications/MAMP/htdocs/magento/var/log/& */1 * * * * /Applications/MAMP/bin/php/php7.0.22/conf -c /Library/Application Support/appsolute/MAMP PRO/conf/php.ini /Applications/MAMP/htdocs/magento/bin/magento cron:run > /Applications/MAMP/htdocs/magento/var/log/& How do I set up the cron jobs properly? this is what I entered in the crontab: Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologiesħ.0.22 is the version which is stated in the phpinfo.php page as well, so this should be okay.
#CRON JOB USING MAMP PRO HOW TO#
Should these two values be equal? (I don't know how to find out which php.ini file PHP command-line interface (CLI) is using)Īnd I cannot find the app/etc/local.xml file. Library/Application Support/appsolute/MAMP PRO/conf/php.ini Applications/MAMP/bin/php/php7.0.22/conf When I open the phpinfo.php file in the root of the magento installation I find: Configuration File (php.ini) Path I don't know where I can change the database hostname. I tried to resolve this problem using this: when I am in my magento root directory and I type in the terminal: php bin/magento indexer:reindex
I have tried to the followed procedures:Ģ. It is not possible to reindex the indexes. I have successfully installed magento on a local MAMP server.