phildemarco Posted March 16, 2006 Posted March 16, 2006 I just installed a SSL Certificate on my server I am now trying to get it working in my store but am coming up with Parse error: parse error, unexpected T_STRING in /home/pd1pd2/public_html/includes/configure.php on line 16 So I would like to post my catalog/includes/configure.php and my admin/includes/configure for someone to take a look at and tell me what I did wrong total neube when it comes to php and ssl certificates. <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.dndent.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://dndent.com); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.dndent.com'); define('HTTPS_COOKIE_DOMAIN', 'dndent.com'); 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', '/home/pd1pd2/public_html/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'pd1pd2_osc1'); define('DB_SERVER_PASSWORD', 'osc957'); define('DB_DATABASE', 'pd1pd2_osc'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.dndent.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.dndent.com'); define('HTTPS_CATALOG_SERVER', 'https://dndent.com'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/pd1pd2/public_html/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/pd1pd2/public_html/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', '/home/pd1pd2/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/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'pd1pd2_osc1'); define('DB_SERVER_PASSWORD', 'osc957'); define('DB_DATABASE', 'pd1pd2_osc'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> Thank you so much for your time Phil :unsure:
run2web Posted March 16, 2006 Posted March 16, 2006 I just installed a SSL Certificate on my server I am now trying to get it working in my store but am coming up with Parse error: parse error, unexpected T_STRING in /home/pd1pd2/public_html/includes/configure.php on line 16 So I would like to post my catalog/includes/configure.php and my admin/includes/configure for someone to take a look at and tell me what I did wrong total neube when it comes to php and ssl certificates. <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.dndent.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://dndent.com); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.dndent.com'); define('HTTPS_COOKIE_DOMAIN', 'dndent.com'); 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', '/home/pd1pd2/public_html/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'pd1pd2_osc1'); define('DB_SERVER_PASSWORD', 'osc957'); define('DB_DATABASE', 'pd1pd2_osc'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.dndent.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.dndent.com'); define('HTTPS_CATALOG_SERVER', 'https://dndent.com'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/pd1pd2/public_html/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/pd1pd2/public_html/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', '/home/pd1pd2/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/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'pd1pd2_osc1'); define('DB_SERVER_PASSWORD', 'osc957'); define('DB_DATABASE', 'pd1pd2_osc'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> Thank you so much for your time Phil :unsure: on line 15 in /home/pd1pd2/public_html/includes/configure.php You need to change define('HTTPS_SERVER', 'https://dndent.com); to define('HTTPS_SERVER', 'https://dndent.com'); Michelle Just hangin' out in the zoo!
phildemarco Posted March 16, 2006 Author Posted March 16, 2006 on line 15 in /home/pd1pd2/public_html/includes/configure.php You need to change define('HTTPS_SERVER', 'https://dndent.com); to define('HTTPS_SERVER', 'https://dndent.com'); Michelle Michelle I hate to sound stupid because I am really not but where do I find the /home/pd1pd2/public_html/includes/configure.php file at? :( Thanks for you help Phil
run2web Posted March 16, 2006 Posted March 16, 2006 Michelle I hate to sound stupid because I am really not but where do I find the /home/pd1pd2/public_html/includes/configure.php file at? :( Thanks for you help Phil no problem you should have a directory called cart or catalog or something where OSC was installed. Do you have a www directory? If you do, look in there for a directory called pd1pd2 or catalog or cart or whatever you named it. can you give me a web site address? Just hangin' out in the zoo!
phildemarco Posted March 16, 2006 Author Posted March 16, 2006 no problem you should have a directory called cart or catalog or something where OSC was installed. Do you have a www directory? If you do, look in there for a directory called pd1pd2 or catalog or cart or whatever you named it. can you give me a web site address? Michelle, could you PM [email protected] and tell me exactly what you need I have my website pass protected while I am working on it Thanks for all your help Phil :thumbsup:
phildemarco Posted March 16, 2006 Author Posted March 16, 2006 Now I have another problem I have to work out.When I re-installed my original backup configure.php files that where not altered I get this error message on the top of my store. Warning: I am able to write to the configuration file: /home/pd1pd2/public_html/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. Can someone PLEASE HELP!!!!!!!!!!!! I am about to pull all my hair out what little I have left lol. enigma1 Mark where are you when I need you!!!!!!! I hope you get a chance to read this post and take a look at my configure.php files for me you helped me out of a jam before I hope this one will go as smothley. Thanks to everyone you also Michelle Phil :wacko:
Funkybunny Posted March 16, 2006 Posted March 16, 2006 either CHMOD the file and set it to 444, (use your server CP if ftp client wont set it) or edit the php (shop/includes/application_top.php) to: // set which precautions should be checked define('WARN_INSTALL_EXISTENCE', 'true'); define('WARN_CONFIG_WRITEABLE', 'true'); <---Change this to false to stop the warning define('WARN_SESSION_DIRECTORY_NOT_WRITEABLE', 'true'); define('WARN_SESSION_AUTO_START', 'true'); define('WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true');
rhodgkiss2001 Posted March 16, 2006 Posted March 16, 2006 Hello, I actually bought a private ssl certificate yesterday only to be told that my hosting company does not support them and there is a shared one. now I have no idea what to do. When I go into my admin tools, I can see the url which has .secure in it but, don't know what to do with it... Any help would be really appreciated. I was also told how to password protect my admin page which I did but, it doesn't seem to have made any difference?
phildemarco Posted March 16, 2006 Author Posted March 16, 2006 OK here we go again I installed a SSL Certificate yesterday I made all the changes to my configure.php files that where required for the SSL now every singal one of my images do not show up catalog images,header images, everything white boxes with little red X's.Also all my links eveyone of them when you click on them you get a 404 error page can not be found. What in the world is going on here? Can someone PLEASE!!!!!!!!!!!! point me in the right direction. I did not know that installing a SSL Certificate could be such a PAIN IN THE ASSSSSSSSSSS!!!!!! Thank you all for your kindness in advance. Phil PS any SSL Experts out there!!!!!!!!!!!!!!!!!!!!! :(
ozcsys Posted March 16, 2006 Posted March 16, 2006 OK here we go again I installed a SSL Certificate yesterday I made all the changes to my configure.php files that where required for the SSL now every singal one of my images do not show up catalog images,header images, everything white boxes with little red X's.Also all my links eveyone of them when you click on them you get a 404 error page can not be found. What in the world is going on here? Can someone PLEASE!!!!!!!!!!!! point me in the right direction. I did not know that installing a SSL Certificate could be such a PAIN IN THE ASSSSSSSSSSS!!!!!! Thank you all for your kindness in advance. Phil PS any SSL Experts out there!!!!!!!!!!!!!!!!!!!!! :( When you have broken links in your store the best thing to do is right click on the red x and see where osC is looking for the images by looking at the path in the properties. Then you know where osC is looking and you can go into your configure.php files and fix the path so osC is looking in the correct directory. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
run2web Posted March 21, 2006 Posted March 21, 2006 OK here we go again I installed a SSL Certificate yesterday I made all the changes to my configure.php files that where required for the SSL now every singal one of my images do not show up catalog images,header images, everything white boxes with little red X's.Also all my links eveyone of them when you click on them you get a 404 error page can not be found. What in the world is going on here? Can someone PLEASE!!!!!!!!!!!! point me in the right direction. I did not know that installing a SSL Certificate could be such a PAIN IN THE ASSSSSSSSSSS!!!!!! Thank you all for your kindness in advance. Phil PS any SSL Experts out there!!!!!!!!!!!!!!!!!!!!! :( Phil, I just had the same problem. I had to go into my .htaccess file that is in the public_html folder and tell it to show the images on the secure server as well. Save the .htaccess to your local machine and open it using notepad or similar. Look at how the original code is written in there and then copy them and paste them below what is there and then add the https to them. Once you modify them, upload it again to the public_html folder on your server and it should work. hth Michelle Just hangin' out in the zoo!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.