Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Enabling SSL - Just changed cofigure.php files and now I'm getting an error

Enabling SSL - Just changed cofigure.php files and now I'm getting an error

Locked

Views: 7,539

Results 1 to 20 of 25
This thread is locked. New replies are disabled.
14 Sep 2007, 5:36 PM
#1
bloome avatar

bloome

New Zenner

Join Date:
Jul 2007
Posts:
15
Plugin Contributions:
0

Enabling SSL - Just changed cofigure.php files and now I'm getting an error

I changed the URLs to enable SSL in the configure.php files in both the includes dir and the admin/includes dir.

Now when i go to access the cart, I'm getting an error that says:

The requested URL /catalog/zc_install/index.php was not found on this server.

PLEASE HELP!!!!!!!!!!!!!!!

Bloome

14 Sep 2007, 5:38 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,603
Plugin Contributions:
0

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

14 Sep 2007, 5:42 PM
#3
bloome avatar

bloome

New Zenner

Join Date:
Jul 2007
Posts:
15
Plugin Contributions:
0

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

I read that article and followed the instructions. When I did, I got the error.

Bloome

14 Sep 2007, 5:45 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,603
Plugin Contributions:
0

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

What are the permissions you have on the configure files? Are you sure you got the right one in the right place? The error is trying to find the installer because it can't read the configs.

14 Sep 2007, 5:48 PM
#5
bloome avatar

bloome

New Zenner

Join Date:
Jul 2007
Posts:
15
Plugin Contributions:
0

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

They are set as 644

14 Sep 2007, 6:06 PM
#6
bloome avatar

bloome

New Zenner

Join Date:
Jul 2007
Posts:
15
Plugin Contributions:
0

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

This is the error I get when I try to access the admin

Warning: main(/includes/autoload_func.php) [function.main]: failed to open stream: No such file or directory in /home/mille/public_html/catalog/admin/includes/application_top.php on line 147

Warning: main(/includes/autoload_func.php) [function.main]: failed to open stream: No such file or directory in /home/mille/public_html/catalog/admin/includes/application_top.php on line 147

Fatal error: main() [function.require]: Failed opening required '/includes/autoload_func.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mille/public_html/catalog/admin/includes/application_top.php on line 147

14 Sep 2007, 6:20 PM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

Is this a private or shared SSL Cert?
Who are you hosted with?
What is your configure.php htpps:// entry?

14 Sep 2007, 6:38 PM
#8
bloome avatar

bloome

New Zenner

Join Date:
Jul 2007
Posts:
15
Plugin Contributions:
0

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

It is a private cert

httpme.com is the host

Here is the entry

admin/includes/configure.php

define('HTTP_SERVER', 'http://www.tsilaorganics.com/catalog');
define('HTTPS_SERVER', 'http://tsilaorganics.com/catalog');
define('HTTP_CATALOG_SERVER', 'http://localhost');
define('HTTPS_CATALOG_SERVER', 'https://localhost');

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

includes/configure.php

define('HTTP_SERVER', 'http://tsilaorganics.com/catalog');
define('HTTPS_SERVER', 'https://tsilaorganics.com/catalog');

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

14 Sep 2007, 6:39 PM
#9
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,603
Plugin Contributions:
0

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

14 Sep 2007, 6:42 PM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

Probably should be:

admin/includes/configure.php

define('HTTP_SERVER', 'http://www.tsilaorganics.com/catalog');
define('HTTPS_SERVER', 'http://tsilaorganics.com/catalog');
define('HTTP_CATALOG_SERVER', 'http://www.tsilaorganics.com/catalog');
define('HTTPS_CATALOG_SERVER', 'https://www.tsilaorganics.com/catalog');

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

includes/configure.php

define('HTTP_SERVER', 'http://tsilaorganics.com/catalog');
define('HTTPS_SERVER', 'https://tsilaorganics.com/catalog');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'true');
14 Sep 2007, 6:47 PM
#11
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,603
Plugin Contributions:
0

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

Your cert says tsilaorganics.com without the www - you need to not use the www in any of your URLs or you will get security warnings. You also need to make sure the urls are consistant and NOT use /catalog in the main URL

14 Sep 2007, 6:47 PM
#12
bloome avatar

bloome

New Zenner

Join Date:
Jul 2007
Posts:
15
Plugin Contributions:
0

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

I made the following edits and it still doesn't seem to work.

The admin is:

