Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

All links point to localhost


serialbumpy

Recommended Posts

I'm on a stand-alone network here and have no DNS... so my IP within my subnet is 8.8.9.9. However, I'm using natting so the client computers will have to go to 8.8.8.9 to view the page. Just thought I'd make that clear...

 

After the installation, everything was working fine on the server computer. However, the client computers were unable to load anything besides the text in index.php (hyperlinks for everything pointed to localhost/..., which is incorrect; should be 8.8.8.9/...). I read somewhere a while back (or maybe in a config comment) that you had to create a configure.php in /catalog/includes/local. So I went ahead and did that:

 

<?php
 #/catalog/includes/local/configure.php
 define('HTTP_SERVER', 'http://localhost');
 define('HTTPS_SERVER', 'http://localhost');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', 'localhost');
 define('HTTPS_COOKIE_DOMAIN', 'localhost');

 define('DB_SERVER', 'localhost');
?>

 

I've played with these 'localhost' values to see if they'd change the hyperlinks on the index.php, but no success.

 

Here is my configure.php file from /catalog/includes/configure.php:

 

<?php
#/catalog/includes/configure.php
define('HTTP_SERVER', 'http://8.8.9.9');
define('HTTPS_SERVER', 'http://8.8.9.9');
define('ENABLE_SSL', false);
define('HTTP_COOKIE_DOMAIN', '8.8.9.9');
define('HTTPS_COOKIE_DOMAIN', '8.8.9.9');
define('HTTP_COOKIE_PATH', '/catalog/');
define('HTTPS_COOKIE_PATH', '/catalog/');
define('DIR_WS_HTTP_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/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', '/opt/coolstack/apache2/htdocs/catalog/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DB_SERVER', 'localhost'); 

USRNAME, DB & PASSWORD JUNK

define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'mysql');
?>

 

I've also played with the HTTP_SERVER value, changing it to 8.8.8.9, thinking maybe it was what client computers used. Still no success. Maybe its a .htaccess problem? Maybe somewhere in mySQL? I installed Apache, PHP, and MySQL mere weeks ago using the Solaris 'Coolstack' package library. PHP does work.

 

Any suggestions? Thanks in advance; this has been bothering me for weeks.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...