Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to install OsCommerce on Windows XP?


steelman

Recommended Posts

Hi

 

I have tried to install OsCommerce to my desktop computer which has Windows XP, PHP5 and MySQL (5.0.16-nt). The installation stops at step http://localhost/oscommerce/catalog/instal...tall.php?step=3 where it says something like: "The following error has occurred: SQL file does not exist: /install/oscommerce.sql"

 

The funny thing is that I have laptop with Windows XP, PHP4 and MySQL 4 and the OsCommerce works fine. Is there some problems with combination of PHP5 and MySQL 5 and OsCommerce or what?

 

I can bypass the "SQL file does not exists" problem by setting absolute path but then I face the next problem, the site (actually the links of the web shop) does not work properly.

 

What is the best solution? Hack the code myself (and lose the possibility to update the next version of OsCommerce) or try to change some settings (what settings?) or what???

 

I have set the register_globals to On, register long globals etc.. but it does not help.

 

If you have any ideas, I am willing to listen :-)

 

BR,

Ville

Link to comment
Share on other sites

You are probably trying to install on a Windows server.

If they were people - they wouldn't be able to find their own way home.

You need to edit install/templates/pages/install_3.php and where you see:

$sql_file = $dir_fs_www_root . 'install/oscommerce.sql';

 

Edit it to (change /path_to_root/ to real path):

$sql_file = '/path_to_root/install/oscommerce.sql';

 

You will need to know the path to the root of your website.

 

Vger

Link to comment
Share on other sites

You are probably trying to install on a Windows server.

If they were people - they wouldn't be able to find their own way home.

You need to edit install/templates/pages/install_3.php and where you see:

$sql_file = $dir_fs_www_root . 'install/oscommerce.sql';

 

Edit it to (change /path_to_root/ to real path):

$sql_file = '/path_to_root/install/oscommerce.sql';

 

You will need to know the path to the root of your website.

 

Vger

 

Hi,

 

"I have tried to install OsCommerce to my desktop computer which has Windows XP" --> Yes, I am using Windows operating system...

 

"I can bypass the "SQL file does not exists" problem by setting absolute path" --> Yes, I have tried to set the absolute path...

 

Like I said, setting the absolute path is not a solution, even I can install and setup the OsCommerce but the main problem is that the webshop itself and especially the admin pages does not work properly, the links are incorrect!

 

Any other ideas?

 

BR,

Ville

Link to comment
Share on other sites

Hi,

 

"I have tried to install OsCommerce to my desktop computer which has Windows XP" --> Yes, I am using Windows operating system...

 

"I can bypass the "SQL file does not exists" problem by setting absolute path" --> Yes, I have tried to set the absolute path...

 

Like I said, setting the absolute path is not a solution, even I can install and setup the OsCommerce but the main problem is that the webshop itself and especially the admin pages does not work properly, the links are incorrect!

 

Any other ideas?

 

BR,

Ville

 

the wrong paths i got by not using the correct path in the websetup. Did you try http://localhost/ ? Maybe it helps i did the same thing wrong (forgetting http://) online and the url's got messed up.

Link to comment
Share on other sites

the wrong paths i got by not using the correct path in the websetup. Did you try http://localhost/ ? Maybe it helps i did the same thing wrong (forgetting http://) online and the url's got messed up.

 

Hi

 

I set the absolute path myself:

 

//$sql_file = $dir_fs_www_root . 'install/oscommerce.sql';

$sql_file = 'c:/inetpub/wwwroot/oscommerce/catalog/install/oscommerce.sql';

 

I could now pass the step 3.

 

Now I have setup the paths:

 

www-address: localhost

web server root directory: c:/inetpub/wwwroot/oscommerce/catalog/

 

The next problem appears at step 7:

 

Warning: fopen(c:/inetpub/wwwroot/oscommerce/catalog/includes/configure.php) [function.fopen]: failed to open stream: Permission denied in c:\Inetpub\wwwroot\oscommerce\catalog\install\templates\pages\install_7.php on line 209

 

Warning: fputs(): supplied argument is not a valid stream resource in c:\Inetpub\wwwroot\oscommerce\catalog\install\templates\pages\install_7.php on line 210

 

Warning: fclose(): supplied argument is not a valid stream resource in c:\Inetpub\wwwroot\oscommerce\catalog\install\templates\pages\install_7.php on line 211

 

Warning: fopen(c:/inetpub/wwwroot/oscommerce/catalog/admin/includes/configure.php) [function.fopen]: failed to open stream: Permission denied in c:\Inetpub\wwwroot\oscommerce\catalog\install\templates\pages\install_7.php on line 259

 

Warning: fputs(): supplied argument is not a valid stream resource in c:\Inetpub\wwwroot\oscommerce\catalog\install\templates\pages\install_7.php on line 260

 

Warning: fclose(): supplied argument is not a valid stream resource in c:\Inetpub\wwwroot\oscommerce\catalog\install\templates\pages\install_7.php on line 261

 

 

I bypassed the problem by giving full rights to the configure.php file in both directory paths.

 

BUT... After that... The links are incorrect, for example if I click the Administration Tool button, I will get following path: http://localhost/oscommerce/catalog/instal...admin/index.php

 

Of course I can input the correct path myself (http://localhost/oscommerce/catalog/admin/) BUT when the administration panel appears and I try to click some link, for example Payment link:

 

http://localhost/oscommerce/catalog/admin/...ebff1d74ac4dbd7

 

After short research I found out that the www-address has to be like following: http://localhost/oscommerce/catalog/

 

Thanks for your help!

 

BR,

Ville

Link to comment
Share on other sites

I'm working with OSC in my desktop computer , my configure file is

----------------------

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://localhost'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'localhost');

define('HTTPS_COOKIE_DOMAIN', 'localhost');

define('HTTP_COOKIE_PATH', '/store/');

define('HTTPS_COOKIE_PATH', '/store/');

define('DIR_WS_HTTP_CATALOG', '/store/');

define('DIR_WS_HTTPS_CATALOG', '/store/');

define('DIR_WS_IMAGES', 'images/');

----------------------------

you can try this

for the 'oscommerce.sql'

you have to create the DB 'oscommerce.sql' with phpmyadmin

 

So i can't login in my admin area , i dont know how to login here somebody can it???

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...