Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

where tmp


superwaizer

Recommended Posts

Posted

I have installed the shop but It give me such a warning:

 

Warning: SAFE MODE Restriction in effect. The script whose uid is 40279 is not allowed to access /tmp owned by uid 0 in /mnt/host-users/j/a/r/jaroslawska/cudak/sklep/catalog/includes/header.php on line 30

Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.

 

 

Where I should to create the tmp directory?

Pozdrawiam

 

Superwaizer

Posted

Change this in your configure.php

 

Change from:

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

Change to:

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

There you have it... your sessions will be stored in the datebase, and all your problems are solved. :)

 

Cheers,

Tony

"The price of success is perseverance. The price of failure comes much cheaper."

Posted

/*

$Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $

 

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', 'db.host.sk'); // 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', '');

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_DOWNLOAD', DIR_FS_CATALOG . 'download/');

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

 

// define our database connection

define('DB_SERVER', 'db.host.sk'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'xxxx');

define('DB_SERVER_PASSWORD', 'xxx2');

define('DB_DATABASE', 'oscommerce');

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

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

 

 

That is my configure.php file what i should change in here else?

Pozdrawiam

 

Superwaizer

Posted
/*

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

 

Change to 'http://www.jaroslawska.host.sk'

 

/*

define('DIR_WS_HTTP_CATALOG', '');

define('DIR_WS_HTTPS_CATALOG', '');

 

Change to '/cudak/sklep2/catalog/'

 

/*

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

 

Change to your actual path to your root in quotes

 

I use:

  define('DIR_FS_DOCUMENT_ROOT', '/home2/webmakr2/public_html'); // 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_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

 

See if that sends you in the right direction.

Posted

I also can't admin my page see here:

www.jaroslawska.host.sk/cudak/sklep2/catalog/admin/

 

here is my configure.php file from admin catalog:

 

/*

$Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ 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://www.jaroslawska.host.sk'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', '/cudak/sklep2/catalog/');

define('HTTPS_CATALOG_SERVER', '/cudak/sklep2/catalog/');

define('ENABLE_SSL_CATALOG', 'false'); // 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/');

 

// define our database connection

define('DB_SERVER', 'db.host.sk');

define('DB_SERVER_USERNAME', 'mirek');

define('DB_SERVER_PASSWORD', 'mirek2');

define('DB_DATABASE', 'oscommerce');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

Pozdrawiam

 

Superwaizer

Posted
I also can't admin my page see here:

www.jaroslawska.host.sk/cudak/sklep2/catalog/admin/

 

here is my configure.php file from admin catalog:

 

/*

$Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ 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://www.jaroslawska.host.sk'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', '/cudak/sklep2/catalog/');

define('HTTPS_CATALOG_SERVER', '/cudak/sklep2/catalog/');

define('ENABLE_SSL_CATALOG', 'false'); // 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/');

 

// define our database connection

define('DB_SERVER', 'db.host.sk');

define('DB_SERVER_USERNAME', 'xxxx');

define('DB_SERVER_PASSWORD', 'xxx');

define('DB_DATABASE', 'oscommerce');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

Pozdrawiam

 

Superwaizer

Posted

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT);

 

Set that as your actual path to your root.

 

Look in the System Info in the Admin and search for: home

 

That should tell you your root.

Posted

Oh and fix these settings ....

 

The Catalog is in:

 

'cudak/sklep2/catalog/'

 

The admin is then in:

 

'cudak/sklep2/catalog/admin/'

Posted

Ok it works wery good

 

But now I tried to change my language on polish and I have such a problem:

 

Warning: open_basedir restriction in effect. File is in wrong directory in /mnt/host-users/j/a/r/jaroslawska/cudak/sklep2/catalog/admin/includes/application_top.php on line 130

 

Fatal error: Failed opening required 'includes/languages//catalog/includes/languages/poli.php' (include_path='.:/usr/local/lib/php') in /mnt/host-users/j/a/r/jaroslawska/cudak/sklep2/catalog/admin/includes/application_top.php on line 130

 

ihave set polish language as default how I can change it?

Pozdrawiam

 

Superwaizer

Posted

I saw several problems.

 

First of all your lauguages are not install properly. Reinstall the english (in both the ADMIN and CATALOG) THEN ADD the Polish

 

 

I also can't admin my page see here:

www.jaroslawska.host.sk/cudak/sklep2/catalog/admin/

 

here is my configure.php file from admin catalog:

 

/*

 $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ 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://www.jaroslawska.host.sk'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

 define('HTTP_CATALOG_SERVER', '/cudak/sklep2/catalog/');

 define('HTTPS_CATALOG_SERVER', '/cudak/sklep2/catalog/');

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

 define('DIR_FS_DOCUMENT_ROOT', '<change this to your actual path to your site's root directory>'); // ****** 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', '/cudak/sklep2/catalog/admin/'); // *******???

 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

 define('DIR_WS_CATALOG', '/cudak/sklep2/catalog/');  // *********

 define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

.....

 

I also noticed that your using an OLD verison of the Exchange Project (now called osCommerce). First of all I would DOWNLOAD the latest milestone version (MS2) and reload it from start!

 

Get MS2 here: http://www.oscommerce.com/downloads/milestones

or the lastes snapshot CVS from here: http://www.oscommerce.com/downloads/snapshot

 

Upload/setup one of the above packages (to say http://www.jaroslawska.host.sk/catalog - which is perfered or http://www.jaroslawska.host.sk/cudak/sklep2/catalog - as you seamed to have done) and then upload the latest polish laugauge pack (use http://www.oscommerce.com/community/contributions,1428 version if your using MS2 or current CVS).

 

Then to setup your shop go to:

http://www.jaroslawska.host.sk/catalog/install (as the perfered install as above) or http://www.jaroslawska.host.sk/cudak/sklep...catalog/install and fill out all the required inforation.

 

You may SELECT UPGRADE to cary your database over to the NEW version.

 

Once the BASICS are entered for your shop - you can go and setup the POLISH pack.

 

Goto :arrow: Admin :arrow: Localization :arrow: Languages :arrow: New Lauguage

 

Then fill in the information:

 

Name: Polish

Code: pl

Image: icon.gif

Directory: polish

Sort order: 1

Click on "Set as default"

 

Then Select Insert

 

THEN Remove any Lauguages you and your shoppers will not use (leave English untill your site is all working!)

 

Your ready to make any changes to your store!

 

Good Luck

Posted

THX It help Everything is super!!

 

But now I try to instal 3 modules for payment and i get such a comunicat:

 

 

Moduły Płatności

Moduł Porządek Sortowania Działanie

Katalog Moduł?w: /usr/local/apache/htdocs/cudak/catalog/includes/modules/payment/

 

I have installed 3 modules and I should have here something to choose te payment methods but there aren't....

 

Can anybody help me to install modules for Allpay mTransfer and PayU??

Pozdrawiam

 

Superwaizer

Posted
Moduły Płatności    

Moduł  Porządek Sortowania  Działanie  

Katalog Moduł?w: /usr/local/apache/htdocs/cudak/catalog/includes/modules/payment/

 

Can anybody help me to install modules for Allpay mTransfer and PayU??

 

This board does not handle "non-roman" charaters (ie russian/east asia style charaters). Thus the jiberish

 

Please specify the module numbers you trying to install.

 

You may have in files in theses modules like: includeslauguagesenglish*.php (and any sub directories and files - like image & buttons)

includeslauguages*english.php

includeslauguagesenglish.php

(in both admin and/or catalog directories)

 

and you have to copy them to and convert to Polish in theses to:

includeslauguagespolish*.php

includeslauguages*polish.php

includeslauguagespolish.php

 

Remember translating any english "TEXT" displayed fields (do not change variables names and commands) that is used in these files to polish. (You don't have to convert comments - if you don't want to.) You may have to make/modify any new images from the old .../english/images that was copied to .../polish/images to display "polish" translation.

 

Good luck

Posted

As I stated

 

Please specify the module numbers you trying to install.

 

I have found the first one you listed - polish is already there. The other two????

Posted

As I said - I can't find the last two listed - what is the contribution/module number?

 

ie: 1347)

Archived

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

×
×
  • Create New...