Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Aphorismen
Applications
Business Economics & Admin.
My Computers
Cooking
Devices
Folders
Food
Hardware
Infos
Software Development
Sports
Operation Instructions
Todos
Test
Help
Glossary
Community portal
adaptions
Sidebar anpassen
Wiki RB4
Search
Search
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Magento
(section)
Page
Discussion
English
Read
Edit
View history
Toolbox
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Operations== ===Commands=== <MAGENTO_INSTALL_DIR>\bin\php magento cache:flush <MAGENTO_INSTALL_DIR>\bin\php magento cache:clean ====Module Installation==== copy to <MAGENTO_INSTALL_DIR>\app\code\ <MAGENTO_INSTALL_DIR>\bin\php magento module:status // first time for a new module module is listed as disabled <MAGENTO_INSTALL_DIR>\bin\php magento module:enable <MODULE_NAME> // adds module to /app/etc/config.php <MAGENTO_INSTALL_DIR>\bin\php magento setup:upgrade // see below ====Upgrade Module==== <MAGENTO_INSTALL_DIR>\bin\php magento setup:upgrade // triggers setup scripts (if the module has one) of all modules that needs setup, // and updates version info in table setup_module <MAGENTO_INSTALL_DIR>\bin\php magento setup:db-schema:upgrade <MAGENTO_INSTALL_DIR>\bin\php magento setup:db-data:upgrade In Magento 2 upgrade is defined by the following rule (see [https://devdocs.magento.com/guides/v2.2/extension-dev-guide/prepare/lifecycle.html here]): IF (NO 'schema_version' IN table 'setup_module') THEN InstallSchema ELSE UpgradeSchema ENDIF Recurring // Recurring Schema IF (NO 'data_version' IN table 'module_setup) THEN InstallData ELSEIF (version outdated) THEN UpgradeData ENDIF RecurringData In order to manually upgrade a module: delete row from DB table setup_module php magento setup:upgrade ====Uninstall Module==== <MAGENTO_INSTALL_DIR>\bin\php magento magento module:uninstall // only works for modules defined by a composer package Detailled steps to uninstall manually are described [https://www.scommerce-mage.com/blog/magento2-uninstall-module.html here] <MAGENTO_INSTALL_DIR>\bin\php magento module:disable <MODULE_NAME> // sets module in /app/etc/config.php to 0 <MAGENTO_INSTALL_DIR>\bin\php magento setup:upgrade ====DB Logging==== <MAGENTO_INSTALL_DIR>\bin\php magento dev:query-log:enable // writes all queries to /var/debug/db.log <MAGENTO_INSTALL_DIR>\bin\php magento dev:query-log:disable ====Magento Mode==== <MAGENTO_INSTALL_DIR>\bin\php magento deploy:mode:show <MAGENTO_INSTALL_DIR>\bin\php magento deploy:mode:set developer ====Indexing==== php magento indexer:reindex // e.g. needed to show new customers in the admin customer list ====Administration==== php bin/magento admin:user:create [<PARAMETER>|--help] // will ask for all needed parameters ===Configuration=== ====Admin Session Timeout==== * Stores->Settings->Configuration->Advanced->Admin->Security->Admin Session Lifetime ====Admin URL==== * lookup /app/etc/env.php <code>backend =></code> ====Cache and Index Management==== * System -> Tools -> Cache Management ====Payments==== * payments = zahlungsarten * Stores->Configuration->Sales->Payment Methods ** banktransfer := Bank Transfer Payment (Überweisung, Vorkasse) ** cashondelivery := Cash on Delivery Payment (Nachnahme) ** checkmo := Check / Money Order (Kauf per Rechnung) ** purchaseorder := Purchase Order (Bestellung) ===DB Dump=== C:\Uwes\Programme\xampp7.0.31\mysql\bin>mysqldump.exe --user=root m2_1 >C:\temp\m2_1.txt ===Error Logging=== * decomment in \app\bootstrap.php ini_set('display_errors', 1); ===Debugging=== * see [https://www.oscprofessionals.com/magento-commerce/debugging-tricks-tools-magento-2/ here] for some debugging strategies
Summary:
Please note that all contributions to Wiki RB4 may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Uwe Heuer Wiki New:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Toggle limited content width