Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Directory Problems?


Stealth1

Recommended Posts

It seems im having an issue with my directories of my new install of osc. I am using hostingplex.com for my hosting and did the osc install through the cpanel. Everything seems to work fine except for all modules it doesnt list anything and for the images it says directory doesnt exist etc etc. Now the directory does exist so im guessing its just looking in the wrong location for the files.

 

Has anyone experienced this before and could tell me what i should look for in order to rectify this problem.

 

I have another thread going but figured this section would probably be more helpful, heres a link to the other thread:

http://www.oscommerce.com/forums/index.php?showtopic=214951

Link to comment
Share on other sites

It sounds as though either the files and folders are assigned to the wrong owner or have the wrong permissions.

 

The folders should be 755 and files 644, except for the images folder which should be 777.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

It sounds as though either the files and folders are assigned to the wrong owner or have the wrong permissions.

 

The folders should be 755 and files 644, except for the images folder which should be 777.

 

I have tried to modify the CHMOD but nothing changes at all, im reall hoping its just one improperly defined part thats not pointing it to the right place.

Link to comment
Share on other sites

You should keep posting in the same area so people see what other suggestions have been made to your issue. I just asked you to paste your configure.php file on the other thread.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

You should keep posting in the same area so people see what other suggestions have been made to your issue. I just asked you to paste your configure.php file on the other thread.

yeah i know im just in a real rush to get this rectified and figured this section might be better?

Link to comment
Share on other sites

Does that mean that the permissions are not changed, the problem is not resolved, or both?

 

BTW, Wendy is correct in that you actually slow down the resolution of your problem by having multiple postings.

 

I have tried to modify the CHMOD but nothing changes at all, im reall hoping its just one improperly defined part thats not pointing it to the right place.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Does that mean that the permissions are not changed, the problem is not resolved, or both?

 

BTW, Wendy is correct in that you actually slow down the resolution of your problem by having multiple postings.

 

the changes seem to take effect and the permissions are setup correctly, is it possible I am missing parts of the config file and therefore it doesnt know where to look for the files? I can post up my config file if someone lets me know which parts i should remove before posting it up.

Link to comment
Share on other sites

Anytime you are asked for your configuration file, always remove the database section.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Yes and it contains all of the entries that start with db_ along with the sessions and persistent connections.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Double posting is against forum rules, and wastes people's time - as you have already been told.

 

The reason your admin folder is not working correctly is because you've overwritten your admin/includes/configure.php fie with an includes/configure.php file - they are different files.

 

There is a thread in the Tips & Tricks forum which shows people how to set up their configure.php files manually. You need to find that thread.

 

Vger

Link to comment
Share on other sites

Double posting is against forum rules, and wastes people's time - as you have already been told.

 

The reason your admin folder is not working correctly is because you've overwritten your admin/includes/configure.php fie with an includes/configure.php file - they are different files.

 

There is a thread in the Tips & Tricks forum which shows people how to set up their configure.php files manually. You need to find that thread.

 

Vger

 

I will look for that thread but im 99% sure i didnt ovewrite the file with the wrong one.

Link to comment
Share on other sites

Ok I found the thread and went through it but it made no difference for me when i look at the store and I still get this message "Warning: I am able to write to the configuration file: /home/trplscom/public_html/tougetuning/osc/includes/configure.php. This is a potential security risk - please set the right user permissions on this file."

 

When i log into the admin panel panel the main part shows up but no matter what i click I get the same message:

 

"Not Found

The requested URL /admin/configuration.php was not found on this server.

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. "

 

whats the issue here?

Link to comment
Share on other sites

here is what my admin config file reads:

 

<?php

/*

$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', 'http://tougetuning.com/'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://tougetuning.com/'); // eg, https://localhost - should not be empty for productive servers

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

define('HTTPS_CATALOG_SERVER', 'https://www.tougetuning.com/osc');

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.tougetuning.com');

define('HTTPS_COOKIE_DOMAIN', 'www.tougetuning.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

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

define('DIR_FS_ADMIN', 'home/trplscom/public_html/tougetuning/osc/admin/');

define('DIR_WS_CATALOG', '/'); // absolute path required

define('DIR_FS_CATALOG', '/home/trplscom/public_html/tougetuning/'); // absolute path required

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

Link to comment
Share on other sites

ok i think i finally got everything fixed, here is my latest admin config file:

define('HTTP_SERVER', 'http://tougetuning.com/osc/'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://tougetuning.com/osc/'); // eg, https://localhost - should not be empty for productive servers

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

define('HTTPS_CATALOG_SERVER', 'https://www.tougetuning.com/osc');

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.tougetuning.com');

define('HTTPS_COOKIE_DOMAIN', 'www.tougetuning.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

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

define('DIR_FS_ADMIN', 'home/trplscom/public_html/tougetuning/osc/admin/');

define('DIR_WS_CATALOG', '/'); // absolute path required

define('DIR_FS_CATALOG', '/home/trplscom/public_html/tougetuning/'); // absolute path required

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'osc/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 . 'osc/includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'osc/images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'osc/includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

My only issues right now are these:

 

1.Error: Backup directory does not exist. Please set this in configure.php.

I have the backups directory under the admin part which is where i think it should be but doesnt seem to be working

 

2.Under File Manager I get this error

Warning: dir(DIR_FS_DOCUMENT_ROOT): failed to open dir: No such file or directory in /home/trplscom/public_html/tougetuning/osc/admin/file_manager.php on line 178

 

Fatal error: Call to a member function on a non-object in /home/trplscom/public_html/tougetuning/osc/admin/file_manager.php on line 179

File Manager

DIR_FS_DOCUMENT_ROOT

Link to comment
Share on other sites

You must chmod the backups folder to ummm 777 I think. osCommerce has to be able to write to the folder.

 

Do NOT use the file manager that comes with osCommerce. Ever.

To edit a file, download it to your computer, edit, then reupload it.

There are known issues with the file manager (check the bug reports)

So having an error there doesn't really matter.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

You must chmod the backups folder to ummm 777 I think. osCommerce has to be able to write to the folder.

 

Do NOT use the file manager that comes with osCommerce. Ever.

To edit a file, download it to your computer, edit, then reupload it.

There are known issues with the file manager (check the bug reports)

So having an error there doesn't really matter.

 

I changed the chmod of the backups folder to 777 but made no difference, i get the same error saying directory doesnt exist.

 

to edit all the files i have i have downloaded them using smartftp and then edit then re-upload, i have not used the file manager at all. What is the reason i am getting the error when i click on file manager or is it a common issue that i shouldnt be concerned with?

 

Also im still getting this error "I am able to write to the configuration file" even after ive changed the config files to read only.

Link to comment
Share on other sites

any input on the backup folder issue?

 

Are you chmoding the /catalog/backups or the /catalog/admin/backups ?

 

I made the same mistake when I initially started using the osc db backup system, and had actually created the one in /catalog/ thinking the package did not already create it.

 

Double check the permissions on your configure.php, and your /module/ directories (both in /catalog/includes/ and /catalog/admin/includes/)

 

Thomas Keats :blink:

A signature is something that reflects its user. - The dictionary

 

The question is not, 'to code, or not to code'

the question is, 'if we do not code, are we really alive?'

-- anonymous

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...