Website address

Started by branch on 12 May 2008, 4:50 PM · Views: 5,493

Results 1 to 13 of 13
14 May 2008, 5:43 AM
#3
branch avatar

branch

New Zenner

Join Date:
Feb 2008
Location:
Denmark, Maine USA
Posts:
8
Plugin Contributions:
0

Re: Website address

Ok; I tried that. :censored:
What I got was an attempt to go the mydomain.com/zencart/zc_install/index.php.
which resulted in a 404 Not Found message. I can not access my admin page.
I tried installing and running the Fix Cache key, but to no avail.
I tried putting all the files and folders back in the zencart directory; the way they were originally with an html index file pointing to mydomain/zencart. (I had that configuration working correctly before I departed on this little adventure) The html index file loads correctly but the mydomain.com/zencart link goes to mydomain.com/zencart/zc_install/index.php. automatically. I have a rather bad feeling about all this. I would appreciate any advice.

14 May 2008, 5:53 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Website address

If Zen Cart finds invalid information in the configure.php files then it will automatically attempt to run the zc_install because it has nothing else it can do except display an error message ... usually when the data is invalid it means it's a new install.

So ... that means you've likely made incorrect edits to your two configure.php files.

What exactly did you do?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 May 2008, 2:13 PM
#5
branch avatar

branch

New Zenner

Join Date:
Feb 2008
Location:
Denmark, Maine USA
Posts:
8
Plugin Contributions:
0

Re: Website address

changes to: /www/mydomain/admin/includes/configure.php

define('DIR_WS_ADMIN', '/zencart/admin/');	to	define('DIR_WS_ADMIN', '/mydomain/admin/');

define('DIR_WS_CATALOG', '/zencart/');	to	define('DIR_WS_CATALOG', '/birchstonestudios/');

define('DIR_WS_HTTPS_ADMIN', '/mydomain/zencart/admin/');	to	define('DIR_WS_HTTPS_ADMIN', '/mydomain/admin/');

define('DIR_WS_HTTPS_CATALOG', '/mydomain/zencart/');	to	  define('DIR_WS_HTTPS_CATALOG', '/mydomain/');

define('DIR_FS_ADMIN', '//www/mydomain/zencart/admin/');		to	define('DIR_FS_ADMIN', '//www/mydomain/admin/');

define('DIR_FS_CATALOG', '//www/mydomain/zencart/');		to	  define('DIR_FS_CATALOG', '//www/mydomain/');

define('DB_DATABASE', 'mydomain_com_-_zencart');	(no change)

define('DIR_FS_SQL_CACHE', '//www/mydomain/zencart/cache');	to	define('DIR_FS_SQL_CACHE', '//www/mydomain/cache');

changes to: /www/mydomain/includes/configure.php

define('DIR_WS_CATALOG', '/zencart/');	to	define('DIR_WS_CATALOG', '/mydomain/');

define('DIR_WS_HTTPS_CATALOG', '/mydomain/zencart/');	to	define('DIR_WS_HTTPS_CATALOG', '/mydomain/');

define('DIR_WS_PHPBB', '/www/mydomain/zencart/');	(no change)

define('DIR_FS_CATALOG', '/www/mydomain/zencart/');		to	define('DIR_FS_CATALOG', '/www/mydomain/');

define('DB_SERVER_USERNAME', 'mydomain/zencart/');	to	define('DB_SERVER_USERNAME', 'mydomain/');

define('DB_DATABASE', 'mydomain_com_-_zencart');	(no change)

define('DIR_FS_SQL_CACHE', '/www/mydomain/zencart/cache');	to	define('DIR_FS_SQL_CACHE', '/www/mydomain/cache');

When I go to: http://mydomain.com/admin/login.php it returns:

Warning: include(includes/auto_loaders/config.core.php) [function.include]: failed to open stream: No such file or directory in

/home/www/mydomain/admin/includes/application_top.php on line 249

Warning: include() [function.include]: Failed opening 'includes/auto_loaders/config.core.php' for inclusion

(include_path='.:/usr/share/pear:/usr/local/Smarty') in /home/www/mydomain/admin/includes/application_top.php on line 249

Warning: reset() [function.reset]: Passed variable is not an array or object in /home/www/mydomain/includes/autoload_func.php on line 35

