You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
21. You will be asked for a username (public key) and password (private key). You can register
49
49
for one here: https://marketplace.magento.com/
50
50
22. Back to terminal, enter: ```mysql -h localhost -u root -p[password]```
51
51
23. In mysql, enter: ```create database magento```, and exit
52
52
24. Go to http://localhost with a browser, and install Magento through the web interface.
53
-
25. After installation, back to the terminal, and enter: ```sudo rm -rf var/cache/*```
53
+
25. After installation, back to Magento directory, and enter: ```sudo rm -rf var/cache/*```
54
54
26. Enter: ```sudo rm -rf var/generation/*```
55
55
27. Enter: ```sudo rm -rf var/page_cache/*```
56
56
28. cd to /var/www/html/bin
@@ -60,7 +60,22 @@ Ubuntu 14, and assumes you are installing Magento under /var/www/html/.
60
60
32. Enter: ```sudo chmod -R 777 /var/www/html```
61
61
33. Go to http://localhost, you should see Magento up and running.
62
62
34. From Magento, log in as admin, and create a product. After creating one, make sure this product
63
-
is also searchable from the front-end.
63
+
is:
64
+
* Either includes a shipping address, or does not have a weight.
65
+
* Searchable from the front-end.
66
+
67
+
If at some point the IP (base URL) of Magento has changed, then you will need to do these steps to update:
68
+
69
+
1. From the terminal, do: ```mysql -h localhost -u [username] -p[password]```
70
+
2. In the SQL prompt, do: ```use [magento database name]```
71
+
3. Do: ```select * from core_config_data;```, you should see both web/unsecure/base_url (config ID 2) and web/secure/base_url (config ID 3) with the hardcoded IP.
72
+
4. Do: ```update core_config_data set value='http://[IP]/' where config_id=2;```
73
+
5. Do: ```update core_config_data set value='https://[IP]/' where config_id=3;```
74
+
6. Back to the Magento directory, do: ```sudo rm -rf var/cache/*```
75
+
7. Also do: ```sudo rm -rf var/generation/*```
76
+
8. Also do: ```sudo rm -rf var/page_cache/*```
77
+
9. Browse to Magento again with the new IP, it should be up and running again.
78
+
64
79
65
80
After setting up Magento, you can use your exploit module:
0 commit comments