Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

All links point to localhost


Recommended Posts

I'm on a stand-alone network here and have no DNS... so my IP within my subnet is However, I'm using natting so the client computers will have to go to 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 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:


 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:


define('HTTP_SERVER', '');
define('HTTPS_SERVER', '');
define('ENABLE_SSL', false);
define('HTTP_COOKIE_DOMAIN', '');
define('HTTPS_COOKIE_DOMAIN', '');
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('DB_SERVER', 'localhost'); 


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


I've also played with the HTTP_SERVER value, changing it to, 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


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

  • Create New...