Jump to content



Latest News: (loading..)

- - - - -

Editing Configure.php


  • Please log in to reply
16 replies to this topic

#1   cstovin

cstovin
  • Members
  • 67 posts
  • Real Name:Charlene Stovin

Posted 15 July 2012 - 03:18 AM

So I am taking Mr. Phils suggestion and installing a dev enviroment on my production site.  I can not upload directly to the root, I have to install under a "public_html folder" so I have something that looks like the following:
public_html
./catalog
./extras (know I don't need this)
./dev

In my dev folder I am wanting to install my test versiono of OSC; so now it will look like
./catalog
./extras (know I don't need this)
./dev
../catalog
../extras (again know I don't need this)

where I am having trouble is that I know I have to change the configure.php; I have been searching all over reading the posts I can find on how to change the configure.php so it can find the store in the /dev folder....but I don't know if I have to edit ALL of those paths listed, or just a few of them.?

I must not be searching on the right terms to find the anser, I know it has to be here somewhere  -

I tried searching on
"configure.php", edit configure.php, change directories, and a few other things - will keep searching...

thank you all -
Charlene

#2   Jack_mcs

Jack_mcs
  • Members
  • 25,303 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 15 July 2012 - 03:37 AM

See How to setup a configure file

#3   cstovin

cstovin
  • Members
  • 67 posts
  • Real Name:Charlene Stovin

Posted 15 July 2012 - 05:00 AM

THanks, I actually have looked at that several times, and although I am sure it is well written, the examples are not easy for me to follow....I don't understand if they changed their site (to me it didn't look like "before" and "after" examples.

For example it was /catalog and when I move it, became.....whatever.

I can't even get the installation started in /dev....most likely due to where the files are....but I just get a 404 page can not be found, can't even get to the installation wizard - which probably goes back to the config file - thanks...

#4   cstovin

cstovin
  • Members
  • 67 posts
  • Real Name:Charlene Stovin

Posted 15 July 2012 - 05:37 AM

I guess I am not even sure I am having problems with the config.php; I did edit those files, have my file permissions set correctly, but every time I try to navigate now to my dev site I just get a 404 error even when trying to get to the admin panel.

www.vidagrace.com/dev/catalog/admin (if I am trying to get to the admin panel)
www.vidagrace.com/dev/catalog if I am just trying to get to my site -

always comes back with 404?

#5   BryceJr

BryceJr
  • Members
  • 1,464 posts
  • Real Name:Bryce

Posted 15 July 2012 - 09:34 AM

FYI, your "public_html " folder is also known as root.

Development store configure.php
define('HTTP_SERVER', 'http:/www.vidagrace.com/dev/catalog');
  define('HTTPS_SERVER', 'http://www.vidagrace.com/dev/catalog');
  define('ENABLE_SSL', false);
  define('HTTP_COOKIE_DOMAIN', '/www.vidagrace.com');
  define('HTTPS_COOKIE_DOMAIN', '/www.vidagrace.com');
  define('HTTP_COOKIE_PATH', '/dev/catalog/');
  define('HTTPS_COOKIE_PATH', '/dev/caalog/');

  define('DIR_WS_HTTP_CATALOG', '/dev/catalog/'); //not sure about this line
  define('DIR_WS_HTTPS_CATALOG', '/dev/catalog/'); // and this one, but give it a shot

  define('DIR_FS_CATALOG', $_SERVER['DOCUMENT_ROOT'] . DIR_WS_HTTP_CATALOG);

Development store admin configure.php
  define('HTTP_SERVER', 'http://www.vidagrace.com/dev/catalog/admin');
  define('HTTP_CATALOG_SERVER', 'http://www.vidagrace.com/dev/catalog');
  define('HTTPS_CATALOG_SERVER', 'https://www.vidagrace.com/dev/catalog');

  define('ENABLE_SSL_CATALOG', 'false');

  define('DIR_FS_DOCUMENT_ROOT', '$_SERVER['DOCUMENT_ROOT']');

  define('DIR_WS_ADMIN', '/dev/catalog/admin/'); //not  certain about this line...

  define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

   define('DIR_WS_CATALOG', '/dev/catalog/'); //and this either but give it a whirl
  
define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);


#6   FWR Media

FWR Media
  • Community Sponsor
  • 6,836 posts
  • Real Name:Robert Fisher
  • Gender:Male
  • Location:Stowmarket - Suffolk - UK

Posted 15 July 2012 - 10:41 AM

Please take note of the WHATEVER_THE_PATH_IS and fill in as required. I have left out the DB connection defines.

This assumes that you access localhost via www.vidagrace.com and that your osCommerce files are within the dev/catalog/ directory ( where account.php/account_edit.php etc are located ).

  // catalog config  
  define('HTTP_SERVER', 'http:/www.vidagrace.com');
  define('HTTPS_SERVER', 'http:/www.vidagrace.com');
  define('ENABLE_SSL', false);
  define('HTTP_COOKIE_DOMAIN', 'www.vidagrace.com');
  define('HTTPS_COOKIE_DOMAIN', 'www.vidagrace.com');
  define('HTTP_COOKIE_PATH', '/dev/catalog/');
  define('HTTPS_COOKIE_PATH', '/dev/catalog/');
  define('DIR_WS_HTTP_CATALOG', '/dev/catalog/');
  define('DIR_WS_HTTPS_CATALOG', '/dev/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', 'C:/WHATEVER_THE_PATH_IS/dev/catalog/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');


  // admin config
  define('HTTP_SERVER', 'http:/www.vidagrace.com');
  define('HTTP_CATALOG_SERVER', 'http:/www.vidagrace.com');
  define('HTTPS_CATALOG_SERVER', 'http:/www.vidagrace.com');
  define('ENABLE_SSL_CATALOG', 'false');
  define('DIR_FS_DOCUMENT_ROOT', 'C:/WHATEVER_THE_PATH_IS/dev/catalog/');
  define('DIR_WS_ADMIN', '/dev/catalog/admin/');
  define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . 'admin/');
  define('DIR_WS_CATALOG', '/dev/catalog/');
  define('DIR_FS_CATALOG', 'C:/WHATEVER_THE_PATH_IS/dev/catalog/');
  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('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');


#7   cstovin

cstovin
  • Members
  • 67 posts
  • Real Name:Charlene Stovin

Posted 16 July 2012 - 03:22 AM

Thank you Robert - I actually had taken a stab at that file again, line for line, and got everything that you sent me with exception of setting the www.vidagrace for the cookies; I am still getting a 404 error however, so something isn't right?

Any other ideas?  Everything else is as you suggested...

thank you
C. Stovin

#8   cstovin

cstovin
  • Members
  • 67 posts
  • Real Name:Charlene Stovin

Posted 16 July 2012 - 03:51 AM

Admin configure.php

define('HTTP_SERVER', 'http://www.vidagrace.com/dev/catalog/admin');  -- changed this to include /dev catalog/admin

define('HTTP_CATALOG_SERVER', 'http://www.vidagrace.com/dev/catalog');
define('HTTPS_CATALOG_SERVER', 'https://www.vidagrace.com/dev/catalog');
define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', '/home/a8623886/public_html/dev/catalog/');
define('DIR_WS_ADMIN', '/dev/catalog/admin/');
define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . 'admin/');
define('DIR_WS_CATALOG', '/dev/catalog/');
define('DIR_FS_CATALOG', '/home/a8623886/public_html/dev/catalog/');
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('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');


