Guest Posted January 4, 2005 Posted January 4, 2005 Hi I have checked most of the posts on SSL setup and am still having problems. My two configure.php files are shown below. Basically when I go to the control screen it still says I have not a SSL secure site. I have a shared SSL cert. from my host and have tried to make the neccessary changes as suggested. When I go to the main site page I get the following error... 'Parse error: parse error in /var/www/html/catalog/includes/configure.php on line 19 Warning: main(DIR_WS_INCLUDESfilenames.php): failed to open stream: No such file or directory in /var/www/html/catalog/includes/application_top.php on line 53 Fatal error: main(): Failed opening required 'DIR_WS_INCLUDESfilenames.php' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/catalog/includes/application_top.php on line 53' Any help gratefully received. [/code]catalog/admin/includes/configure.php // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.genmine.com.au'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.genmine.com.au'); define('HTTPS_CATALOG_SERVER', 'https://sslsharedserver?); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/var/www/html/catalog/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/catalog/inertim/'); // absolute path required define('DIR_FS_ADMIN', '/var/www/html/catalog/admin/'); // absolute path required define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_FS_CATALOG', '/var/www/html/catalog/'); // 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/'); // define our database connection define('DB_SERVER', '127.0.0.1'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', '******'); define('DB_SERVER_PASSWORD', '*******'); define('DB_DATABASE', 'genmine_com_au_-_products'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> catalog\includes\configue.php // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.genmine.com.au'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://sslsharedserver'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.genmine.com.au'); define('HTTPS_COOKIE_DOMAIN',smartysecure.com/~hjs515'); define('HTTP_COOKIE_PATH','/catalog/'); define('HTTPS_COOKIE_PATH',"); 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', '/var/www/html/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', '127.0.0.1'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', '*******'); define('DB_SERVER_PASSWORD', '*******'); define('DB_DATABASE', 'genmine_com_au_-_products'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?>[/code]
TAPAKAH Posted January 4, 2005 Posted January 4, 2005 catalog/admin/includes/configure.php define('HTTP_CATALOG_SERVER', 'http://www.genmine.com.au'); define('HTTPS_CATALOG_SERVER', 'https://sslsharedserver?); catalog\includes\configue.php define('HTTPS_SERVER', 'https://sslsharedserver'); // eg, ?> As far as i know your HTTPS should be in admin: define('HTTPS_CATALOG_SERVER', 'https://www.genmine.com.au?); in catalog: define('HTTPS_SERVER', 'https://www.genmine.com.au'); not sslsharedeserver... hope that helps.
Guest Posted January 4, 2005 Posted January 4, 2005 you need to ask your host what the 'alias' path setting to use for your shared ssl certificate.
Guest Posted January 4, 2005 Posted January 4, 2005 you need to ask your host what the 'alias' path setting to use for your shared ssl certificate. <{POST_SNAPBACK}> Where I put 'sslsharedserver', that was the path to the shared ssl server. It actually read 'smartyhost.com/*******'. Is this what you mean by alias?
Guest Posted January 4, 2005 Posted January 4, 2005 yes. if you are wanting help, you should post the proper thing you have. that path actually gets displayed to your customers so it is nothing private.
Guest Posted January 4, 2005 Posted January 4, 2005 catalog/admin/includes/configure.php ?define('HTTP_CATALOG_SERVER', 'http://www.genmine.com.au'); ?define('HTTPS_CATALOG_SERVER', 'https://sslsharedserver?); ? catalog\includes\configue.php ?define('HTTPS_SERVER', 'https://sslsharedserver'); // eg, ?> As far as i know your HTTPS should be in admin: define('HTTPS_CATALOG_SERVER', 'https://www.genmine.com.au?); in catalog: define('HTTPS_SERVER', 'https://www.genmine.com.au'); not sslsharedeserver... hope that helps. <{POST_SNAPBACK}>
Guest Posted January 4, 2005 Posted January 4, 2005 <{POST_SNAPBACK}> I tried changing it but got the same error.
Guest Posted January 4, 2005 Posted January 4, 2005 yes. if you are wanting help, you should post the proper thing you have. that path actually gets displayed to your customers so it is nothing private. <{POST_SNAPBACK}> No problem. The actual syntax is... define('HTTP_SERVER', 'http://www.genmine.com.au'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://smartysecure.com/~hjs515'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.genmine.com.au'); define('HTTPS_COOKIE_DOMAIN',smartysecure.com/~hjs515'); define('HTTP_COOKIE_PATH','/catalog/'); define('HTTPS_COOKIE_PATH',");
Guest Posted January 4, 2005 Posted January 4, 2005 define('HTTPS_COOKIE_DOMAIN',smartysecure.com/~hjs515'); to define('HTTPS_COOKIE_DOMAIN', 'smartysecure.com/~hjs515');
Guest Posted January 4, 2005 Posted January 4, 2005 define('HTTPS_COOKIE_DOMAIN',smartysecure.com/~hjs515'); to define('HTTPS_COOKIE_DOMAIN', 'smartysecure.com/~hjs515'); <{POST_SNAPBACK}> OK tried that. I got basically the same error with a different line number in... 'Parse error: parse error in /var/www/html/catalog/includes/configure.php on line 44 Warning: main(DIR_WS_INCLUDESfilenames.php): failed to open stream: No such file or directory in /var/www/html/catalog/includes/application_top.php on line 53 Fatal error: main(): Failed opening required 'DIR_WS_INCLUDESfilenames.php' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/catalog/includes/application_top.php on line 53'
Guest Posted January 4, 2005 Posted January 4, 2005 define('DIR_FS_DOCUMENT_ROOT', '/var/www/html/catalog/'); is wrong define('DIR_FS_DOCUMENT_ROOT', '/var/www/html'); is right you have other configure.php file problems, change this part then try, and copy and paste the new configure.php file
Guest Posted January 4, 2005 Posted January 4, 2005 define('DIR_FS_DOCUMENT_ROOT', '/var/www/html/catalog/'); is wrong define('DIR_FS_DOCUMENT_ROOT', '/var/www/html'); is right you have other configure.php file problems, change this part then try, and copy and paste the new configure.php file <{POST_SNAPBACK}> Hi John I tried that change which didn't make any difference. Which new configure.php file are you talking about that I have to cut and paste? Brian
developer_x Posted January 4, 2005 Posted January 4, 2005 Hi Brian, My honest suggestionf would be to reinstall oscommerce. Reinstallation is much more easier for a newbie as compared to bug fixing. :rolleyes: Irfan,
Recommended Posts
Archived
This topic is now archived and is closed to further replies.