Warning: ksort() expects parameter 1 to be array, null given in /home/www/mydomain/includes/autoload_func.php on line 37

Warning: Invalid argument supplied for foreach() in /home/www/mydomain/includes/autoload_func.php on line 39
Fatal error: Call to undefined function zen_href_link() in /home/www/mydomain/admin/login.php on line 105

**When I go to http://www.mydomain.com **
the browser loads:http://mydomain.com/zc_install/index.php and returns

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

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I guess I'm not "zenned" yet

14 May 2008, 6:02 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: Website address

You should have only removed references to /zencart, not substituting them all with /mydomain

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 May 2008, 9:00 PM
#7
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

Re: Website address

Plus you have 2 // in some lines:

define('DIR_FS_ADMIN', '//

15 May 2008, 1:55 AM
#8
branch avatar

branch

New Zenner

Join Date:
Feb 2008
Location:
Denmark, Maine USA
Posts:
8
Plugin Contributions:
0

Re: Website address

Ok, I went over the configure files again. This is what I've got though I still can't get my store nor my admin to load.

** /www/birchstonestudios/includes/configure.php**
define('DIR_WS_CATALOG', '/zencart/');
define('DIR_WS_HTTPS_CATALOG', '/mydomain/');
define('DIR_WS_PHPBB', '/www/mydomain/zencart');
define('DIR_FS_CATALOG', '/www/mydomain/');
define('DB_DATABASE', 'mydomain_com_-_zencart');
define('DIR_FS_SQL_CACHE', '/www/mydomain/cache');

** /www/birchstonestudios/admin/includes/configure.php**
define('HTTP_SERVER', 'http://www.mydomain.com');
define('HTTPS_SERVER', 'https://falcon.safe-order.net');
define('HTTP_CATALOG_SERVER', 'http://www.mydomain.com');
define('HTTPS_CATALOG_SERVER', 'https://falcon.safe-order.net');
define('DIR_WS_ADMIN', '/mydomain/admin/');
define('DIR_WS_CATALOG', '/zencart/');
define('DIR_WS_HTTPS_ADMIN', '/mydomain/admin/');
define('DIR_WS_HTTPS_CATALOG', '/mydomain/');
define('DIR_FS_ADMIN', '/www/mydomain/admin/');
define('DIR_FS_CATALOG', '/www/mydomain/');
define('DB_DATABASE', 'mydomain_com_-_zencart');
define('DIR_FS_SQL_CACHE', '//www/mydomain/cache');

15 May 2008, 2:27 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: Website address

It's really very simple.

But, since you seem to be hacking things up all over the place, it is better for you to either wipe the whole thing and start again, or else just post your untouched original configure.php files from before the move so we can take and do the work for you.

Remove your passwords ... but leave everything else.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 May 2008, 5:50 AM
#10
branch avatar

branch

New Zenner

Join Date:
Feb 2008
Location:
Denmark, Maine USA
Posts:
8
Plugin Contributions:
0

Re: Website address

Thank you Sensei. I will work harder and try to think less.

15 May 2008, 11:58 PM
#11
branch avatar

branch

New Zenner

Join Date:
Feb 2008
Location:
Denmark, Maine USA
Posts:
8
Plugin Contributions:
0

Re: Website address

Got It. "Thanks I needed that"

29 Nov 2010, 9:16 PM
#12
customhydro avatar

customhydro

New Zenner

Join Date:
Nov 2010
Posts:
1
Plugin Contributions:
0

Re: Website address

Hello all,

Hope you don't mind a necro post. I am having trouble accomplishing the same thing the OP was. My site is live, https://www.customhydronutrients.com/zencart , but I want it to be live at https://www.customhydronutrients.com

I have tried following the FAQ's instructions here: https://www.zen-cart.com/tutorials/index.php?article=122

"Step 3.Move/Rename the folder. You may need to use your FTP program to do this."

Not sure how to proceed with that one. which folder? where? :blink:

I remove the /zencart from both the configure php files, and all it does is screw up my page. So I think maybe step 3 is my stumbling point.

Would someone be able to help me?

Thanks

29 Nov 2010, 10:27 PM
#13
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Website address

Everything that is in the /zencart/ folder should move to the domain root (/public_html/, /htdocs/ or /www/ folder, or whatever you have for that purpose).

Then removing /zencart from the configure.php files will point to the new location.