Catalog Configure
define('HTTP_SERVER', 'http://www.vidagrace.com/dev/catalog'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://www.vidagrace.com/dev/catalog'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', false); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'www.vidagrace.com');
define('HTTPS_COOKIE_DOMAIN', 'www.vidagrace.com');
define('HTTP_COOKIE_PATH', '/dev/catalog/');
define('HTTPS_COOKIE_PATH', '/dev/catalog/');
define('DIR_WS_HTTP_CATALOG', '/dev/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/dev/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/a8623886/public_html/dev/catalog/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

anyone see anything glaringly obvious that I missed?  thank you!!

#9 ONLINE   DunWeb

DunWeb
  • Members
  • 12,711 posts
  • Real Name:Chris
  • Gender:Male
  • Location:Ontario, Canada

Posted 16 July 2012 - 04:03 AM

@cstovin

catalog configure:

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

should be:

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


Same for the admin configure.php


Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

See my Profile (click here)  for more information and to contact me for professional osCommerce support that includes custom templates, add ons as well as cart leasing and support plans.

#10   FWR Media

FWR Media
  • Community Sponsor
  • 6,836 posts
  • Real Name:Robert Fisher
  • Gender:Male
  • Location:Stowmarket - Suffolk - UK

Posted 16 July 2012 - 07:00 AM

View Postcstovin, on 16 July 2012 - 03:22 AM, said:

Thank you Robert - I actually had taken a stab at that file again, line for line, and got everything that you sent me with exception of setting the www.vidagrace for the cookies; I am still getting a 404 error however, so something isn't right?

Any other ideas?  Everything else is as you suggested...

thank you
C. Stovin

The examples I gave are correct and need no changes  so long as the information you provided is correct.

osCommerce files are located at public_html/dev/catalog/

#11   cstovin

cstovin
  • Members
  • 67 posts
  • Real Name:Charlene Stovin

Posted 16 July 2012 - 06:16 PM

I tried
define('HTTP_SERVER', 'http://www.vidagrace.com');
define('HTTPS_SERVER', 'https://www.vidagrace.com');

in both files as well....no such luck - that is why I tried them with the /dev/catalog - grasping at straws.  All the other information is correct; my folder is at the same level as my original catalog; but have another version inside /dev as mentioned above.  I have no idea why it isn't working - all I get for the catalog or admin is 404 page can not be found error

#12   FWR Media

FWR Media
  • Community Sponsor
  • 6,836 posts
  • Real Name:Robert Fisher
  • Gender:Male
  • Location:Stowmarket - Suffolk - UK

Posted 16 July 2012 - 06:20 PM

@cstovin

And what happens with my defines in place if you access: -

http://www.vidagrace.com/dev/catalog/index.php

Note the index.php on the end.

#13   cstovin

cstovin
  • Members
  • 67 posts
  • Real Name:Charlene Stovin

Posted 16 July 2012 - 09:08 PM

same thing.....i know I have to say which page i want to go to (index.php)......I just keep getting a 404 error; I will put them back the way I had them originally (your way) and try it again....I only chagned them because I was grasping at straws....
thanks for checking...
C.

#14   FWR Media

FWR Media
  • Community Sponsor
  • 6,836 posts
  • Real Name:Robert Fisher
  • Gender:Male
  • Location:Stowmarket - Suffolk - UK

Posted 16 July 2012 - 10:12 PM

Well let's narrow this down, put a new file in public_html/dev/catalog/

Named simple.php

Put in the file only one line: -

<?php echo __FILE__ . ' actually loaded!'; ?>

Then in your browser run http://www.vidagrace.com/dev/catalog/simple.php

If that fails rename public_html/dev/catalog/.htaccess to htaccess .txt and try again

Edited by FWR Media, 16 July 2012 - 10:12 PM.


#15   cstovin

cstovin
  • Members
  • 67 posts
  • Real Name:Charlene Stovin

Posted 17 July 2012 - 02:36 AM

Thanks for the ideas...no go....
same 404 error.....I have no idea why I am getting this or why I can't get past it?

#16   cstovin

cstovin
  • Members
  • 67 posts
  • Real Name:Charlene Stovin

Posted 17 July 2012 - 02:43 AM

ahhh.  the .htaccess on the main root was the trouble...if that is a problem, then how do I enable that AND keep my dev catalog version? I disabled the wrong .htaccess before (jn the catalog directory)
THANK YOU - but now what?  lol
C.

#17   cstovin

cstovin
  • Members
  • 67 posts
  • Real Name:Charlene Stovin

Posted 17 July 2012 - 07:58 PM

I might start this in another topic so it gets seen, but there was an .htaccess file in my directory that had all three files in it (catalog (my main store), Dev, (my dev site) and extras.....I renamed that and no more  problems...

Do I need an .htaccess file in the main root folder?  If so, how do I enable it and get around the errors I have been having getting to my dev site?

thank you all!
C.