define('HTTP_SERVER', 'http://www.tsilaorganics.com/catalog');
define('HTTPS_SERVER', 'https://www.tsilaorganics.com/catalog');
define('HTTP_CATALOG_SERVER', 'http://www.tsilaorganics.com/catalog');
define('HTTPS_CATALOG_SERVER', 'https://www.tsilaorganics.com/catalog');

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

the regular includes is:

define('HTTP_SERVER', 'http://www.tsilaorganics.com/catalog');
define('HTTPS_SERVER', 'https://www.tsilaorganics.com/catalog');

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

14 Sep 2007, 6:50 PM
#13
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,603
Plugin Contributions:
0

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

define('HTTP_SERVER', 'http://tsilaorganics.com');
define('HTTPS_SERVER', 'https://tsilaorganics.com');

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

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!

// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/catalog/');

(add the admin/ to the lines with catalog in your admin config)

14 Sep 2007, 7:25 PM
#14
bloome avatar

bloome

New Zenner

Join Date:
Jul 2007
Posts:
15
Plugin Contributions:
0

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

OK. It still does not work and is looking for the install dir

Here is the admin/includes/configure.php:

define('HTTP_SERVER', 'http://tsilaorganics.com');
define('HTTPS_SERVER', 'https://tsilaorganics.com');
define('HTTP_CATALOG_SERVER', 'http://tsilaorganics.com');
define('HTTPS_CATALOG_SERVER', 'https://tsilaorganics.com');

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

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!

// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_ADMIN', '/catalog/admin/');
define('DIR_WS_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_ADMIN', '/catalog/admin/');
define('DIR_WS_HTTPS_CATALOG', '/catalog/');

and here is the includes/configure.php:

define('HTTP_SERVER', 'http://tsilaorganics.com');
define('HTTPS_SERVER', 'https://tsilaorganics.com');
define('HTTP_CATALOG_SERVER', 'http://tsilaorganics.com');
define('HTTPS_CATALOG_SERVER', 'https://tsilaorganics.com');

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

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!

// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_ADMIN', '/catalog/admin/');
define('DIR_WS_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_ADMIN', '/catalog/admin/');
define('DIR_WS_HTTPS_CATALOG', '/catalog/');

THANKS FOR YOUR HELP SO FAR!!!!

Bloome

14 Sep 2007, 7:29 PM
#15
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,603
Plugin Contributions:
0

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

You absolutely positive you have the right config in the right place? Compare to your dist_configure from a clean downoad.

14 Sep 2007, 7:40 PM
#16
bloome avatar

bloome

New Zenner

Join Date:
Jul 2007
Posts:
15
Plugin Contributions:
0

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

I am actually editing the files on the server via cpanel's file editor.

14 Sep 2007, 7:41 PM
#17
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

and here is the includes/configure.php:

define('HTTP_SERVER', 'http://tsilaorganics.com');
define('HTTPS_SERVER', 'https://tsilaorganics.com');
define('HTTP_CATALOG_SERVER', 'http://tsilaorganics.com');
define('HTTPS_CATALOG_SERVER', 'https://tsilaorganics.com');

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

Kim's good eye as the above is not from a default /includes config file - should look like with the states for ssl altered

// Define the webserver and path parameters
  // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
  // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
  define('HTTP_SERVER', 'http://localhost');
  define('HTTPS_SERVER', 'https://localhost');

  // Use secure webserver for checkout procedure?
  define('ENABLE_SSL', 'false');
14 Sep 2007, 7:44 PM
#18
bloome avatar

bloome

New Zenner

Join Date:
Jul 2007
Posts:
15
Plugin Contributions:
0

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

Kobra,

The top code in your post is from the configure.php file in the catalog/admin/includes/ directory and not the configure.php from the catalog/includes/ directory

Bloome

14 Sep 2007, 7:48 PM
#19
bloome avatar

bloome

New Zenner

Join Date:
Jul 2007
Posts:
15
Plugin Contributions:
0

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

Kim:

You absolutely positive you have the right config in the right place? Compare to your dist_configure from a clean downoad.

Kim, are you asking if the config files are in the wrong directory? Are you saying that I should make sure by downloading a clean structure and doing a comparison?

Bloome

14 Sep 2007, 8:03 PM
#20
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Enabling SSL - Just changed cofigure.php files and now I'm getting an error

The top code in your post is from the configure.php file in the catalog/admin/includes/ directory and not the configure.php from the catalog/includes/ directory
I copied it from your post #14