Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Config problem on IIS6.0 / php4.4.0


gorm

Recommended Posts

I ran web setup on my windows hosting server. (IIS 6.0 + php 4.4.0 + mysql)

 

After a few try, setup completed successfully, no error messages.

 

Admin works perfectly.

But catalog does not work at all.

 

I put the catalog files to the root. Here's the directory tree:

/index.php

/install/

/includes/

/admin/

/images/

 

When I try to open my catalog; I receive this error message:

 

Warning: main(includes/configure.php): failed to open stream: No such file or directory in c:\hosting\webhost\member\mydomain\includes\application_top.php on line 31

 

Warning: main(includes/configure.php): failed to open stream: No such file or directory in c:\hosting\webhost\member\mydomain\includes\application_top.php on line 31

 

Fatal error: main(): Failed opening required 'includes/configure.php' (include_path='.;c:\php\includes') in c:\hosting\webhost\member\mydomain\includes\application_top.php on line 31

 

 

And here are the configure files:

 

/includes/configure.php

  define('HTTP_SERVER', 'http://www.mydomain.com');
 define('HTTPS_SERVER', '');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', 'mydomain.com');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '');
 define('DIR_WS_HTTP_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:/hosting/webhost/member/mydomain/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 define('DB_SERVER', '10.0.0.1');
 define('DB_SERVER_USERNAME', 'db_username');
 define('DB_SERVER_PASSWORD', 'db_password');
 define('DB_DATABASE', 'db_database');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');

 

/admin/includes/configure.php

  define('HTTP_SERVER', 'http://www.mydomain.com');
 define('HTTP_CATALOG_SERVER', 'http://www.mydomain.com');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false');
 define('DIR_FS_DOCUMENT_ROOT', 'c:/hosting/webhost/member/mydomain/');
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_FS_ADMIN', 'c:/hosting/webhost/member/mydomain/admin/');
 define('DIR_WS_CATALOG', '/');
 define('DIR_FS_CATALOG', 'c:/hosting/webhost/member/mydomain/');
 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('DB_SERVER', '10.0.0.1');
 define('DB_SERVER_USERNAME', 'db_username');
 define('DB_SERVER_PASSWORD', 'db_password');
 define('DB_DATABASE', 'db_database');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');

 

 

So, what's wrong? Could someone point that out for me?

Link to comment
Share on other sites

Hi,

 

I am using W2K3 too, but installed failed, can you teach me how to install successful??

 

What version of the MySQL you are using? I am using MySQL 4.1.17, + PHP 5.0.4, failed on install osCommerce

 

I ran web setup on my windows hosting server. (IIS 6.0 + php 4.4.0 + mysql)

 

After a few try, setup completed successfully, no error messages.

 

Admin works perfectly.

But catalog does not work at all.

 

I put the catalog files to the root. Here's the directory tree:

/index.php

/install/

/includes/

/admin/

/images/

 

When I try to open my catalog; I receive this error message:

And here are the configure files:

 

/includes/configure.php

 ?define('HTTP_SERVER', 'http://www.mydomain.com');
?define('HTTPS_SERVER', '');
?define('ENABLE_SSL', false);
?define('HTTP_COOKIE_DOMAIN', 'mydomain.com');
?define('HTTPS_COOKIE_DOMAIN', '');
?define('HTTP_COOKIE_PATH', '/');
?define('HTTPS_COOKIE_PATH', '');
?define('DIR_WS_HTTP_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:/hosting/webhost/member/mydomain/');
?define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
?define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

?define('DB_SERVER', '10.0.0.1');
?define('DB_SERVER_USERNAME', 'db_username');
?define('DB_SERVER_PASSWORD', 'db_password');
?define('DB_DATABASE', 'db_database');
?define('USE_PCONNECT', 'false');
?define('STORE_SESSIONS', 'mysql');

 

/admin/includes/configure.php

 ?define('HTTP_SERVER', 'http://www.mydomain.com');
?define('HTTP_CATALOG_SERVER', 'http://www.mydomain.com');
?define('HTTPS_CATALOG_SERVER', '');
?define('ENABLE_SSL_CATALOG', 'false');
?define('DIR_FS_DOCUMENT_ROOT', 'c:/hosting/webhost/member/mydomain/');
?define('DIR_WS_ADMIN', '/admin/');
?define('DIR_FS_ADMIN', 'c:/hosting/webhost/member/mydomain/admin/');
?define('DIR_WS_CATALOG', '/');
?define('DIR_FS_CATALOG', 'c:/hosting/webhost/member/mydomain/');
?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('DB_SERVER', '10.0.0.1');
?define('DB_SERVER_USERNAME', 'db_username');
?define('DB_SERVER_PASSWORD', 'db_password');
?define('DB_DATABASE', 'db_database');
?define('USE_PCONNECT', 'false');
?define('STORE_SESSIONS', 'mysql');

So, what's wrong? Could someone point that out for me?

Link to comment
Share on other sites

Hi,

 

I am using W2K3 too, but installed failed, can you teach me how to install successful??

 

What version of the MySQL you are using? I am using MySQL 4.1.17, + PHP 5.0.4, failed on install osCommerce

Hi Jimmy,

 

it's hard to say I completed setup succesfully actually even OSC Setup said so.

 

Like I wrote before; right now admin features are working perfectly. But I can not make store catalog work at all. Only thing I see is the error message.

 

My setup config:

IIS 6.0

PHP 4.4.0

MySQL 4.0.24

osCommerce 2.2 Milestone 2

phpMyAdmin 2.5.6

 

 

 

 

Here's what I did so far. Maybe it helps someone to understand our problem help us.

 

I copied all the files/directories to my web server like this:

/ --> [root] (all the catalog files)

/admin/ --> OSC Admin files and sub-folders

/includes/ --> Catalog's sub-folder

/images/ --> OSC image folder

/install/ --> OSC Setup folder

 

 

I setup the database with phpMyAdmin. Basicly upload "oscommerce.sql" file to phpMyAdmin and run SQL query.

... you have the db ready.

 

 

Give read/write access (or full access, if doesn't work) to;

/includes/configure.php and /admin/includes/configure.php files

 

 

Start setup;

http://www.YourDomain.tld/install/

 

 

Check out my configure.php files.

During the setup, try the put in similar variables of yours into the setup wizard.

 

 

Setup will end succesfully, if you're lucky enough. :thumbsup:

 

 

in the meanwhile check out requirements of OSC:

OSC Requirements

Even it says "osCommerce runs on all PHP versions from 4.0 to the latest version", I read people who has php5 had problems installing. Search in this forum.

 

 

I'm not sure if I missed anything to mention about my setup.

 

More detail?

Link to comment
Share on other sites

thx,

 

now after I downgradu the php from 5.0.4 to 4.4.0, I can install the process, but stop at the PHP 4.4.0 not support the MySQL client .... maybe I need downgrad the MySQL from 4.1.x to 4.0.x too then can install success ...

 

But ... your wrong is, you upload your osCommerce to the root directory, I read the document said that you just need upload calalog to the root, not open it all file then upload to the root directory ...

 

Maybe it is have for you.

 

But, the document haven't said need give "/admin/includes/configure.php " full permission of the read, wirte, execute ...

 

 

Hi Jimmy,

 

it's hard to say I completed setup succesfully actually even OSC Setup said so.

 

Like I wrote before; right now admin features are working perfectly. But I can not make store catalog work at all. Only thing I see is the error message.

 

My setup config:

IIS 6.0

PHP 4.4.0

MySQL 4.0.24

osCommerce 2.2 Milestone 2

phpMyAdmin 2.5.6

Here's what I did so far. Maybe it helps someone to understand our problem help us.

 

I copied all the files/directories to my web server like this:

/      --> [root] (all the catalog files)

/admin/    --> OSC Admin files and sub-folders

/includes/  --> Catalog's sub-folder

/images/  --> OSC image folder

/install/  --> OSC Setup folder

I setup the database with phpMyAdmin. Basicly upload "oscommerce.sql" file to phpMyAdmin and run SQL query.

... you have the db ready.

Give read/write access (or full access, if doesn't work) to;

/includes/configure.php and /admin/includes/configure.php files

Start setup;

http://www.YourDomain.tld/install/

Check out my configure.php files.

During the setup, try the put in similar variables of yours into the setup wizard.

Setup will end succesfully, if you're lucky enough.  :thumbsup:

in the meanwhile check out requirements of OSC:

OSC Requirements

Even it says "osCommerce runs on all PHP versions from 4.0 to the latest version", I read people who has php5 had problems installing. Search in this forum.

I'm not sure if I missed anything to mention about my setup.

 

More detail?

Link to comment
Share on other sites

Hi,

 

I think your problems are your installing setting are wrong,

 

like the root of the server etc

 

reference this url, and take care of your IIS setting

 

for me my setting is Inetpub/wwwroot/myshopping.cn/catalog

 

http://www.oscommerce.info/docs/english/e_..._procedure.html

 

 

 

thx,

 

now after I downgradu the php from 5.0.4 to 4.4.0, I can install the process, but stop at the PHP 4.4.0 not support the MySQL client .... maybe I need downgrad the MySQL from 4.1.x to 4.0.x too then can install success ...

 

But ... your wrong is, you upload your osCommerce to the root directory, I read the document said that you just need upload calalog to the root, not open it all file then upload to the root directory ...

 

Maybe it is have for you.

 

But, the document haven't said need give "/admin/includes/configure.php " full permission of the read, wirte, execute ...

Link to comment
Share on other sites

That looks wrong to me, try using either 'localhost' or '127.0.0.1' instead.

 

Vger

Actually I replaced "10.0.0.1" with the real IP.

So accept that as a working DB Server IP. (I tested for so many times. No problem with that.)

 

I really don't think there is a limitation for putting the catalog to the root. There are so many working samples of it. Besides that'd be nonsense not able to it.

 

My root folder on the shared web host is: C:\hosting\webhost\member\mydomain\

 

So I believe the setting below should be correct:

  define('DIR_FS_DOCUMENT_ROOT', 'c:/hosting/webhost/member/mydomain/');

 

Be carefull on "/" and "\" usages!

Link to comment
Share on other sites

I don't know for certain, but one thing you can check on. Look in includes/local/ to see if there is an alternative configure.php file. If you find one rename it. Sometimes these files exist for development purposes, other times Windows servers are prone to create them if they can't write to the normal configure.php file during installation.

 

Also check that your includes folder has permisions of 755 set.

 

Vger

Link to comment
Share on other sites

I don't know for certain, but one thing you can check on.  Look in includes/local/ to see if there is an alternative configure.php file.  If you find one rename it.  Sometimes these files exist for development purposes, other times Windows servers are prone to create them if they can't write to the normal configure.php file during installation.

 

Also check that your includes folder has permisions of 755 set.

 

Vger

OK what's 755 in English. My server doesn't let me do it that way.

But I can specify permissions in other way.

 

Please correct me if I'm wrong:

755 means;

Owner can Read/Write/Execute

Group can R/-/E

Public can R/-/E

Link to comment
Share on other sites

includes folder has 755

 

Same error message:

Warning: main(includes/configure.php): failed to open stream: No such file or directory in c:\hosting\webhost\member\mydomain\includes\application_top.php on line 31

 

Warning: main(includes/configure.php): failed to open stream: No such file or directory in c:\hosting\webhost\member\mydomain\includes\application_top.php on line 31

 

Fatal error: main(): Failed opening required 'includes/configure.php' (include_path='.;c:\php\includes') in c:\hosting\webhost\member\mydomain\includes\application_top.php on line 31

 

Can anyone help me to analyze this error please?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...