794_The.Definitive.Guide.to.Magento.pdf

Installation step 3 setting correct file permissions

Info icon This preview shows pages 31–35. Sign up to view the full content.

Installation Step 3: Setting Correct File Permissions For the installation process to work properly, Magento requires certain permissions be given to the top- level directory (where you uploaded the Magento files) and all Magento directories underneath it.
Image of page 31

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

CHAPTER 2 INSTALLING MAGENTO 10 Note Each server is different and may not require changes to be made. You can quickly test your folders permissions by visiting your Magento directory. If the page loads without errors, you can skip this step and move on to section “Installation Step 4: Setting Up a Magento database.” Using an FTP client, navigate to your Magento directory. Use the Change Permissions or Change Mode function built into your FTP client. Note that with previous command line installation often times you can click on the folder and change the permissions this way. Permissions are usually set in one of two ways, either by a number or organized by groups. If your FTP uses numbers, set the number to 777 or 0777. If your FTP client organizes permissions by groups, make sure that every group has access under Reading Writing and Execute, often times abbreviated as RWX. Note If your server has suPHP or suEXEC enabled, you will need to use permission 755 instead of 777. Figure 2-2 is an example of permissions set to 777 or 0777. Figure 2-2. An informational view of a folder. This allows you to easily adjust permission. If you are not using an FTP program, file permissions can also be set using a file browser from within your webhost cpanel or another administrative interface. Simply navigate to your Magento folder and adjust the permissions using the previous process detailed.
Image of page 32
CHAPTER 2 INSTALLING MAGENTO 11 Note While Magento’s documentation suggests that the directories be set to 777, this may not be the case in your specific situation. If setting your folder permissions to 777 does not work, try 755. This error is due to your hosting server having suPHP or suEXEC-enabled. Installation Step 4: Setting up a Magento Database Before you begin installing Magento, you will need to set up a database for Magento to use. Login to your webhost access panel or cpanel and navigate to the MySQL Databases section. Create a new database and a user that has all the privileges to access the database (see Figure 2-3). Figure 2-3. A detailed view of MySQL Database page. This page is used to set up new databases and users. You can assign users to specific databases after they have both been created.
Image of page 33

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

CHAPTER 2 INSTALLING MAGENTO 12 If you have chosen to use the sample data, login to your phpMyAdmin and open the database you just created. Click the import tab and locate the file you downloaded inside magento-sample-data- x.x.x.zip, called magento_sample_data_for_1.2.0.sql. This should import all of the sample data contained in this file.
Image of page 34
Image of page 35
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern