Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Urgent: configuration problems after movind shop


tfoolen

Recommended Posts

Hi,

 

I have been developing my shop on localhost. I have moved all relevant files to my hosting provider yesterday and now I am encountering a number of problems in my admin, all of which seem to be (indirectly) related to my configuration. Have been stuck ever since!

 

I have placed all files directly in the root, so httpdocs/index.php and www.mywebsite.TLD/index.php etc. These are the problems:

 

When I click Catalog, the top of my screens shows: Error: Catalog Images directory doensn't exist: httpdocs/images. Uploading images doesn't work anymore.

 

When I click Modules, my screen remains empty; none of the modules is shown. The payment modules won't appear on my website either. The module folder is referred to as: Module directory: /httpdocs/includes/modules/payment/. Same problem goes for Shipping modules. It doesn't give an error.

 

When I hit Tools, the problems are numerous. Error: backup directory does not exist. Change configure.php. The directory it refers to is: /httpdocs/admin/backups/. Similar errors for the cache directory.

 

Some other usefull errors in Tools, File Manager:

 

Warning: dir() [function.dir]: Unable to access /httpdocs/ in /home/httpd/vhosts/mywebsite.TLDl/httpdocs/admin/file_manager.php on line 184

 

Warning: dir(/httpdocs/) [function.dir]: failed to open dir: No such file or directory in /home/httpd/vhosts/mywebsite.TLD/httpdocs/admin/file_manager.php on line 184

 

Fatal error: Call to a member function read() on a non-object in /home/httpd/vhosts/mywebsite.TLD/httpdocs/admin/file_manager.php on line 185

 

The directory where the file manager refers to is /httpdocs/.

 

Here is my admin/includes/configure.php

 

define('HTTP_SERVER', 'http://www.mywebsite.TLD');

define('HTTP_CATALOG_SERVER', 'http://www.mywebsite.TLD');

define('HTTPS_CATALOG_SERVER', 'https://www.mywebsite.TLD');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/httpdocs/');

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

define('DIR_FS_ADMIN', '/httpdocs/admin/');

define('DIR_WS_CATALOG', '/');

define('DIR_FS_CATALOG', '/httpdocs/');

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/');

 

Have been trying with changing CHMOD, but no effect. All the necessary folders are in place, so that is nog the problem either. Have been stuck on this for two days now and nearly desperate :( , so if anyone could say something usefull I would be very gratefull. Been searching around and more people seem to encouter this problem, but strangely enough I can't seem to find an adequete solution.

 

Many, many thanks in advance!

 

Cheers,

Tom

Link to comment
Share on other sites

define('DIR_FS_DOCUMENT_ROOT', '/httpdocs/');

 

This is unlikely to be the full path to the root of your website. To find out the full pathway do this:

 

1. Create a new text document on your desktop and rename it to cwd.php. Ignore the warning about changing the file type.

 

2. Put this code into it and upload to the root of your website:

<?php
$p = getcwd();
echo $p;
?>

 

3. In your browser go to http://www.yourdomain.com/cwd.php and printed on the screen will be the full DIR_FS pathway.

 

4. Write down the pathway and then delete the cwd.php file from your site.

 

Vger

Link to comment
Share on other sites

This is unlikely to be the full path to the root of your website. To find out the full pathway do this:

 

1. Create a new text document on your desktop and rename it to cwd.php. Ignore the warning about changing the file type.

 

2. Put this code into it and upload to the root of your website:

<?php
$p = getcwd();
echo $p;
?>

 

3. In your browser go to http://www.yourdomain.com/cwd.php and printed on the screen will be the full DIR_FS pathway.

 

4. Write down the pathway and then delete the cwd.php file from your site.

 

Vger

 

Vger,

 

You seem to be right. I have done as you said and the outcome is /home/httpd/vhosts/mywebsite.TLD/httpdocs/

 

I have altered configure.php according to the following

 

define('HTTP_SERVER', 'http://www.mywebsite.TLD);

define('HTTP_CATALOG_SERVER', 'http://www.mywebsite.TLD);

define('HTTPS_CATALOG_SERVER', 'https://www.mywebsite.TLD);

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/home/httpd/vhosts/mywebsite.TLD/httpdocs/');

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

define('DIR_FS_ADMIN', '/httpdocs/admin/');

define('DIR_WS_CATALOG', '/');

define('DIR_FS_CATALOG', '/httpdocs/');

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/');

 

The reaction in admin, catalog is still that httpdocs/images does not exist. File Manager seems to be working again though! And that is a big improvement. Any other alterations I have to make? Looks like you are getting me somewhere, thanks a million!!

 

 

:rolleyes:

Link to comment
Share on other sites

Yes!!

 

I have changed the lines below and this seems to be working! All my problems are far far away and I am a happy man. If this is the right way to do it though... I don't really know, but if it works, it's fine for me!

 

define('DIR_FS_CATALOG_LANGUAGES', '/home/httpd/vhosts/mywebsite.TLD/httpdocs/includes/languages/');

define('DIR_FS_CATALOG_IMAGES', '/home/httpd/vhosts/mywebsite.TLD/httpdocs/images/');

define('DIR_FS_CATALOG_MODULES', '/home/httpd/vhosts/mywebsite.TLD/httpdocs/includes/modules/');

define('DIR_FS_BACKUP', '/home/httpd/vhosts/mywebsite.TLD/httpdocs/admin/backups/');

 

Now I have a new task: change back all the CHMODS çause they all are on 777 right now!

 

Thanks again,

Tom

;-)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...