Post by Daniel » Sat Nov 11, 2006 7:20 pm

I just got this email from some one trying to install opencart:


Hi,
the installation script does not work
my dir is /var/www/opencart
into browser is localhost/opencart

Best regards.
          MAX

I recommend adding a trailing slash to the end of the directory field!

from:

/var/www/opencart

to:

/var/www/opencart/


Please let me know if any one else is having this problem!

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by bojan » Wed Nov 15, 2006 4:32 am

Hello,

I have a same problem. My temp directory is like this

http://localhost/radni/opencart/
C:/server/xampp/htdocs/radni/opencart/

I've put trailing slashes at the and but still the same problem. Installation interface come up but after I fill in all the fields and press "Continue" button, look what showes up in browser adress bar

http://localhost/install/index.php

And there is nothing!

Maybe someone is willing to give me the config.php example.

Thanks!
Bojan

Newbie

Posts

Joined
Wed Nov 15, 2006 4:19 am

Post by Daniel » Wed Nov 15, 2006 1:44 pm

Config example is a good idea!

Catalog:


OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Daniel » Wed Nov 15, 2006 1:46 pm

Admin:


OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by massimo61 » Thu Nov 16, 2006 2:08 am

Hi Daniel,
the config.php into opencart V6 is empty.

Newbie

Posts

Joined
Mon Nov 13, 2006 10:02 pm

Post by Daniel » Thu Nov 16, 2006 10:45 am

Hi,

Yes the intall.php writes the information to config.php.

I will try to address this issue on the next release.

You can copy the information I have written above into the config.php for both catalog and admin.

Also I have only tested the install on linux and apache. You can trying downloading wamp and installing it on windows.

Has anyone got v0.6 working yet?

This is how my config is set up:


OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by massimo61 » Thu Nov 16, 2006 6:32 pm

Daniel wrote:
Also I have only tested the install on linux and apache. You can trying downloading wamp and installing it on windows.
I have linux Ubuntu server 6.06 with apache2 and php4+mysql5 but the install script don't work :(

If it does not work I cannot begin the translation.
Moreover I can try also on serveur windows with xammp when the install works :):)

Ciao.
          MAx

Newbie

Posts

Joined
Mon Nov 13, 2006 10:02 pm

Post by Daniel » Thu Nov 16, 2006 6:43 pm

ok I need to make another release to fix the install problem.

I have already started improving how the services  work so I would like to finish that first before changing the installation.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by bojan » Fri Nov 17, 2006 9:07 pm

I've tryed everything but with no progress!

Daniel, can You please tell us when we can expect new installer?

Thanks :)

Newbie

Posts

Joined
Wed Nov 15, 2006 4:19 am

Post by nicefirework » Sat Nov 18, 2006 11:29 am

I try copy configuration to config.php and setting to my local website but i found a lot of error. I use php 5 on my local PC. The error is " cannot modify header information, header already sent. bla... bla...bla.. on file:..../session.php"
Maybe it cause function session start(); but i dont know how to correct it.

Newbie

Posts

Joined
Sat Nov 18, 2006 11:21 am

Post by Daniel » Sat Nov 18, 2006 2:11 pm

bojan wrote: I've tryed everything but with no progress!

Daniel, can You please tell us when we can expect new installer?

Thanks :)
I can come up with another relase maybe 2 weeks. I currently have a lot of work on that needs finishing next week.

The problem is I need to do alot of testing to get the install script working properly. I think the problem ishow peoples php.ini is set up.

I will look at other peoples script to see what the best methods to use.

I'm going to make another post with code people can just copy into config.php to get opencart working.
Last edited by Daniel on Sat Nov 18, 2006 2:21 pm, edited 1 time in total.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Daniel » Sat Nov 18, 2006 2:13 pm

nicefirework wrote: I try copy configuration to config.php and setting to my local website but i found a lot of error. I use php 5 on my local PC. The error is " cannot modify header information, header already sent. bla... bla...bla.. on file:..../session.php"
Maybe it cause function session start(); but i dont know how to correct it.
cannot modify header information normally means that the is an error that has come up before the session_start function is set.

I think the problem is the directories are not setup properly. Is there any other error messages?
Last edited by Daniel on Sat Nov 18, 2006 2:18 pm, edited 1 time in total.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by nicefirework » Sun Nov 19, 2006 8:35 am

Yes, there is another error, this the copy of the error :

Warning: Cannot modify header information - headers already sent by (output started at k:\localhost\htdocs\opencart\config.php:25) in K:\localhost\htdocs\opencart\include\session.php on line 16

Warning: Cannot modify header information - headers already sent by (output started at k:\localhost\htdocs\opencart\config.php:25) in K:\localhost\htdocs\opencart\include\language.php on line 46

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in K:\localhost\htdocs\opencart\include\language.php on line 74

Warning: Cannot modify header information - headers already sent by (output started at k:\localhost\htdocs\opencart\config.php:25) in K:\localhost\htdocs\opencart\include\currency.php on line 48

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in K:\localhost\htdocs\opencart\include\language.php on line 58

I dont know what its mean.

Newbie

Posts

Joined
Sat Nov 18, 2006 11:21 am

Post by teocrito » Mon Nov 20, 2006 5:15 am

Here it goes admin/config.php

