The following guide explains the installation of Magento CE onto a web server. Before we begin, check if the Magento Hosting Server meets the following requirements
- Linux, Windows, or any UNIX-based OS
- Apache– 1.x or 2.x
- PHP 5.2 or newer along with certain PHP extensions as specified in the Magento website.
- MySQL 4.1.2 or higher
- Safe mode should be turned off for Magento to function
Steps for Installing Magento
The following steps are for installing Magento using the Downloader. The steps will be similar for full release
Step #0. Downloading following files:
- Downloader (in .zip or .tar.gz) – This installs the full release of Magento CE.
- Sample Data (in .zip or .tar.gz) – If you are working with Magento for the first time, this file is highly recommended.
Step #1. Uploading files to server:
You might have downloaded a file named magento-downloader-x.x.x.zip), unzip this file. Using your FTP program create a directory named ‘magento’ (or store or anything) and upload the contents to this directory. Now unzip the magento-sample-data.x.x.x.zip, and you would find two files–
- magento_sample_data_for_1.2.0.sql – this will be used later
- Folder media– upload this file to the ‘magento’ directory, created above.
Step #2. Setting Permissions ( Visit yourdomain.com/magento. If the page shows no errors, then skip this step)
Using your FTP client navigate to the folder ‘magento’ and use ‘change permissions’ (or similar option). Usually this is set in two ways:
- If as an Octal number¬– Set value to 0777
- If as permission groups– set all the groups’ (User, Group, World) permission to Read, Write, Execute
Step #3. Setup Magento database
Navigate to the MySQL Database using your webhost control panel. Create a new database and a user with administrative privileges for the database. Now, go to phpMyAdmin and open the database just created. Import magento_sample_data_for_1.2.0.sql (step#1.a)
Step #4. Start installation
Direct your browser to yourdomain.com/magento. You will find the Magento Setup Wizard. Click the ‘Start downloader process’ (if you have been following steps with full release file, then this tab will be absent, user license will be shown). Start downloading and after process is complete, user license will be shown. Continue next.
- Localization– Here set the location, time-zone and currency of your store.
- Database Configuration–
- Create the Admin account with the details the page asks.
- Database connection– Enter your hostname, username and password of the database created in step#3.
- Web access¬– Enter the store URL as yourdomain.com/magento , leave admin page to default yourdomain.com/magento/admin . If you have an SSL, check the box.
- Session storage information– set Database or File Storage according to your preference. Storing in database is more secure, but it might slow down the store.
Step #5. You are done!
Note down the encryption key shown at the end, for future use.