Zen Cart Logo
Forums / Installing on a Linux/Unix Server / ssl not working - Fasthosts

ssl not working - Fasthosts

Locked

Views: 7,707

Results 1 to 20 of 22
This thread is locked. New replies are disabled.
30 Mar 2007, 2:04 PM
#1
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

ssl not working - Fasthosts

having major problems here, i have a server with fast hosts on a linux server, also have a shard ssl server whihc is on a windows server,

i have my store running 100% with ssl off, i copied all file over from the linux server to the ssl windows server and edited the includes/config and admin/includes/config file so the urls are correct and the ssl is true.

so now i have 2 copys of my store on bother servers,

when i loginto admin i get this

Warning: main(/home/fhlinux173/r/rubberduckbathrooms.co.uk/user/htdocs/store/includes/autoload_func.php) [function.main]: failed to create stream: No such file or directory in e:\sslroot\storessl\store\admin\includes\application_top.php on line 147

Fatal error: main() [function.main]: Failed opening required '/home/fhlinux173/r/rubberduckbathrooms.co.uk/user/htdocs/store/includes/autoload_func.php' (include_path='.;c:\php4\pear') in e:\sslroot\storessl\store\admin\includes\application_top.php on line 147

and when i try to be a customer and login i get this

CGI Error

The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:

also get this error when trying to do anything with ssl,

any one help???

my site is www.rubberduckbathrooms.co.uk/store

30 Mar 2007, 2:05 PM
#2
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: ssl not working - Fasthosts

also noticed that when trying to login as customer it directs to the ssl server but trys the zc_install foulder but that is deleted.

3 Apr 2007, 10:15 AM
#4
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: ssl not working - Fasthosts

so far i have i have been told by fast host that is a coding problem and they do not offer a coding support service.

from other people on here i have had a blatent it wont work on fasthosts at all.

i feel i have wasted a month now on this

3 Apr 2007, 4:31 PM
#5
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: ssl not working - Fasthosts

reply from fast hosts

Thank you for your email regarding ZenCart/OsCommerce.

Your domain, rubberduckbathrooms.co.uk, is being hosted on one of our PHP5 servers.

We are aware that you will need to make the following change :

Change in catalog/admin/includes/classes/upload.php on line 31 change
$this = null;
to
//$this = null;

You will also need to make sure that your installation is configured to run with register_globals switched off.

There are posts on the osCommerce forums from users who have installed the product sucessfully on our systems. The
following is an example of one such :

http://forums.oscommerce.com/index.php?showtopic=232372&view=findpost&p=964638

We do not provide any direct support for 3rd party products, and I would recommend that you look through the forums
for additional help using the product.

10 Apr 2007, 10:06 AM
#6
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: ssl not working - Fasthosts

anyone know what this means?? i have looked in the file as mentioned and there is no such line of code on line 31

any help??

line 23 -40

