Erro ao instalar opencart 1.5.6.1 no MAMP
Enviado: 21 Mar 2014, 15:41
Boa galera.sou leandro sou novo aqui na ara de programação tbm e gostaria de uma ajuda.
instalei no meu mac o MAMP que esta funcionando perfeitamente e o opencart 1.5.6.1 que baixei . dei permissão pra todas as pastas e subpastas no htdocs com o comando chmod -R 777 htdocs , quanto ao curl eu não sei habilitar ele nesse servidor.
tendo em vista que nao sei se o curl ta rodando me apresenta o seguinte erro ao entrar no diretório de instalação(upload/install/) :
0001;532c63fd;Google\x20Chrome;rotected $registry; public function __construct($registry) { $this->registry = $registry; } public function __get($key) { return $this->registry->get($key); } public function __set($key, $value) { $this->registry->set($key, $value); } } ?>0001;532c63fd;Google\x20Chrome;rivate $data = array(); public function get($key) { return (isset($this->data[$key]) ? $this->data[$key] : null); } public function set($key, $value) { $this->data[$key] = $value; } public function has($key) { return isset($this->data[$key]); } } ?>0001;532c63fd;Google\x20Chrome;rl; private $ssl; private $rewrite = array(); public function __construct($url, $ssl = '') { $this->url = $url; $this->ssl = $ssl; } public function addRewrite($rewrite) { $this->rewrite[] = $rewrite; } public function link($route, $args = '', $connection = 'NONSSL') { if ($connection == 'NONSSL') { $url = $this->url; } else { $url = $this->ssl; } $url .= 'index.php?route=' . $route; if ($args) { $url .= str_replace('&', '&', '&' . ltrim($args, '&')); } foreach ($this->rewrite as $rewrite) { $url = $rewrite->rewrite($url); } return $url; } } ?>0001;532c63fd;Google\x20Chrome; $data = array(); public function get($key) { return (isset($this->data[$key]) ? $this->data[$key] : null); } public function set($key, $value) { $this->data[$key] = $value; } public function has($key) { return isset($this->data[$key]); } public function load($filename) { $file = DIR_CONFIG . $filename . '.php'; if (file_exists($file)) { $_ = array(); require($file); $this->data = array_merge($this->data, $_); } else { trigger_error('Error: Could not load config ' . $filename . '!'); exit(); } } } ?>0001;532c63fd;Google\x20Chrome; private $key; private $iv; public function __construct($key) { $this->key = hash('sha256', $key, true); $this->iv = mcrypt_create_iv(32, MCRYPT_RAND); } public function encrypt($value) { return strtr(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $this->key, $value, MCRYPT_MODE_ECB, $this->iv)), '+/=', '-_,'); } public function decrypt($value) { return trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $this->key, base64_decode(strtr($value, '-_,', '+/=')), MCRYPT_MODE_ECB, $this->iv)); } } ?>0001;532c63fd;Google\x20Chrome;ilename; public function __construct($filename) { $this->filename = $filename; } public function write($message) { $file = DIR_LOGS . $this->filename; $handle = fopen($file, 'a+'); fwrite($handle, date('Y-m-d G:i:s') . ' - ' . $message . "\n"); fclose($handle); } } ?>0001;532c63fd;Google\x20Chrome; $data = array(); public function __construct() { if (!session_id()) { ini_set('session.use_cookies', 'On'); ini_set('session.use_trans_sid', 'Off'); session_set_cookie_params(0, '/'); session_start(); } $this->data =& $_SESSION; } function getId() { return session_id(); } } ?>0001;532c63fd;Google\x20Chrome;c $data = array(); public function fetch($filename) { $file = DIR_TEMPLATE . $filename; if (file_exists($file)) { extract($this->data); ob_start(); include($file); $content = ob_get_clean(); return $content; } else { trigger_error('Error: Could not load template ' . $file . '!'); exit(); } } } ?>
////////////////////////////////////////////////////////////////////////////////////////////////////////////
bom se alguem pudr me ajudar. obrigado
instalei no meu mac o MAMP que esta funcionando perfeitamente e o opencart 1.5.6.1 que baixei . dei permissão pra todas as pastas e subpastas no htdocs com o comando chmod -R 777 htdocs , quanto ao curl eu não sei habilitar ele nesse servidor.
tendo em vista que nao sei se o curl ta rodando me apresenta o seguinte erro ao entrar no diretório de instalação(upload/install/) :
0001;532c63fd;Google\x20Chrome;rotected $registry; public function __construct($registry) { $this->registry = $registry; } public function __get($key) { return $this->registry->get($key); } public function __set($key, $value) { $this->registry->set($key, $value); } } ?>0001;532c63fd;Google\x20Chrome;rivate $data = array(); public function get($key) { return (isset($this->data[$key]) ? $this->data[$key] : null); } public function set($key, $value) { $this->data[$key] = $value; } public function has($key) { return isset($this->data[$key]); } } ?>0001;532c63fd;Google\x20Chrome;rl; private $ssl; private $rewrite = array(); public function __construct($url, $ssl = '') { $this->url = $url; $this->ssl = $ssl; } public function addRewrite($rewrite) { $this->rewrite[] = $rewrite; } public function link($route, $args = '', $connection = 'NONSSL') { if ($connection == 'NONSSL') { $url = $this->url; } else { $url = $this->ssl; } $url .= 'index.php?route=' . $route; if ($args) { $url .= str_replace('&', '&', '&' . ltrim($args, '&')); } foreach ($this->rewrite as $rewrite) { $url = $rewrite->rewrite($url); } return $url; } } ?>0001;532c63fd;Google\x20Chrome; $data = array(); public function get($key) { return (isset($this->data[$key]) ? $this->data[$key] : null); } public function set($key, $value) { $this->data[$key] = $value; } public function has($key) { return isset($this->data[$key]); } public function load($filename) { $file = DIR_CONFIG . $filename . '.php'; if (file_exists($file)) { $_ = array(); require($file); $this->data = array_merge($this->data, $_); } else { trigger_error('Error: Could not load config ' . $filename . '!'); exit(); } } } ?>0001;532c63fd;Google\x20Chrome; private $key; private $iv; public function __construct($key) { $this->key = hash('sha256', $key, true); $this->iv = mcrypt_create_iv(32, MCRYPT_RAND); } public function encrypt($value) { return strtr(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $this->key, $value, MCRYPT_MODE_ECB, $this->iv)), '+/=', '-_,'); } public function decrypt($value) { return trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $this->key, base64_decode(strtr($value, '-_,', '+/=')), MCRYPT_MODE_ECB, $this->iv)); } } ?>0001;532c63fd;Google\x20Chrome;ilename; public function __construct($filename) { $this->filename = $filename; } public function write($message) { $file = DIR_LOGS . $this->filename; $handle = fopen($file, 'a+'); fwrite($handle, date('Y-m-d G:i:s') . ' - ' . $message . "\n"); fclose($handle); } } ?>0001;532c63fd;Google\x20Chrome; $data = array(); public function __construct() { if (!session_id()) { ini_set('session.use_cookies', 'On'); ini_set('session.use_trans_sid', 'Off'); session_set_cookie_params(0, '/'); session_start(); } $this->data =& $_SESSION; } function getId() { return session_id(); } } ?>0001;532c63fd;Google\x20Chrome;c $data = array(); public function fetch($filename) { $file = DIR_TEMPLATE . $filename; if (file_exists($file)) { extract($this->data); ob_start(); include($file); $content = ob_get_clean(); return $content; } else { trigger_error('Error: Could not load template ' . $file . '!'); exit(); } } } ?>
////////////////////////////////////////////////////////////////////////////////////////////////////////////
bom se alguem pudr me ajudar. obrigado