Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Images wont upload to the SSL server-look at my config files


ryans1000

Recommended Posts

I've been trying to solve this problem for quite some time now, I would really appreciate you help.

 

I am trying to get my SSL setup working. The problem is when I add new products into the catalog the image is uploaded to the http server fine but not to the SSL server. On checkout (SSL side) the images are pointing to the images folder on the SSL server but they don't get uploaded there. So I end up having to manually upload the pics from the http images folder to the https images folder every time I upload a product.

 

My http server is http://www.importevolution.com and my secure server is https://www.securedpage.com/~f1429 . I have the admin page set up on the http server at catalog/admin

 

I've seen this problem a lot in the forums but no clear solutions that i could find. I have seen stores with a similar setup uploading to both places sucessfully upon adding a product.

Here is my catalog configure.php file

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

 define('HTTP_SERVER', 'http://www.importevolution.com'); // eg, http://localhost - should not be NULL for productive servers

 define('HTTPS_SERVER', 'https://www.securedpage.com/~f1429'); // eg, https://localhost - should not be NULL for productive servers

 define('ENABLE_SSL', true); // secure webserver for checkout procedure?

 define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

 define('DIR_WS_IMAGES', 'images/');

 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

 define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname

 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', DIR_WS_CATALOG . 'pub/');

 define('DIR_FS_DOCUMENT_ROOT', '/usr/local/plesk/apache/vhosts/importevolution.com/httpdocs');

 define('DIR_FS_CATALOG', '/usr/local/plesk/apache/vhosts/importevolution.com/httpdocs/catalog/');

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

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

 

And here is my Admin configure.php file

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

 define('HTTP_SERVER', 'http://www.importevolution.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

 define('HTTP_CATALOG_SERVER', 'http://www.importevolution.com');

 define('HTTPS_CATALOG_SERVER', 'https://www.securedpage.com/~f1429');

 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

 define('DIR_FS_DOCUMENT_ROOT', '/usr/local/plesk/apache/vhosts/importevolution.com/httpdocs'); // where the pages are located on the server

 define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required

 define('DIR_FS_ADMIN', '/usr/local/plesk/apache/vhosts/importevolution.com/httpdocs/catalog/admin/'); // absolute pate required

 define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

 define('DIR_FS_CATALOG', '/usr/local/plesk/apache/vhosts/importevolution.com/httpdocs/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/');

 

 

Feel free to check out my site at http://www.importevolution.com/catalog, I would REALLY appreciate it.

 

Ryan

Link to comment
Share on other sites

I remember having a similar problem when I was updating some images on my site. I was upgrading images on the server, and keeping the name of the image the same. For some reason, oscommerce would not overwrite and I had to do it manually. If this is the problem you are having also, then I wuold suggest emptying all your product images and then going from there (I don't know how to solve it).

 

Otherwise, it may be that its a permissions issue. I set my /catalog/images/ directory to 777 or rwx-rwx-rwx untill I was finished messing with images and that seemed to make it happy.

 

From what I've heard, the ssl is just used as a gateway, to prevent hackers from entering your site. You don't actually have any of the data stored on that server so I'm not sure why you would need to upload anything to it. Basically what it does is takes all requests from your secure pages and then calls them from the non ssl side, routing them through the secure connection: thus making it a secure transaction.

 

I took a look at your config files, and they look fine to me. I'm not a PHP guru, but I've futzed around with oscommerce enough to figure a few things out.

 

One other thing you may look at is, if you have any absolute references for your images, you'll need to change that (ie., <img src="http://www.yourwebsite.com/catalog/images/yourimage.gif">, needs to be more like <img src="/catalog/images/yourimage.gif"> ).

 

If you want to send me your username/password for the admin, and your ftp info, I will do some light testing for you and see what I can come up with. I can't tell very much just looking at it right now though. Good luck!

 

 

Mike

Installed Modules:

Dynamenu, InfoBox Admin, Master Products v.1.2, Header Tags Controller, Multiple Products Manager, Quick Edit in Admin, Secure Admin, Ultimate SEO URL's, EZ Secure Order, Easy Populate v.2.76d MS2, AuthorizeNet_AIM, ChangeFinal Breadcrumb Title, FedEx Labels, Fedex Direct 2.06, How Did you Hear 1.5, Login a la Amazon, UPS XML 1.2.4, USPS Labels, USPS Methods API MS2

Link to comment
Share on other sites

 define('DIR_FS_DOCUMENT_ROOT', '/usr/local/plesk/apache/vhosts/importevolution.com/httpdocs');

 

Hi Ryan!

 

I think you need a slash at the end of this line in your catalog config. See if that doesn't help. If not, find out if your HTTPS is physically the same server as your HTTP.

Link to comment
Share on other sites

mthierfelder - this isn't just related to updating, happens when ever I add a product. I doubled check the images folder on the ssl server and it is 777. I did a view source on the html page when at the login in page on the ssl server, the images are reffered to by a <img src="images/xxx.gif". I will probably get back to you and have you log in and take a peek at the my setup. Thanks for being so helpful.

 

BirdBrain:

I think you need a slash at the end of this line in your catalog config

I did this and see no changes in my site functionality at all. I also found out that the SSL IS physically on a different server than my http stuff.

Link to comment
Share on other sites

I did this and see no changes in my site functionality at all. I also found out that the SSL IS physically on a different server than my http stuff.

 

Well, if the slash doewsn't break anything I'd leave it.

 

As for the HTTPS being a different server, I'd get all my images loaded and have my host copy the directory for me.

Link to comment
Share on other sites

So does the SSL portion of OSC have to be on the same physical server for OSC to handle your images correctly? I may be able to have my host put me on the same server, would this fix my problem?

 

As for the HTTPS being a different server, I'd get all my images loaded and have my host copy the directory for me.

I am constanty going to be adding products, almost on a daily basis so it is kind of a hassle to have to manually manage the images on the SSL side.

Link to comment
Share on other sites

I may be able to have my host put me on the same server, would this fix my problem?

 

Yep! Having everything on the same server will make your life MUCH easier.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...