Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Receiving two errors


trisha33

Recommended Posts

Hello,

I have had to do some work on my oscommerce site and receiving the following errors:

 

Warning: is_dir(): Stat failed for /home/mylittle/public_html/admin/backups/ (errno=13 - Permission denied) in /home/mylixcom/public_html/admin/backup.php on line 300

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

 

Here is the code for the configure file:

 

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

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

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

define('HTTPS_CATALOG_SERVER', 'https://mylittletoybox.com/~mylittle');

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

define('DIR_FS_DOCUMENT_ROOT', '/home/mylittle/public_html/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/home/mylittle/public_html/admin/'); // absolute pate required

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

define('DIR_FS_CATALOG', '/home/mylittle/public_html/'); // 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/');

 

 

**the thing is the backup directory does exist..

 

Thanks for your help!

:D

Link to comment
Share on other sites

Okay tried uploading images and got the following:

 

Warning: is_dir(): Stat failed for /home/mylittle/public_html/images/ (errno=13 - Permission denied) in /home/mylixcom/public_html/admin/includes/classes/upload.php on line 151

 

Warning: is_dir(): Stat failed for /home/mylittle/public_html/images/ (errno=13 - Permission denied) in /home/mylixcom/public_html/admin/categories.php on line 357

 

 

 

So it may be a problem with my server?

 

Does image uploading work?

 

This can happen if safe_mode is on and the directory has a different owner than PHP/apache. If your image uploading works, then I would imagine there's another problem. I'm not seeing an issue with your configure.php file.

Link to comment
Share on other sites

In your admin section, go to Tools > Server Info. Search for "safe_mode." If it says On, contact your host, as I don't know of a workaround. You will need to explain to them that you have a script that requires the ability to write to a directory.

 

 

Okay this is what i found:

safe_mode Off Off

safe_mode_exec_dir no value no value

safe_mode_gid Off Off

safe_mode_include_dir no value no value

 

 

I am contacting host anyway because it was working fine earlier.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...