// HTTP
define('HTTP_SERVER', 'http://localhost/opencart/admin/');
define('HTTP_CATALOG', 'http://localhost/opencart/catalog/');
define('HTTP_IMAGE', 'http://localhost/opencart/image/');

// HTTPS
define('HTTPS_SERVER', '');
define('HTTPS_IMAGE', '');

// DIR
define('DIR_IMAGE', '/var/www/opencart/image/');
define('DIR_CACHE', '/var/www/opencart/cache/');
define('DIR_INCLUDE', '/var/www/opencart/include/');
define('DIR_LANGUAGE', '/var/www/opencart/admin/language/');
define('DIR_MODULE', '/var/www/opencart/admin/module/');
define('DIR_PLUGIN', '/var/www/opencart/admin/plugin/');
define('DIR_TEMPLATE', '/var/www/opencart/admin/template/');

// Catalog
define('DIR_CATALOG_TEMPLATE', '/var/www/opencart/catalog/template/');
define('DIR_CATALOG_LANGUAGE', '/var/www/opencart/catalog/language/');
define('DIR_CATALOG_SERVICE', '/var/www/opencart/catalog/service/');

// Database
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', 'xxxxxx');
define('DB_DATABASE', 'opencart');
?>

It would like that it had the option not to activate the Error: register_globals is enabled!

Here in Brazil the majority of the lodging servers has register_globals = ON

Daniel sees what it can make to solve!

Newbie

Posts

Joined
Fri Nov 03, 2006 10:23 pm

Post by Daniel » Mon Nov 20, 2006 10:39 am

register_globals is a major security problem that is being removed completely as of PHP6. By default it is set to off on PHP5.
Last edited by Daniel on Mon Nov 20, 2006 4:41 pm, edited 1 time in total.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Daniel » Mon Nov 20, 2006 4:44 pm

People having trouble with there config.php should try copying and pasting this code into there catalog config.php

Code: Select all

<?php 
// HTTP
define('HTTP_SERVER', 'http://' . $_SERVER['HTTP_HOST'] . '/');
define('HTTP_IMAGE', HTTP_SERVER . 'image/');

// HTTPS
define('HTTPS_SERVER', 'http://' . $_SERVER['HTTP_HOST'] . '/');
define('HTTPS_IMAGE', HTTPS_SERVER . 'image/');

// DIR
define('DIR_IMAGE', $_SERVER['DOCUMENT_ROOT'] . '/image/');
define('DIR_CACHE', $_SERVER['DOCUMENT_ROOT'] . '/cache/');
define('DIR_INCLUDE', 'include/');
define('DIR_SERVICE', 'catalog/service/'); 
define('DIR_LANGUAGE', 'catalog/language/');
define('DIR_MODULE', 'catalog/module/');
define('DIR_PLUGIN', 'catalog/plugin/');  
define('DIR_TEMPLATE', 'catalog/template/');  

// Database
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'Put you database username here!');
define('DB_PASSWORD', 'Put you database password here!');
define('DB_DATABASE', 'Put you database name here!');
?>

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Daniel » Mon Nov 20, 2006 4:45 pm

Admin Config:

Code: Select all

<?php 
// HTTP
define('HTTP_SERVER', 'http://' . $_SERVER['HTTP_HOST'] . '/admin/');
define('HTTP_CATALOG', 'http://' . $_SERVER['HTTP_HOST'] . '/');
define('HTTP_IMAGE', HTTP_CATALOG . 'image/');

// HTTPS
define('HTTPS_SERVER', 'http://' . $_SERVER['HTTP_HOST'] . '/admin/');
define('HTTPS_IMAGE', HTTP_CATALOG . 'image/');

// DIR
define('DIR_IMAGE', $_SERVER['DOCUMENT_ROOT'] . '/image/');
define('DIR_CACHE', $_SERVER['DOCUMENT_ROOT'] . '/cache/');
define('DIR_INCLUDE', '../include/');
define('DIR_LANGUAGE', 'language/');
define('DIR_PLUGIN', 'plugin/');  
define('DIR_MODULE', 'module/');
define('DIR_TEMPLATE', 'template/');  

// Catalog 
define('DIR_CATALOG_TEMPLATE', '../catalog/template/'); 
define('DIR_CATALOG_LANGUAGE', '../catalog/language/'); 
define('DIR_CATALOG_SERVICE', '../catalog/service/'); 

// Database
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'Put you database username here!');
define('DB_PASSWORD', 'Put you database password here!');
define('DB_DATABASE', 'Put you database name here!');
?>

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Daniel » Thu Nov 23, 2006 10:42 am

Some one has emailed me with a solution to the install problem so I'm going to make another release soon.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by ms7of9 » Fri Dec 01, 2006 9:46 am

hi daniel,
so we can't use it if we have register globals enabled?  that's the error i'm getting.

thanks
7 :)

Newbie

Posts

Joined
Fri Nov 24, 2006 3:15 am

Post by Daniel » Fri Dec 01, 2006 7:07 pm

ms7of9 wrote: hi daniel,
so we can't use it if we have register globals enabled?  that's the error i'm getting.

thanks
7 :)
Yes that is correct!

register globals are very bad to have enabled and makes it very hard to protect against hacking attempts!

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm
Who is online

Users browsing this forum: No registered users and 25 guests