Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error install5: fopen (line 164), fputs (165), fclose (166).


equies

Recommended Posts

Hi all,

 

After installing oscommerce I can go to the catalog and everything works fine, when I try to go to the admin section it wont let me in and I get the following messages:

 

<<

New Install

 

Step 2: osCommerce Configuration

 

 

Warning: fopen("c:/phpdev/www/oscatalog/catalog/admin/includes/configure.php", "w") - No such file or directory in c:phpdevwwwoscatalogcataloginstalltemplatespagesinstall_5.php on line 164

 

Warning: fputs(): supplied argument is not a valid File-Handle resource in c:phpdevwwwoscatalogcataloginstalltemplatespagesinstall_5.php on line 165

 

Warning: fclose(): supplied argument is not a valid File-Handle resource in c:phpdevwwwoscatalogcataloginstalltemplatespagesinstall_5.php on line 166

 

The configuration was successful!

>>

Looked into the forums and found one guy with the same problem, he also posted a message to say he got everything working just fine, but does not explain how he got round the problem!!!! :(

 

If you are reading this, and this is you, please let us know.

 

Otherwise, anyone out there: please help me figure this out?

 

Thanks

Link to comment
Share on other sites

yeah... it is version 2.2.

 

Verdion 2.1 seems to be a totally different install to the docs, and looking at the forums looks like most everyone is using 2.2.

Link to comment
Share on other sites

can someone reading this please email me a version they have downloaded and installed as i can only assume from the lack of response on this forum that the current snapshots are corrupt. please email to this address - fouraces@ukonline.co.uk

 

thanks in advance

Link to comment
Share on other sites

Hi,

 

I e-mailed the guy who had the same problem and who got it sorted, this is his answer:

 

Yeah, you need to specify your database and local or if hosting with someone else your webserver root directory.

 

you need to go into the catalog directory and modify the "configure.php"

file. Also you must make the same changes to your "configure.php" file in

the admin directory.

 

if local would be: http://localhost/httpdocs/(or public_html/

 

if hosting it would be (default on linux apache webserver):

/usr/local/plesk/apache/vhosts/yourdomain or ip address/httpdocs or

public_html/

 

this should work, it did for me.

 

Please Read the OSCommerce manual.

 

I'll try this and let you know what happens, let us know how you get on.

 

As for a corrupt installation? I thought of that.

 

I read of a working install on the forum, cannot find it right now but let you know if I can locate it again.

Link to comment
Share on other sites

Got it!!!

 

For a confirmed working install go here:

 

http://www.chainreactionweb.com/info/hosti...rce-hosting.php

 

scroll to the bottom... and download

 

This one apparently has a extra few modules installed...

 

I will first try to fix the problem on my current install as I gather from various posts, that the problem lies with the paths in admin and catalog...

look at your /includes/configure.php files.

Link to comment
Share on other sites

I really was dumbfounded and no one could help me - even the pros. For me it was the CHMOD settings. They must be 777 - Which means that the "owner", the "group" & "other" etc can [Read] & [Write] & [Execute] this file. Make sure the same CHMOD settings are set for the directories too (admin/includes). I use WS_FTP Pro and it is -Right mouse click/operations/ftp commands/CHMOD (UNIX). Of course my server is UNIX for this to work. I hope this helps!!!! :wink:

Link to comment
Share on other sites

No, working on W2Kpro - so I assume this 777 permissions stuff don't apply?

 

Anyway working on /includes/configure.php

 

Can anyone give us some input? This stuff seems like nuclear physics to me!!!

 

This is what my /admin/includes/configure.php file originally looked like:

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

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

define('HTTP_CATALOG_SERVER', '');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

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

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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

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

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

 

I've highlighted in red where I believe something is missing: I assume

http://localhost in all three cases?

Or is it:

1. http://localhost

2. http://localhost/catalog

3. http://localhost/catalog

 

I am also questioning the green highlight: should the last slash be there?

 

Can anyone provide any insight on this, or tell us where we're going wrong and how to fix it?

 

In the meantime I'll try a few variations :roll:

Link to comment
Share on other sites

Yes!, :) Yes!! :D Yes!!! :lol:

 

Got it working!!!!!!!

 

 

Here's the answer guys:

 

You've got to check your /admin/includes/configure.php file....

in my case the install program handled the catalog side OK, but did not configure the admin side correctly.

 

So here is what I did in the admin side: (Highlighted in red - comments in Green)

 

<?php

/*

$Id: configure.php,v 1.13 2002/07/20 09:08:31 project3000 Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

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

define('HTTP_CATALOG_SERVER', 'http://localhost');

define('HTTPS_CATALOG_SERVER', 'https://localhost');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_WS_ADMIN', '/OsCatalog

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', '/OsCatalog

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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

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

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

// define our database connection

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', '************');

define('DB_SERVER_PASSWORD', '************');

define('DB_DATABASE', 'catalog');

define('USE_PCONNECT', 'true

define('STORE_SESSIONS', 'mysql');

?>

 

 

Et Voil?!!!!

Simple innit :oops:

Hope this will help all of you with the same problem and thanks for all the help I received :twisted:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...