Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin Panel


masat

Recommended Posts

I have installed a store and it works great as usual but I want the admin panel on a different domain that has a secure certificate installed. The admin panel works just dandy but I have a path problem to my catalog.

 

In admin when I go to categories.php the message stack stacks up and says my catalog images directory does not exist. I am sure most folks that have worked with osCommerce for a while have seen these from time to time.

 

I think I have discovered the hold up but don't know how to fix it.

 

As best I can tell the issue is this...

 

osc uses the function is_dir to check to see if the images directory is there and is writable.

 

ref admin/categories.php line 358(Approx. I do have some contribs installed) last php code before the html starts on the page.

 

Evidently that function does not work outside the local root directory.

 

I think I need a is_remote_dir function but after looking through the php manual for quite some time I was not able to uncover the thing that is best suited to work in my case.

 

If you could throw out some suggestions I would really appreciate the help

How do you know when you know what you want to do for the rest of your life?

Link to comment
Share on other sites

If the different domain is on the same server and sql is also on the same server then you should be able to do it - otherwise you are out of luck. If on a different server then sure you can install the 'admin' folder there, but what's going to happen when you make changes in admin which are then sent to the database? In all likelyhood you won't be able to write data to a database on one server from a site based on another - basic security=firewall.

 

If they are on the same server (along with MySQL), then you create a folder on the domain with the SSL cert and put your admin folder contents into that folder, and then make your http_server read 'https://www.ssldomain.com', and you'd also have to hardcode some other entries.

 

Basically it would be a whole lot simpler to buy a new ssl cert for the new domain (it's not as if they are expensive). Either that or, if you have the ability in your hosting control panel, create a self-generated cert and use it just for 'admin' and not for the shop front. For the shop front use the shared ssl provided by your host.

 

Vger

Link to comment
Share on other sites

Well I'm lost. I have to get this site up so I'm going to put the admin on the same domain for now and work on the other later.

 

I have a shared server with 50 domains hosted on it but the cert is on one of the fifty and not the main domain. I totally control my shared server which has the database server also but I am not real good with working with the server technology. The main hosting company has told us we can only have one cert on the server. I probably misunderstood them. It will just take some time to get everything straight.

 

I personally work on about 12 sites regularly so I have placed all their admin panels on the cert site and set them up as such in Dreamweaver so I have easy acces to all for development. (I spend most of my time in the admin panels so it works well like that for me. This is the first time I have tried to use the osc admin set up like this and it all works good except for loading products and product images. I'm still stuck on that is_dir function. I tried every combo of path configurations as I could think of to get to the main osc site. Even tried putting in full paths (tried both relative and absolute) to the osc site but none worked out. Always said directory does not exist.

 

In the message stack it shows the path it is checking and I could copy and paste right into yhe address bar and get where I was suppose to be but the code would not recognize that the directory exists.

 

I'm going to do some reading on SSL and this working but I've got three high priority sites I have to have done in the next couple of weeks so this project will just have to wait for a while.

 

Thanks for your response. By the way, if you do happen across some info that may help me along please stop back by and jot it down. I saw lastnight someone has put up an idiots guide to SSL here on the forum so I'm going to check that out. This forum is great and this application is great. I have learned alot by working with osCommerce. I thank the team and all the wonderful folks like yourself that contribute their time and effort to this project.

 

Take Care

How do you know when you know what you want to do for the rest of your life?

Link to comment
Share on other sites

Each server is limited to between 30 and 32 dedicated ip addresses - and you need these to operate full ssl certs on a shared server.

 

However, many companies use a full ssl cert in the name of the server, and then any site on that server can use the shared ssl cert, with no problems, no warning messages etc. An example would be:

https://servername.hostingcomapny.com/yourdomain.com

 

As I said before, provided your sites have dedicated ip addresses and a decent web hosting control panel you should be able to self-generate a cert to use for the admin section. This wouldn't do for the shop front, because you will get a warning that the cert is not 'Trusted', but it's perfectly good for the admin panel.

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...