Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't get to install OSC - help


Guest

Recommended Posts

Hi All,

 

I have been trying to get OS up and running for days but i'm having a problem that i can't seem to cure.

 

I have loaded up the OS files from the zip and when i go to Http://nifas.com/catalog/install it just gives me an error.

 

Please i need some advise and help

 

Error is:

 

Warning: main(templates/main_page/header.php) [function.main]: failed to create stream: No such file or directory in /data/htdocs/n/nifas/catalog/install/templates/main_page.php on line 33

 

Fatal error: main() [function.main]: Failed opening required 'templates/main_page/header.php' (include_path='/data/htdocs:/tmp') in /data/htdocs/n/nifas/catalog/install/templates/main_page.php on line 33

 

 

Any help would be great as i have not been able to find anything on the posts.

As detailed as possible please cause im irish and you know what they say we are thick ha ha ..

 

Thanks

Doug

Link to comment
Share on other sites

Hi all again,

 

I just wanted to add that the OSC works 10000% on my localhost on my own computer but when i load it up onto the php server it wont work.

 

I have tried a fresh install and a copy the CVS todays, but still no joy.

 

Thanks in advance again

 

Doug

Link to comment
Share on other sites

Hi all again,

 

I just wanted to add that the OSC works 10000% on my localhost on my own computer but when i load it up onto the php server it wont work.

 

I have tried a fresh install and a copy the CVS todays, but still no joy.

 

Thanks in advance again

 

Doug

 

If you've got it running on your local machine just upload the files. Unless you've changed things that means uploading the catalog folder.

 

Edit the config files, import the db via phpMyAdmin and you're running.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

If you've got it running on your local machine just upload the files. Unless you've changed things that means uploading the catalog folder.

 

Edit the config files, import the db via phpMyAdmin and you're running.

 

 

Thanks Alan, I will give it a try..

Iv'e had a few lost sleep nights with it. fingers crossed.

 

Doug

Link to comment
Share on other sites

Thanks Alan, I will give it a try..

Iv'e had a few lost sleep nights with it. fingers crossed.

 

Doug

 

 

Hi,

 

I uploaded the catalog folder and went to start the catalog but still getting errors.

this time it:

 

Warning: main(includes/configure.php) [function.main]: failed to create stream: No such file or directory in /data/htdocs/n/nifas/catalog/includes/application_top.php on line 29

 

Fatal error: main() [function.main]: Failed opening required 'includes/configure.php' (include_path='/data/htdocs:/tmp') in /data/htdocs/n/nifas/catalog/includes/application_top.php on line 29

 

I dont know really what to change in the configure files..

 

If someone could tell me in detail what i should change that would be great plus what would be the right path??

 

thanks

Doug

Link to comment
Share on other sites

I'll assume the configure.php file is there, in the catalog/includes folder.

 

Check its permissions, maybe you set them on your local system.

 

Make them 777 for now.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Make sure that ll of your folders have permissions of 755, except for images and graphs which should be 777.

 

Vger

 

Hi Vger,

 

yep, all is at 755 and others at 777

 

still nothing. funny cause its all working on my local computer but not the server.

Should i post my config file??

 

cheers

Doug

Link to comment
Share on other sites

No, no need to upload your configure.php file - because it's not accessible by the install - which is the problem.

 

Try locating any .htaccess files in the root of your domain and deleting them - they may be blocking access. Also check both of the includes/local folders to see if there are any configure.php files in there - if you find any rename them.

 

Vger

Link to comment
Share on other sites

I'll assume the configure.php file is there, in the catalog/includes folder.

 

Check its permissions, maybe you set them on your local system.

 

Make them 777 for now.

 

 

Hi Alan,

 

Thanks, i changed the permissions to the two files but still no difference..

 

I'll post my config file but leave out the password stuff..

 

Here is the file:

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

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

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

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

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

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

define('HTTP_COOKIE_DOMAIN', '/');

define('HTTPS_COOKIE_DOMAIN', '');

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

define('HTTPS_COOKIE_PATH', '');

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

define('DIR_WS_HTTPS_CATALOG', '');

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

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', 'C:/apachefriends/xampp/htdocs/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'dbs11.2020media.com'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'myusername');

define('DB_SERVER_PASSWORD', 'mypassword');

define('DB_DATABASE', 'NIFAS');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

this is the includes/configure file

 

Thanks for your help guys

 

Doug

Link to comment
Share on other sites

No, no need to upload your configure.php file - because it's not accessible by the install - which is the problem.

 

Try locating any .htaccess files in the root of your domain and deleting them - they may be blocking access.  Also check both of the includes/local folders to see if there are any configure.php files in there - if you find any rename them.

 

Vger

 

 

Hi Vger,

 

I'll take a look.. sorry for posting the configure file.. was posting as you replied.

 

I love the OSC system but doing my head in trying to get started.

 

Cheers

Doug

Link to comment
Share on other sites

Hi Vger,

 

I'll take a look.. sorry for posting the configure file.. was posting as you replied.

 

I love the OSC system but doing my head in trying to get started.

 

Cheers

Doug

 

Hi Vger,

 

There is only two files in the includes/local folder, one is a text file and one a CVSIGNORE file.

 

It does say that a configure file should be in the folder but its not there???

 

Doug

Link to comment
Share on other sites

This line is from your local set-up.

 

define('DIR_FS_CATALOG', 'C:/apachefriends/xampp/htdocs/catalog/');

 

It's not correct for the web server.

 

I'm not certain if it's the problem since the system is claiming it can't even find the config file, but fix it anyway.

 

You can find the FS Path by using phpinfo()

 

Run this little file, put it in some directory, name it phpinfo.php

<?
phpinfo();
?>

 

Down near the bottom, under Environment you'll find the DOCUMENT_ROOT, that's what belongs here:

 

define('DIR_FS_CATALOG', 'C:/apachefriends/xampp/htdocs/catalog/');

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Hi Vger,

 

There is only two files in the includes/local folder, one is a text file and one a CVSIGNORE file.

 

It does say that a configure file should be in the folder but its not there???

 

Doug

 

That's as it should be, don't change anything there.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

That's as it should be, don't change anything there.

 

hi Alan,

 

got the phpinfo.php up and i have a load of info but dont know what im looking for??

 

its on www.nifas.com/phpinfo.php

 

Sorry about all these questions but im dying to get the system up and running.

 

Doug

Link to comment
Share on other sites

The relevant section is: Apache Environment

 

So your FS Path is /htdocs/n/nifas/data

 

Then the line in question should be set like so:

 

define('DIR_FS_CATALOG', '/htdocs/n/nifas/data/catalog/');

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

The relevant section is: Apache Environment

 

So your FS Path is /htdocs/n/nifas/data

 

Then the line in question should be set like so:

 

define('DIR_FS_CATALOG', '/htdocs/n/nifas/data/catalog/');

 

Hi Alan,

 

Done that too but still no joy. Its bound to be something simple but i can't get my eyes on it. I have changed anything that said absoult path.

 

i'm just wondering about the error and where is says :

 

Fatal error: main() [function.main]: Failed opening required 'includes/functions/general.php' (include_path='/data/htdocs:/tmp') in /data/htdocs/n/nifas/catalog/install/includes/application.php on line 22

 

could that be a problem??

 

Doug

Link to comment
Share on other sites

At: http://www.nifas.com/catalog/includes/configure.php

 

I get: You don't have permission to access /catalog/includes/configure.php on this server.

 

What are the permissions on the includes folder?

 

They should be 755, read, write, execute for owner.

 

read, execute for everyone else.

 

 

Edit: BTW, your server dweebs don't have DNS set up correctly.

 

You should be able to there via

 

http://www.nifas.com/catalog/includes/configure.php

 

and

 

http://nifas.com/catalog/includes/configure.php

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

At: http://www.nifas.com/catalog/includes/configure.php

 

I get: You don't have permission to access /catalog/includes/configure.php on this server.

 

What are the permissions on the includes folder?

 

They should be 755, read, write, execute for owner.

 

read, execute for everyone else.

Edit: BTW, your server dweebs don't have DNS set up correctly.

 

You should be able to there via

 

http://www.nifas.com/catalog/includes/configure.php

 

and

 

http://nifas.com/catalog/includes/configure.php

 

Yes Alan, Thats the settings. I'm using CuteFTP and dreamweaver.

 

Doug

Link to comment
Share on other sites

Yes Alan, Thats the settings. I'm using CuteFTP and dreamweaver.

 

Doug

 

Drop some simple index.html in that folder and see if you can access it, ie:

 

http://www.nifas.com/catalog/includes/index.html

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Yes Alan, Thats the settings. I'm using CuteFTP and dreamweaver.

 

Doug

 

Sorry Alan, What is BTW??

 

I thought they might have is setup wrong.. they didnt seem very helpful when i said i was going to use OSC. Its not whether they like it or not.. I do and i pay the bills..

 

Sorry getting upset. I'll look at the files. Toes and fingers crossed..

 

Doug

Link to comment
Share on other sites

Hi Alan,

 

Yes i can access it.. Still not sure what you meant by BTW?

 

Doug

 

BTW = By The Way.

 

I'm not sure what's going on with the server. This should be simple stuff.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

What's in the .htaccess file in the includes folder?

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

BTW = By The Way.

 

I'm not sure what's going on with the server. This should be simple stuff.

 

I thought i shouldnt be that hard because of the 1000s usint this system.

If it just a matter of them changing a few this thats great and would save a lot of hassel.

 

I'll contact them tomorrow to see whats happening. When you mean the DNS might be wrong, what should i say to them?

 

Cheers

Doug

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...