Saturday, November 26, 2011

How to Setup Mangeto

1. Manual Installation of Magento

Step 1: Download the latest stable Magento package from Magento Community

Step 2: Change the file permissions for the Magento files.
  • - file: magento/var/.htaccess
  • - directory: magento/app/etc
  • - directory: magento/var
  • - all the directories under: magento/media
If you are using FTP, set the permissions of each to 777 or check read/write/execute for owner, user and group. If you are using SSH,
use the following commands:
chmod o+w var var/.htaccess app/etc
chmod -R o+w media
Step 3: Create a MySQL database and assign a user to it through cPanel -> MySQL Databases. Remember the database details, since you will need them during the script installation.
The MySQL database is created with your username as prefix – username_databasename, and this is the name you have to use for your application.
Step 4: In our example we will install  Magento in the public_html/magento folder. Once the package is uploaded and extracted and you have a MySQL database, navigate to
Step 5: Choose the preferred Time Zone, Locale and Currency and Click on the Continue button.
Step 6: Enter the database details: Database Name, User Name and User Password. You can leave the other options intact. Click on the check box next to “Skip Base URL validation before next step”.
Step 7: At this point you should enter the personal information and the admin login details which you want to use. You can leave the Encryption Key field empty and the script will generate one for you.
Step 8: Write down your encryption key; it will be used by Magento to encrypt passwords, credit cards and other confidential information.
Well done! Your Magento installation was successfully completed. Now you can navigate to its Frontend or Backend.

2. Importing the Sample Data

Step 1:  Download sample data from magento commerce website.
Step 2:  Copy image into the media folder of magento.
Step 3:  Now create new database and import some sample data to our newly created database before we install Magento.
Step 4:   Reinstall magento using steps mentioned above (except creating new database). Mentioned magento database which has sample data. Magento will auto detect. If database has set of tables then it will skip the table creation and will auto detect product, category and other settings which are imported using sample data.

3. System Requirements

  • PHP Compatibility:
    • 5.2.13+
    • Required extensions:
      • PDO_MySQL
      • simplexml
      • mcrypt
      • hash
      • GD
      • DOM
      • iconv
      • curl
      • SOAP (if Webservices API is to be used)
    • Safe_mode off
    • Memory_limit no less than 256Mb (preferably 512)
  • MySQL:
    • 4.1.20 or newer
    • InnoDB storage engine
OR   You can test your server for compatibility by following these simple steps:
  1. Download the magento-check file to your computer and unzip it.
  2. Upload the extracted magento-check.php file to the Magento directory on your server
  3. In your browser navigate to this page: (  e.g. domain/magento-check.php )

No comments: