Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

URLS are now not working


razorack

Recommended Posts

All of a sudden my catalog product URLS are not working and I dont know what has happened. My URLS now look like this:

 

Description: Unable to locate the server named "184.173.20.193dir_ws_http_catalogproduct_info.php" --- the server does not have a DNS entry. Perhaps there is a misspelling in the server name, or the server no longer exists. Double-check the name and try again.

 

Can anyone help

Link to comment
Share on other sites

This is the output from the file /includes/configure.php, and I do not see a configure.php in the admin directory.

 

<?php

define('HTTP_SERVER', 'http://ip.ad.re.ss');

define('HTTP_CATALOG_SERVER', 'http://ip.ad.re.ss');

define('HTTPS_CATALOG_SERVER', 'http://ip.ad.re.ss');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/var/www/vhosts/333/httpdocs/');

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

define('DIR_FS_ADMIN', '/var/www/vhosts/333/httpdocs/admin/');

define('DIR_WS_CATALOG', '/');

define('DIR_FS_CATALOG', '/var/www/vhosts/333/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/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

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

 

 

?>

Link to comment
Share on other sites

this is the one in the httpdocs/admin/includes directory:

 

<?php

define('HTTP_SERVER', 'http://ip.ad.re.ss');

define('HTTP_CATALOG_SERVER', 'http://ip.ad.re.ss');

define('HTTPS_CATALOG_SERVER', 'http://ip.ad.re.ss');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/var/www/vhosts/333/httpdocs/');

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

define('DIR_FS_ADMIN', '/var/www/vhosts/333/httpdocs/admin/');

define('DIR_WS_CATALOG', '/');

define('DIR_FS_CATALOG', '/var/www/vhosts/333/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/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

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

 

 

?>

Link to comment
Share on other sites

@@razorack

As TheGuy noted above you edit your files to NOT show your admin credentials!! In fact you should see the security forums for ver 2.3.3 of oscommerce!!

 

This is a great start as most security issues here apply to v2.3.3 or above:

 

http://www.oscommerce.com/forums/topic/313323-how-to-secure-your-oscommerce-22-site/

 

Not only that but you have given everybody access to your shops admin and possibly your server.

 

Anyone with a knowledge of ports could easily boot you off your own server!! or worse steal your customers info!! or even worse ask you for a ransom to get you back on line!! Or blacklist you from google!!

 

And to top it all off, You did not change your admin directory when installing your shop. I understand your new, but these are basic 101 practices. For further reference please refrain from posting the whole files of your shop in the forums unless you edit out the important features such as the config for your database server.

 

When installing your new shop please use the install dir that comes with the package. After installing please immediatly delete out the install.php file and folder if any. And when it asks for the admin dir change it!!

Always backup your files! You will be glad you did

My add-ons :

SSPP Seperate Shipping Per Product v2.5| Support
Gift vouchers for SPPC 4.22 v2.1 | Support |
Catalog Infobox v1.0 | Sorry no support for Catalog Infobox |
HTML Mail v2.0 | Support |




Upcoming Add ons:

Addon Manager |
Separate Pricing Per Product Qty |
Coupon Populate |
EZ-PDF Catalog

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...