How to install Magento on (mt) Media Temple (dv) Dedicated-Virtual Server

Prerequisites

This article is a quick step-by-step tutorial on installing Magento on Media Temple (mt) Dedicated-Virtual Server (dv) account. If you have (dv) Dedicated-Virtual Server account you’d read our How to install Magento on (mt) Media Temple (gs) Grid-Service tutorial.

Download Magento

See Getting Magento CE 1.8 or EE 1.13.

Install PHP5 CGI binary

Media Temple does not yet provide PHP 5.2 or newer on their (dv) servers. As Magento is a PHP5-only application you will have to install PHP5 as a CGI binary and configure the web server to use it instead of the default PHP4.

It is possible to compile a PHP5 binary yourself, but for the purposes of this solution, we’ve provided one for you. You can download it here: http://www.magentocommerce.com/support/php5cgi/php5-cgi



cd /var/www/

chmod 755 cgi-bin

cd cgi-bin

wget http://www.magentocommerce.com/support/php5cgi/php5-cgi

chmod 755 php5-cgi

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 to look like this:



php_flag magic_quotes_gpc off 
php_flag short_open_tag on 

Action php5
-cgi /cgi-bin/php5-cgi 
AddHandler php5
-cgi .php
 
DirectoryIndex index
.php 
 
RewriteEngine on 
 
RewriteCond 
%{REQUEST_FILENAME} !-
RewriteCond 
%{REQUEST_FILENAME} !-
RewriteCond 
%{REQUEST_FILENAME} !-
 
RewriteRule 
.* index.php

Set necessary permissions

See Before You Install Magento: Recommended File System Ownership and Privileges.

Create a MySQL database and user


Go to Manage Databases interface, create a database, a MySQL user, and password that Magento will use.









Right down all those settings (including database hostname) - you will need that information while installing Magento.


Run the installation wizard

Use your web browser to surf to any Magento page and you will be forwarded to the installation wizard.

Magento is distributed under the Open Software License (OSL 3.0), you will have to read the license and confirm that you agree on the first step. Check out License / Trademarks FAQ for more information.

Specify database connection and URLs


Put database connection data into the form fields, check whether installation wizard correctly determined your web-host name and path.

Create an administrator account

Enjoy using Magento! grin




RSS: New Article posts

Explore the Knowledge Base