Skip to content

Magento: Installing Magento 1.7 On Server Running PHP5

installing-magento1-7-php5

This document covers the installation process for Magento using the Magento Downloader. The downloader reduces the size of files that need to be FTP‘ed from your local computer up to your server. When using the downloader, you just FTP the downloader to the server and when it is run, the downloader will fetch all of the Magento files for the current stable release. If you have downloaded the downloader package from magentocommerce.com, then follow this guide to complete the installation.

Instructions

1. Download the .zip or .tar.gz file from the Magento website and decompress it.

2. Upload the Magento web files to your web server via FTP

3. Create a MySQL database and user/password for Magento
This step varies by hosting provider and is out of the scope of this document. Consult your provider’s support/documentation for instructions on how to do this.

4. Ensure that the directories app/etc , var , and media are writable by the web server. To do so, navigate to the directory with your FTP client. Then locate the function “Change Permissions” or “Change Mode” in your FTP client and select it. These folders should read 777, or 0777 depending on the server.

5. In order magento to run under PHP5, you will need to upload the PHP5 CGI binary file to your cgi-bin. File can be dowloaded from here: http://www.magentocommerce.com/support/php5cgi/php5-cgi
set this php5-cgi file to 755, or 0755.

6. Modify the Magento .htaccess file.
By default, the web server will want to run the Magento application using PHP4, which will not work. In order to point it to the new PHP5 CGI binary, you must modify the .htaccess file in the Magento top-level directory.

Using your FTP client, edit the file .htaccess in your top-level magento directory.

The file is somewhat long so we won’t list it all here. But the first few lines at the top should look like this:

############################################
## uncomment these lines for CGI mode
## make sure to specify the correct cgi php binary file name
## it might be /cgi-bin/php-cgi

    #Action php5-cgi /cgi-bin/php5-cgi
    #AddHandler php5-cgi .php

First, remove the # symbol from the beginning of the last two lines listed in the excerpt above. This will enable the special CGI handler for your Magento site. Next, you’ll want to modify the path in the Action line to point to the location of the php5-cgi binary you uploaded. This path should be relative to the web root of your site.

7. Now use your web browser to surf to the Magento installation wizard. If you’ve uploaded the Magento files to http://www.example.com/magento/, then the wizard will be located here: http://www.example.com/magento/downloader.

8. Once in the wizard, you can configure various system-level settings that are required for Magento to function. Most options will be intelligently guessed for you, but you’re free to override any settings that don’t look right. At the very least, change the database parameters in the first box, “Database connection”, to match those of the database you set up in Step 3.

In case that you receive this error:
“Url is not accessible Unable to read response, or response is empty ”
tick the box for the following question during installation:
Skip Base URL validation before next step.

9. Success! You’ve completed a Magento installation. You can now visit the administration backend and begin configuring your new online store.

Source was found @ http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/magento_installation_guide

Possible Errors And Troubleshooting:
1) Manage Categories blank page error. if you receive an error page or blank page while trying to got to Category page @ the admin of magento: Fatal error: Call to undefined method Mage_Adminhtml_Block_Widget::getrowurl() in /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Adminhtml/Block/Widget/Grid.php on line 1607
The solution for this problem is here:
under app/code/core/Mage/Adminhtml/Block/Widget/Grid.php

CHANGE THIS:

public function getRowUrl($item)
{
$res = parent::getRowUrl($item);
return ($res ? $res : \'#\');
}

TO THIS:

public function getRowUrl($item)
{
$res = parent::getUrl($item);
return ($res ? $res : \'#\');
}

IF YOU RECEIVE AN ERROR MESSAGE TRY THIS INSTEAD:

public function getRowUrl($item)
{
$res = parent::getRowUrl($item);
return ($res ? $res : '#');
}

TO THIS:

public function getRowUrl($item)
{
$res = parent::getUrl($item);
return ($res ? $res : '#');
}
Read more from Magento

Share your thoughts, post a comment.

(required)
(required)

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments

*