Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Transferring from Windows to Linux


Guest

Recommended Posts

Posted

Hi

 

First time poster here.

 

When I stumbled accross OSC M2.2 I was made up as it meant I could get a ecommerce site up and running fast.

I have set up OSC and it is up and running. I did have a few errors to begin with but all is ok now (fingers x'd :huh: ). I also have a test site on my windows xp home computer and that one works great too.

The problem is that I installed linux and wanted to transfer my test site to Apache but get a miriad of errors.

They all seem to suggest that the require and include functions (which presumably use relative file locations) are not finding the locations needed. If i change:

require('includes/configure.php');

to

require('configure.php');

then that line of code works and I am then on to the next error.

 

Why is my test site not using relative file locations?

 

There is a further complication,

it's not entirely true that relative file locations are not being used as 'application_top.php' is called from 'index.php' which is in the folder below it. So:

 

catalog

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

index.php

 

includes

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

application_top.php

configure.php

 

END

 

so when application_top.php calls require('includes/configure.php'); it takes the current directory as includes and not as catalog like it should.

 

Any help appreciated

Thanx

 

Rob

Posted

Hi Rob,

 

the easiest way is to install a fresh copy of ms2.2 on the linux box and save the new config files to use on the old installation, merely changing the directories in the configs for the relocation of the old site.

 

 

anyways I do this all the time as I use a laptop server for testing.

 

Hope that made sense.

 

TJ

 

 

 

Hi

 

First time poster here.

 

When I stumbled accross OSC M2.2 I was made up as it meant I could get a ecommerce site up and running fast.

I have set up OSC and it is up and running. I did have a few errors to begin with but all is ok now (fingers x'd :huh: ). I also have a test site on my windows xp home computer and that one works great too.

The problem is that I installed linux and wanted to transfer my test site to Apache but get a miriad of errors.

They all seem to suggest that the require and include functions (which presumably use relative file locations) are not finding the locations needed. If i change:

require('includes/configure.php');

to

require('configure.php');

then that line of code works and I am then on to the next error.

 

Why is my test site not using relative file locations?

 

There is a further complication,

it's not entirely true that relative file locations are not being used as 'application_top.php' is called from 'index.php' which is in the folder below it. So:

 

catalog

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

index.php

 

includes

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

application_top.php

configure.php

 

END

 

so when application_top.php calls require('includes/configure.php'); it takes the current directory as includes and not as catalog like it should.

 

Any help appreciated

Thanx

 

Rob

Posted

Just tried that but still have the same problem.

 

When I try to install osc:

 

Warning: main(includes/functions/general.php) [function.main]: failed to open stream: No such file or directory in /srv/www/htdocs/oscommerce/catalog/install/includes/application.php on line 22

 

Fatal error: main() [function.require]: Failed opening required 'includes/functions/general.php' (include_path='/usr/share/php') in /srv/www/htdocs/oscommerce/catalog/install/includes/application.php on line 22

Archived

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

×
×
  • Create New...