The best way to learn Magento is to download it and play with it on your local machine. Installing Magento on your local machine makes a lot of sense. Magento is based on PHP/MySQL, so you’ll need a database and a server to build your store and content pages dynamically. A local server is also handy for modifying/customizing Magento files, without worrying about affecting a live server.
Here are the steps to installing a MAMP server/Installing Magento on your Mac:
- Download and install MAMP.
- Open MAMP and click on the start page.
- Click on the PHPMyPHP admin link at top of start page, to view installed databases.
- In the middle of the page there is a Create New Database Box– enter magento in the box and click the Create button.
- You’ll see your new Magento database, as well as the SQL query that generated the database, and see that there are no tables in the database, it’s just an empty database. Magento will build tables as part of the installation process.
- Go to MagentoCommerce, and Download Magento. You may need to create an account in order to download.
- When the download dialog box opens, save the download to your downloads file.
- After the download has completed, you will need to create a directory on your MAMP server to host Magento. I suggest you open your finder, navigate to Applications/MAMP/htdocs/ and add a directory called magento. Keep your magento directory open in finder. Open the Magento download and let it extract. Select all the files inside and drag them to your Applications/MAMP/htdocs/magento directory.
- Since Magneto sets cookies, and most browsers don’t set cookies on localhost (where your Magento is installed) we need to work around this. The default address to your Magento install is http://localhost:8888/, but since the browser won’t play well with localhost, we will work around this issue.
- Rather than using local host, we will use the IP address of our computer as the server address, like so-http://127.0.0.1:8888/magento/
- Pointing your browser to this address will begin the installation process. The username and password for MAMP databases is root/root.
- The next page will setup your admin account, so make sure you write it down. When you are finished, make sure to record the following info-
Magento url: http://127.0.0.1:8888/Magento/
username: admin password123
- After your install is complete you can login to your backend here-http://127.0.0.1:8888/Magento/index.php/admin/
or your frontend here-http://127.0.0.1:8888/Magento/index.php/
Now, take a few minutes and relax with a cold beer, you have earned it…
Next step- Adding Categories to your Magento store.