Try the Demo

Magento Forum

   
Magento error installation
 
Boatdock
Jr. Member
 
Total Posts:  3
Joined:  2013-02-08
 

Hi there, would someone be able to help me with this error? I have uploaded DB, imported sample data, uploaded sample sql and now if I go on the web is giving me this message…
Please help!

<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* @category Mage
* @package Mage
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

if (version_compare(phpversion(), ‘5.2.0’, ‘<’)===true) {
echo ‘<div style="font:12px/1.35em arial, helvetica, sans-serif;">
<div style="margin:0 0 25px 0; border-bottom:1px solid #ccc;">
<h3 style="margin:0; font-size:1.7em; font-weight:normal; text-transform:none; text-align:left; color:#2f2f2f;">
Whoops, it looks like you have an invalid PHP version.</h3></div><p>Magento supports PHP 5.2.0 or newer.
<a href="http://www.magentocommerce.com/install" target="">Find out</a> how to install</a>
Magento using PHP-CGI as a work-around.</p></div>’;
exit;
}

/**
* Error reporting
*/
error_reporting(E_ALL | E_STRICT);

/**
* Compilation includes configuration file
*/
define(’MAGENTO_ROOT’, getcwd());

$compilerConfig = MAGENTO_ROOT . ‘/includes/config.php’;
if (file_exists($compilerConfig)) {
include $compilerConfig;
}

$mageFilename = MAGENTO_ROOT . ‘/app/Mage.php’;
$maintenanceFile = ‘maintenance.flag’;

if (!file_exists($mageFilename)) {
if (is_dir(’downloader’)) {
header("Location: downloader");
} else {
echo $mageFilename.” was not found”;
}
exit;
}

if (file_exists($maintenanceFile)) {
include_once dirname(__FILE__) . ‘/errors/503.php’;
exit;
}

require_once $mageFilename;

#Varien_Profiler::enable();

if (isset($_SERVER[’MAGE_IS_DEVELOPER_MODE’])) {
Mage::setIsDeveloperMode(true);
}

#ini_set(’display_errors’, 1);

umask(0);

/* Store or website code */
$mageRunCode = isset($_SERVER[’MAGE_RUN_CODE’]) ? $_SERVER[’MAGE_RUN_CODE’] : ‘’;

/* Run store or run website */
$mageRunType = isset($_SERVER[’MAGE_RUN_TYPE’]) ? $_SERVER[’MAGE_RUN_TYPE’] : ‘store’;

Mage::run($mageRunCode, $mageRunType);

 
Magento Community Magento Community
Magento Community
Magento Community
 
Brent W Peterson
Moderator
 
Avatar
Total Posts:  3162
Joined:  2009-02-26
Minneapolis MN
 

It looks like your service is not processing your PHP files. Can you make a file called phpinfo.php and add phpinfo(); to make sure it works?

 Signature 

Brent W. Peterson
Chief Magento Evangelist for WagentoCreative
==========
Follow me on Twitter @brentwpeterson

**Always remember to backup before trying anything new

 
Magento Community Magento Community
Magento Community
Magento Community
 
Boatdock
Jr. Member
 
Total Posts:  3
Joined:  2013-02-08
 

Thank you very much for your reply.
Should I just create a text file and write inside “phpinfo();” ? And after try to open the page? or what should I do?

 
Magento Community Magento Community
Magento Community
Magento Community
 
MagenX
Guru
 
Total Posts:  641
Joined:  2008-05-26
Dublin
 

http://www.magentocommerce.com/knowledge-base/entry/how-do-i-know-if-my-server-is-compatible-with-magento

before you run anything just make sure you have PHP in your hosting package, and it works as needed.

 Signature 

MagenX - Magento and Nginx Performance Tuning Services
FPC InstallationMySQL TuningServer Optimizationnow 90 days Support included
http://www.magenx.com | | magento nginx config: http://nginxconfig.com || magento mysql settings -> my.cnf

 
Magento Community Magento Community
Magento Community
Magento Community
 
Boatdock
Jr. Member
 
Total Posts:  3
Joined:  2013-02-08
 

And this is the result, do you know what is wrong? I have Godaddy Deluxe (http://www.godaddy.com/hosting/web-hosting.aspx?ci=76393), is not that enough? I’m really new to this. Appreciate your help.

<?
extension_check(array(
'curl',
'dom',
'gd',
'hash',
'iconv',
'mcrypt',
'pcre',
'pdo',
'pdo_mysql',
'simplexml'
));

function extension_check($extensions) {
$fail = '';
$pass = '';

if(version_compare(phpversion(), '5.2.0', '<')) {
$fail .= '<li>You need<strong> PHP 5.2.0</strong> (or greater)</li>';
}
else {
$pass .='<li>You have<strong> PHP 5.2.0</strong> (or greater)</li>';
}

if(!ini_get('safe_mode')) {
$pass .='<li>Safe Mode is <strong>off</strong></li>';
preg_match('/[0-9]\.[0-9]+\.[0-9]+/', shell_exec('mysql -V'), $version);

if(version_compare($version[0], '4.1.20', '<')) {
$fail .= '<li>You need<strong> MySQL 4.1.20</strong> (or greater)</li>';
}
else {
$pass .='<li>You have<strong> MySQL 4.1.20</strong> (or greater)</li>';
}
}
else { $fail .= '<li>Safe Mode is <strong>on</strong></li>'; }

foreach($extensions as $extension) {
if(!extension_loaded($extension)) {
$fail .= '<li> You are missing the <strong>'.$extension.'</strong> extension</li>';
}
else{ $pass .= '<li>You have the <strong>'.$extension.'</strong> extension</li>';
}
}

if($fail) {
echo '<p><strong>Your server does not meet the following requirements in order to install Magento.</strong>';
echo '<br>The following requirements failed, please contact your hosting provider in order to receive assistance with meeting the system requirements for Magento:';
echo '<ul>'.$fail.'</ul></p>';
echo 'The following requirements were successfully met:';
echo '<ul>'.$pass.'</ul>';
} else {
echo '<p><strong>Congratulations!</strong> Your server meets the requirements for Magento.</p>';
echo '<ul>'.$pass.'</ul>';

}
}
?>

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top