Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can anyone tell what I m doing wrong?


bah bah

Recommended Posts

Posted

The installation smoothly goes till step 5 then jumps to step 7 with a couple of warning

and the store can not be installed at all after many attempt and I get the following warnings:

New Installation

 

osCommerce Configuration

 

 

Warning: fopen(C:/Sites/Single5/ewestuk/webroot/catalog/includes/configure.php): failed to open stream: Permission denied in C:\Sites\Single5\ewestuk\webroot\catalog\install\templates\pages\install_7.php on line 209

------------------------------------------------------------------------------------

$fp = fopen($dir_fs_document_root . 'includes/configure.php', 'w');

------------------------------------------------------------------------------------

 

Warning: fputs(): supplied argument is not a valid stream resource in C:\Sites\Single5\ewestuk\webroot\catalog\install\templates\pages\install_7.php on line 210

------------------------------------------------------------------------------------

fputs($fp, $file_contents);

------------------------------------------------------------------------------------

 

Warning: fclose(): supplied argument is not a valid stream resource in C:\Sites\Single5\ewestuk\webroot\catalog\install\templates\pages\install_7.php on line 211

------------------------------------------------------------------------------------

fclose($fp);

------------------------------------------------------------------------------------

 

Warning: fopen(C:/Sites/Single5/ewestuk/webroot/catalog/admin/includes/configure.php): failed to open stream: Permission denied in C:\Sites\Single5\ewestuk\webroot\catalog\install\templates\pages\install_7.php on line 259

------------------------------------------------------------------------------------

$fp = fopen($dir_fs_document_root . 'admin/includes/configure.php', 'w');

------------------------------------------------------------------------------------

 

Warning: fputs(): supplied argument is not a valid stream resource in C:\Sites\Single5\ewestuk\webroot\catalog\install\templates\pages\install_7.php on line 260

------------------------------------------------------------------------------------

fputs($fp, $file_contents);

------------------------------------------------------------------------------------

 

Warning: fclose(): supplied argument is not a valid stream resource in C:\Sites\Single5\ewestuk\webroot\catalog\install\templates\pages\install_7.php on line 261

------------------------------------------------------------------------------------

fclose($fp);

------------------------------------------------------------------------------------

The configuration was successful!

 

I have two commands to click on Catalog and Administration Tools

 

When I click on Calalog it goes automatically to installation index.php page install or upgrade

When I click on Administration Tools it gives me another warning

 

Warning: mysql_connect(): Can't connect to MySQL server on 'localhost' (10061) in C:\Sites\Single5\ewestuk\webroot\catalog\admin\includes\functions\database.php on line 19

Unable to connect to database server!

 

My webhosting company is hosting my website on windows 2003 server :(

I dont know what files permission has to be changed Any idea and advise for a no wised and new to php & mysql will be highly appreciated in advance.

People have the right to be stupid. Some people abuse that privilege.

Posted

yooo i have the same problem!

exactly the same

 

do you allready know what to do?

Posted

Let's wait for the expert's advice and suggestion coz it sounds this is to do with file and directory read write and excute permission issue specially hosted by windows platform, when it comes to write stream to file or amend or update and close the file.

People have the right to be stupid. Some people abuse that privilege.

Posted
Warning: fopen(C:/Sites/Single5/ewestuk/webroot/catalog/includes/configure.php): failed to open stream: Permission denied in C:\Sites\Single5\ewestuk\webroot\catalog\install\templates\pages\install_7.php on line 209

------------------------------------------------------------------------------------

$fp = fopen($dir_fs_document_root . 'includes/configure.php', 'w');

------------------------------------------------------------------------------------

 

My webhosting company is hosting my website on windows 2003 server :(

I dont know what files permission has to be changed Any idea and advise for a no wised and new to php & mysql will be highly appreciated in advance.

 

The other errors are a direct result of the first. You need to find out if your webhost has open_basedir in effect and/or safe_mode on. If setting write permissions doesn't work, then one of those two is probably the culprit.

 

Or, open includes/configure.php and admin/includes/configure.php and edit them manually.

Contributions

 

Discount Coupon Codes

Donations

Posted

Thanx alot kgt for replying including your invaluable help, it is yery very kind of you but i have no idea

what on which part of my code on configure.php script for catalog and under the admin folder

configure.php need to be added or changed manually?

 

you have told me to open includes/configure.php and admin/includes/configure.php and edit them manually.

 

After all I m new to this.

Can you rephrase what i have to do basically?

People have the right to be stupid. Some people abuse that privilege.

Posted

includes/configure.php (without ssl)

-----------------------------------------

 

define('HTTP_SERVER', 'http://www.yourdomain.com');
define('HTTPS_SERVER', '');
define('ENABLE_SSL', false); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));
define('DIR_FS_CACHE', DIR_FS_CATALOG . 'pub/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
define('DB_SERVER_USERNAME', 'your mysql use rname');
define('DB_SERVER_PASSWORD', 'yourmysql password');
define('DB_DATABASE', 'your database name');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'mysql');

 

admin/includes/configure.php (without ssl)

-------------------------------------------------

 

define('HTTP_SERVER', 'http://www.yourdomain.com');

define('HTTP_CATALOG_SERVER', 'http://www.yourdomain.com');

define('HTTPS_CATALOG_SERVER', '');

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

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT);

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

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_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/');[code]

 

Other settings as for includes/configure.php

 

This is for an install of osCommerce into the root of your web and not into a folder.

 

Vger

Posted

After 3 days of struggling managed to install and run OSCommerce store till testing stage

with help and support of senior professional php programmers.

 

Stilll have a long way to actual destination I guess I m on the right path now.

 

Thank you Vger and kgt once again I appreciate oscommerce's hard work and effort, and their community and the helpful people who really makes a different for learners like myself and for those who really need help and support, who want to learn how useful and powerful php and mysql is.

 

You guys are angels without wings :)

I dance all night tonight :)

 

Sincerely

 

Baba

People have the right to be stupid. Some people abuse that privilege.

Archived

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

×
×
  • Create New...