Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problems with includes on new install


cbaker23

Recommended Posts

Posted

Last week, I had a working install of oscommerce on a Windows server. Due to unrelated issues, I had to move it to another server, this one running FreeBSD. I unzipped everything, put the catalog directory in the site's root. When I try to view the catalog or the admin page, I get errors such as this:

 

Warning: main(includes/configure.php): failed to open stream: No such file or directory in /www/docs/europeanbean/catalog/includes/application_top.php on line 29

Fatal error: main(): Failed opening required 'includes/configure.php' (include_path=''.:/usr/local/share/pear:/usr/local/lib/php:/usr/local/lib/php/Net'') in /www/docs/europeanbean/catalog/includes/application_top.php on line 29

 

I was able to get around some of these by modifying the configure.php pages, but it seems like I shouldn't have had the problems in the first place, and there's a much easier fix.

 

Did I missing something, or has anyone else ran into this?

 

Thanks!

Posted

What do you mean when you say you 'unzipped everything'. If you just downloaded your website files fromyour old server, plus the database, and installed them on the new server, then all you would have had to do would be to update the two configure.php files.

 

If you've unzipped a new version of osCommerce and uploaded them, then you'll either have to upload your old website files and overwrite the default ones, plus add the database, or else you'll have to run the install again.

 

Vger

Posted
What do you mean when you say you 'unzipped everything'.  If you just downloaded your website files fromyour old server, plus the database, and installed them on the new server, then all you would have had to do would be to update the two configure.php files.

 

If you've unzipped a new version of osCommerce and uploaded them, then you'll either have to upload your old website files and overwrite the default ones, plus add the database, or else you'll have to run the install again.

 

Vger

I've actually tried both...installing a new version, and using the old one. I can't even run the installer - I get similar errors.

 

I've concluded that this is an issue with the include_path setting in my php.ini, which I need in place for other sites on this server. Anyone know if there's an easy way I can get this to work without screwing around with the paths in configure.php too much?

Posted

Concerning the above errors: It tells you that the installer needs to be able to write to catalog/includes/configure.php and also catalog/admin/includes/configure.php.

 

Set the appropriate write permissions on both configure.php files and immediately after installation set them all to read-only.

Archived

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

×
×
  • Create New...