This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ composer global require hirak/prestissimo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget https://getcomposer.org/composer-1.phar | |
| chmod a+x composer-1.phar | |
| sudo mv composer-1.phar /usr/local/bin/composer1 | |
| And use composer1 on old projects: | |
| cd <OLD-PROJECT> | |
| composer1 install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| max_execution_time=7200 | |
| max_input_time=7200 | |
| memory_limit=2G | |
| post_max_size=1G | |
| upload_max_filesize=1G |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Composer 1 and 2 both at the same time on the Server: | |
| cd /home/master/ && wget https://getcomposer.org/download/1.10.17/composer.phar | |
| chmod +x composer.phar | |
| mv composer.phar composer | |
| SSH via Master Credentials and run these commands:Now if you wish to use composer 1 instead of using composer commands like composer install, Kindly run commands as follows for composer 1: | |
| /home/master/composer install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| this is because of permission issues with the generated/code folder, so try this | |
| sudo find var/ generated/ vendor/ pub/static/ pub/media/ app/etc/ -type f -exec chmod g+w {} \; | |
| sudo find var/ generated/ vendor/ pub/static/ pub/media/ app/etc/ -type d -exec chmod g+ws {} \; | |
| Also if your generated/ folder is getting populated once you removed everything, while shop is in maintance mode, | |
| this could have something to do with your cron job which is regenerating those files. Disable cronjobs first! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find . -size +20M | cat >> .gitignore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| php bin/magento admin:user:create --admin-user=john --admin-password=doe123445 [email protected] --admin-firstname=John --admin-lastname=Doe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Please run below command in magento root directory | |
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://rapidapi.com/collection/list-of-free-apis |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define( 'WP_CACHE', false ); | |
| //define('QM_DB_EXPENSIVE', true); | |
| define('QM_SHOW_ALL_HOOKS', false); | |
| define('QM_DISABLE', true); | |
| define('QM_HIDE_CORE_ACTIONS', true); | |
| define('QM_DISABLE_ERROR_HANDLER', false); | |
| define('QM_DARK_MODE', true); | |
| define('QM_HIDE_SELF', true); | |
| define( 'WP_DEBUG_LOG', false ); | |
| define( 'WP_DEBUG', false ); |