Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Manual Install Issues - Errors As Per Below...


scotch33

Recommended Posts

Hi,

 

I am doing my first manual install as on my new dedicated server the install.php script fails on 'stage2' (even though I have registered globals in the php.ini file).

 

I am getting there and have it showing now, but am getting a series of issues with the front end.

 

1. This appears at the top of the page...

 

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/install) is not within the allowed path(s): (/tmp:/home/default/charliescateringhire.co.uk) in /home/default/webname.co.uk/user/htdocs/catalog/includes/header.php on line 15

 

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/includes/configure.php) is not within the allowed path(s): (/tmp:/home/default/charliescateringhire.co.uk) in /home/default/webname.co.uk/user/htdocs/catalog/includes/header.php on line 22

 

(webname.co.uk is a replacement for my real name which appears there when i see it - just changed here for security)

 

2. If i try to move to any of the products - I am getting 'product not found' issues.

 

can anyone help with this - I am guessing that it is in my config - copieds below with the sensitive elemenst replaced with 'webname'

 

<?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://www.webname.co.uk'); // 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', 'www.webname.co.uk');

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', '/home/default/webname.co.uk/user/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', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'webname');

define('DB_SERVER_PASSWORD', 'webname');

define('DB_DATABASE', 'webname');

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

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

?>

Link to comment
Share on other sites

Turn 'off' Safe Mode in php.ini

 

Vger

 

Hi there,

 

Just checked - safe more is off. - all php.ini safe mode elements are as below...

 

safe_mode Off

safe_mode_exec_dir no value

safe_mode_gid Off

safe_mode_include_dir no value

Link to comment
Share on other sites

open_basedir restriction in effect

 

Those limitations only come into effect when Safe Mode is on - check that you are editing the correct php.ini file.

 

Vger

Link to comment
Share on other sites

open_basedir restriction in effect

 

Those limitations only come into effect when Safe Mode is on - check that you are editing the correct php.ini file.

 

Vger

 

I am pretty sure I am - I have edited a series of other elements of it and those changes have taken place. The site is www.charliescateringhire.co.uk - there is a info file - http://www.charliescateringhire.co.uk/phpinfo.php that shows the php setup - its saying that safe mode is off.

 

is there another explanation?

Link to comment
Share on other sites

One question - why - if you have completed the install - do you still have the 'install' folder in place? It should be deleted after the install is completed.

 

Vger

Link to comment
Share on other sites

One question - why - if you have completed the install - do you still have the 'install' folder in place? It should be deleted after the install is completed.

 

Vger

 

I normally delete it just before I start to customise a shop, buyt once the shop is running correctly from the off the shelf version. This is in case I need to re-install etc. Do you think that could be having an affect?

 

And what is your opinion on the fact safe mode is off? Is there anything else that would cause the issues?

 

Thanks!

 

John

Link to comment
Share on other sites

try to add this line for debugging (in header.php)

 

echo 'debug: ' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']);

Sugiartha

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

concept of life: enjoy aja!

Link to comment
Share on other sites

yes! it tell something.

 

take alook at piece of code in header.php :

 

if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {

 

$HTTP_SERVER_VARS did not have value!

 

try to add this at the bottom of application_top.php

 

if(!$HTTP_SERVER_VARS) $HTTP_SERVER_VARS = $_SERVER;

Sugiartha

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

concept of life: enjoy aja!

Link to comment
Share on other sites

yes! it tell something.

 

take alook at piece of code in header.php :

 

if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {

 

$HTTP_SERVER_VARS did not have value!

 

try to add this at the bottom of application_top.php

 

if(!$HTTP_SERVER_VARS) $HTTP_SERVER_VARS = $_SERVER;

 

HI,

 

Ok - thats worked partially- thanks. However, whilst I am no loger getting the errors now, I am nstill unable to get to any products or categories - cats does nothing, and clicking oin a priduct gets to 'product not found'

 

Thanks

Link to comment
Share on other sites

you need similar codes:

 

if(!$HTTP_GET_VARS) $HTTP_GET_VARS = $_GET;

if(!$HTTP_POST_VARS) $HTTP_POST_VARS = $_POST;

Sugiartha

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

concept of life: enjoy aja!

Link to comment
Share on other sites

you need similar codes:

 

if(!$HTTP_GET_VARS) $HTTP_GET_VARS = $_GET;

if(!$HTTP_POST_VARS) $HTTP_POST_VARS = $_POST;

 

Yes! Great- that worked. Can I ask you what it was that was causing it and how those codes helped? I am interested so I can get my brain around PHP a little more.

 

I am also having trouble with the back end of the site, but before I ask more I will attempt to implement the codes here.

Link to comment
Share on other sites

Can I ask you what it was that was causing it and how those codes helped?

 

as stated at PHP manual

 

... you'll notice how the older predefined variables ($HTTP_*_VARS) still exist. As of PHP 5.0.0, the long PHP predefined variable arrays may be disabled with the register_long_arrays directive....

Sugiartha

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

concept of life: enjoy aja!

Link to comment
Share on other sites

  • 2 months later...
you need similar codes:

 

if(!$HTTP_GET_VARS) $HTTP_GET_VARS = $_GET;

if(!$HTTP_POST_VARS) $HTTP_POST_VARS = $_POST;

 

You must be a genious because even though I don't understand what happened, I applied your solution and the administation panel seems to be working. Can I learn this stuff by studying PHP or do I need to study server administration?

 

Harlan

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...