Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need Help To Upload Site Which Was Developed Offline


luddite_jean

Recommended Posts

I developed my shop offline by installing an Apache server locally (with fairly extensive cosmetic tweaks), and got it running fine. On the server where it's going to be permanently hosted, I created the database and uploaded my local files, changing the paths in both configure.php files.

 

I'm not entirely sure what I should be changing them to, however. My hosting company says the server path is /home/sites/your-domain-name.com/public_html but I've seen others defined as http://www.your-domain-name.com

 

I've tried both but I keep getting the following, regardless of what I have in configure.php:

 

Warning: main(includes/configure.php) [function.main]: failed to open stream: No such file or directory in /home/sites/fabrics-n-stuff.co.uk/public_html/catalog/admin/includes/application_top.php on line 29

 

Warning: main(includes/configure.php) [function.main]: failed to open stream: No such file or directory in /home/sites/fabrics-n-stuff.co.uk/public_html/catalog/admin/includes/application_top.php on line 29

 

Fatal error: main() [function.require]: Failed opening required 'includes/configure.php' (include_path='.;\xampp\php\pear\') in /home/sites/fabrics-n-stuff.co.uk/public_html/catalog/admin/includes/application_top.php on line 29

 

line 29 of catalog/includes/admin/application_top.php is:

 

require('includes/configure.php');

 

xampp (include_path='.;\xampp\php\pear\') is the name of the server I am running locally.

 

Presumably application_top.php can't find configure.php. What other file sets path names?

 

Thanks in advance, and baby steps, please - I'm OK with HTML and some other programming languages, but this is my first exposure to PHP.

Link to comment
Share on other sites

Did you upload the files to a directory named catalog or are they in the root? The failure indicates catalog so if that is what you want, be sure that is where the files are located. Also, if you search the forums for "configure file," you should get quite a few results that you can use as examples of configure files.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Did you upload the files to a directory named catalog or are they in the root? The failure indicates catalog so if that is what you want, be sure that is where the files are located. Also, if you search the forums for "configure file," you should get quite a few results that you can use as examples of configure files.

 

Jack

 

The files are uploaded to catalog, and I am trying to access admin (www.fabrics-n-stuff.co.uk/catalog/admin). As soon as I get past my password, the errors appear.

 

I can't find where the remaining reference to xampp is loacated, what file sets the include path?

 

Is there a guide to uploading completed installations anywhere?

Link to comment
Share on other sites

Create the file phpinfo.php and put only the following lines in it:

<?php phpinfo(); ?>

 

Upload this file to your root directory and go to this location with your browser.

 

Under Apache Environment / DOCUMENT_ROOT you'll find the right path to specify in your configure.php files

Link to comment
Share on other sites

Create the file phpinfo.php and put only the following lines in it:

<?php phpinfo(); ?>

 

Upload this file to your root directory and go to this location with your browser.

 

Under Apache Environment / DOCUMENT_ROOT you'll find the right path to specify in your configure.php files

 

Thanks guys, I just worked out that I'd uploaded a php.ini file that was setting all variables to my local server. I deleted the php.ini, cleared that error, but got another one.

 

This time I can't access the MySQL database, probably because it has a different name to the local one. The error message is

 

Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'root'@'localhost' (using password: NO) in /home/sites/fabrics-n-stuff.co.uk/public_html/catalog/admin/includes/functions/database.php on line 17

Unable to connect to database server!

 

Now I need to find where that is held.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...