class upload {
var $file, $filename, $destination, $permissions, $extensions, $tmp_filename, $message_location;
function upload($file = '', $destination = '', $permissions = '777', $extensions = '') {
$this->set_file($file);
$this->set_destination($destination);
$this->set_permissions($permissions);
$this->set_extensions($extensions);
$this->set_output_messages('direct');
if (zen_not_null($this->file) && zen_not_null($this->destination)) {
$this->set_output_messages('session');
if ( ($this->parse() == true) && ($this->save() == true) ) {
return true;
} else {
// self destruct

11 Apr 2007, 2:01 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: ssl not working - Fasthosts

You will find that there is a known history of problems running dynamic systems on fasthosts servers because of their split configuration for SSL being on one server, and the main account being on another server .... esp when they're entirely different platforms as well.

Your problem has nothing to do with an upload class.

The problem is that the SSL traffic is looking for files and configuration data, but is unable to locate it due to configuration problems, both at the server side and in your configure.php files.

11 Apr 2007, 10:57 AM
#8
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: ssl not working - Fasthosts

so how do you fix this??

11 Apr 2007, 4:47 PM
#9
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: ssl not working - Fasthosts

You can never 'fix this' with Fasthosts - unless they change their whole way of operating.

As has been pointed out by Dr Byte they use one server for the website and another for all SSL traffic. The website can either be on a Apache server running Linux (as in your case), or a a Windows server with IIS. The website servers usually run with Register Globals 'on' in php.ini, but the SSL servers run with it 'off' and those servers are always Windows with IIS.

In your case your site is split between a Linux server and a Windows server - and you're paying extra for a shared ssl with a limited amount of folder space - and for something that doesn't work.

The last reply from them shows that they haven't got a clue.

Vger

kitcorsa:

so how do you fix this??

12 Apr 2007, 7:09 PM
#10
jon27240 avatar

jon27240

New Zenner

Join Date:
Apr 2007
Posts:
17
Plugin Contributions:
0

Re: ssl not working - Fasthosts

Here is how I got admin to work on the SSL system within Fasthosts.

NOTE! I have only been using this for about an hour and I have not YET found any problems... So just incase, BACKUP!!!!!!

admin/includes/configure.php

Lines 29 to 36.
define('HTTP_SERVER', 'https://vault2.secured-url.com/storessl');
define('HTTPS_SERVER', 'https://vault2.secured-url.com/storessl');
define('HTTP_CATALOG_SERVER', 'http://www.stores.com');
define('HTTPS_CATALOG_SERVER', 'https://vault2.secured-url.com/storessl');

// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', 'true');

changing storessl and stores to your domain etc.

Skip down to lines 60 to 69
define('DIR_FS_ADMIN', 'e:\sslroot\storessl\admin\');
define('DIR_FS_CATALOG', 'e:\sslroot\storessl\');

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_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes\templates\');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups\');
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email\');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download\');

Again changing the storessl to your thing.

A couple of notes.....

  1. I now go direct to the SSL admin page... No point in going ot the other one. In fact, I have deleted Admin on the non ssl site.
  2. I HAVE changed the bottom few lines... I have had to change "/" to "\" for windows.
  3. BACKUP. Or at least rename files to ensure that neither of us has done it wrong.

If I have made any mistakes, I apologise... I am actually a Zen Newbie...

12 Apr 2007, 7:31 PM
#11
jon27240 avatar

jon27240

New Zenner

Join Date:
Apr 2007
Posts:
17
Plugin Contributions:
0

Re: ssl not working - Fasthosts

Tools-->Define Pages ceases to work...

:(

Well it does, but it only amends the files on the Secure server...

12 Apr 2007, 9:26 PM
#12
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: ssl not working - Fasthosts

Yes, it is possible to get their shared ssl to work - if you put the whole shebang under ssl.

Unfortunately search engins don't rank https pages, so in the long term you will be crippling your website as far as search engines go. Additionally encrypted pages take longer to load up, so you are slowing your website down unnecessarily.

Have you tried checking out with an order yet, perhaps using Pay Pal, and returning to see website from Pay Pal at the end of the process. It's my guess that you'll end up on the Login or Index page having been logged out on your return.

I'm also unsure about what happens when you define HTTP_SERVER and HTTP_CATALOG_SERVER differently, one being under the shared ssl and one on the main domain.

It will be interesting to see how this works out for you - please keep us posted.

Vger

13 Apr 2007, 7:35 AM
#13
jon27240 avatar

jon27240

New Zenner

Join Date:
Apr 2007
Posts:
17
Plugin Contributions:
0

Re: ssl not working - Fasthosts

Sorry, My posts were about Admin.

Besides, I think I may have jumped in a bit too soon. Admin on the shared ssl is a bit flaky...

Re the website... I am still testing and working on it, but I have managed to get it so that an order via COD/ Money Order/Cheque works ok.

I am sorry if I jumped in too soon, but I will take you advice and sort out the Paypal bit later.

13 Apr 2007, 11:41 AM
#14
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: ssl not working - Fasthosts

With those payment methods the customer never leaves your website, so keeping the session trail is not an issue. That is why I recommended you check out Pay Pal, where the customer does leave the website and has to return with the same session id for the order to be recorded.

Vger

13 Apr 2007, 8:59 PM
#15
jon27240 avatar

jon27240

New Zenner

Join Date:
Apr 2007
Posts:
17
Plugin Contributions:
0

Re: ssl not working - Fasthosts

Done. and works...

Well. Paypal IPN works, But I am having an issue with Paypal Express.

And yes, I bought an item and used 2 different Paypal accounts.

13 Apr 2007, 9:55 PM
#16
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: ssl not working - Fasthosts

Just to clarify one thing for me (and for others who may be interested) has this been achieved by making the whole of the shop front https, or does the site correctly switch between http and https pages?

Vger

13 Apr 2007, 10:29 PM
#17
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: ssl not working - Fasthosts

and did you receive the correct emails and the order actually shows up in the ZC admin?

14 Apr 2007, 2:21 PM
#18
jon27240 avatar

jon27240

New Zenner

Join Date:
Apr 2007
Posts:
17
Plugin Contributions:
0

Re: ssl not working - Fasthosts

OK, Thanks for making me look.

It all "Seemed" to work... But up till now, I refunded the Paypal payment. So when theorder didn't appear, I didn; tthink anything of it as I assumed that it had also cancelled the order.

You are all correct. It didn't work...

The Paypal Payment did.
The Paypal IPN did
Paypal Express still fails.
I got back to the SSL site.
What didn't happen was
a) Order did NOT show up.
b) Not sure about emails... May have done. but also, I haven't played with those yet. So may not have set them up.

All in all, I am having too many problems with Zen... Shame really.

14 Apr 2007, 2:38 PM
#19
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: ssl not working - Fasthosts

jon27240:

All in all, I am having too many problems with Zen... Shame really.

Correction ... you are having too many problems with trying to get Fasthosts to provide SSL on a dynamically-driven website.

This is a known problem with fasthosts. Most other hosting companies don't have this problem.

14 Apr 2007, 5:17 PM
#20
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: ssl not working - Fasthosts

I came here to say exactly the same thing - but Dr Byte beat me to it.

As an addition - most other hosting companies don't make you pay extra for a shared ssl and where you do have hosting companies which make you keep two separate sets of files then they're at least on the same server.

Vger