Forums / Installing on a Linux/Unix Server / renaming directory folder

renaming directory folder

Views: 8,385

Results 21 to 36 of 36
23 Feb 2014, 6:05 PM
#21
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

renaming directory folder

How about posting, from the server, the whole file:
/yoursecretadmin/includes/configure.php

and mark out the username, password and such like I did in your post for the:
/includes/configure.php

so we can see what is going on ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

23 Feb 2014, 6:12 PM
#22
bluelion avatar

bluelion

New Zenner

Join Date:
Mar 2008
Posts:
73
Plugin Contributions:
0

Re: renaming directory folder

Okay. I think I got all the sensitive stuff ****'d out.

/*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. /
/
**** The 2 files should be kept separate and not used to overwrite each other. ***********/

// Define the webserver and path parameters
// Main webserver: eg-http://www.your_domain.com -
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
// HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com
/*

  • URLs for your site will be built via:
  • HTTP_SERVER plus DIR_WS_ADMIN or
    
  • HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or 
    
  • HTTP_SERVER plus DIR_WS_CATALOG or 
    
  • HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
    
  • ...depending on your system configuration settings
  • If you desire your entire admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:
    */
    define('HTTP_SERVER', 'http://dancingtothespiritofthewood.com');
    define('HTTPS_SERVER', 'https://dancingtothespiritofthewood.com');
    define('HTTP_CATALOG_SERVER', 'http://dancingtothespiritofthewood.com');
    define('HTTPS_CATALOG_SERVER', 'https://dancingtothespiritofthewood.com');

// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', '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_ADMIN', '/secret admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/secret admin/');
define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
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', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_ADMIN', '/home/danci18/public_html/secret admin/');
define('DIR_FS_CATALOG', '/home/danci18/public_html/');

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/');

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', 'zen_');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', '');
define('DB_SERVER_PASSWORD', '
***');
define('DB_DATABASE', *****');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'database');
define('DIR_FS_SQL_CACHE', '/home/danci18/public_html/cache');

// EOF

23 Feb 2014, 6:29 PM
#23
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: renaming directory folder

I am not seeing anything obviously wrong with that file ...

If you have not installed this Addon from the Plugins already, why don't you do so now:
http://www.zen-cart.com/downloads.php?do=file&id=606

then, try to use your Admin and look in the debug directory for your site:
/cache

and refresh it in your FTP program and see if there are any mydebug logs generated ...

If so, post the contents here ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

23 Feb 2014, 6:55 PM
#24
bluelion avatar

bluelion

New Zenner

Join Date:
Mar 2008
Posts:
73
Plugin Contributions:
0

Re: renaming directory folder

Sorry I'm so slow...it took me a while to figure out how to do this. I've successfully downloaded the plug in; I tried to access the "edit" panel from the Admin>Sessions and got the same error message. Checking the /cache debugging log, I got a LONG list of basically the same messages (lines 1 -2750):

either:

[23-Feb-2014 10:45:24 America/Los_Angeles] PHP Deprecated: Function ereg() is deprecated in /home/danci18/public_html/includes/classes/db/mysql/query_factory.php on line 177

[NOTE: " on line number ..." changes from : 177 to 412 at line 25 in the debug log, but remainder of message is the same]

AND

[23-Feb-2014 10:45:24 America/Los_Angeles] PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/danci18/public_html/includes/functions/functions_email.php on line 161

AND

[23-Feb-2014 10:45:24 America/Los_Angeles] PHP Deprecated: Function ereg_replace() is deprecated in /home/danci18/public_html/includes/functions/sessions.php on line 112

23 Feb 2014, 7:10 PM
#25
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: renaming directory folder

Did your hosting provider recently update to a new version of php?

Other than trying to move from a subdirectory to the root ... have you added any new files?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

23 Feb 2014, 7:14 PM
#26
bluelion avatar

bluelion

New Zenner

Join Date:
Mar 2008
Posts:
73
Plugin Contributions:
0

Re: renaming directory folder

If the host updated to a new version of php we were not notified (the website owner nor myself). According to the host, it's PHP version 5.3.27.

No new files have been added as far as I know. Looks like the last change other than this current situation was a product upload 1/15/14.

23 Feb 2014, 7:35 PM
#27
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: renaming directory folder

While it is probably easier to upgrade your site than to try applying all of the fixes for v1.3.8 to work with php 5.3, you could look through these ...
http://www.zen-cart.com/showthread.php?140960-PHP-5-3-Support-for-v1-3-8-a

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

23 Feb 2014, 7:46 PM
#28
bluelion avatar

bluelion

New Zenner

Join Date:
Mar 2008
Posts:
73
Plugin Contributions:
0

Re: renaming directory folder

I have already applied the zc138a-php53patch. The PHP was updated in August of 2012 and the site was working. (I don't know enough to know if this is useful info or not).

Should I re-install/customize the files as indicated?

Important question: should I even try to do the upgrade to the current version if I've got this problem with admin going on? Since I can't access anything from admin, will upgrading at this point cause even more problems? (You probably can't answer that easily, but I'm so concerned about making this site unavailable/inaccessible.)

Would it really be easier to just upgrade? really? : >)

If I've not said it before--thank you so much for your patience and help. I'm learning a lot!

23 Feb 2014, 7:57 PM
#29
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: renaming directory folder

From what I can see ... you do not appear to have a lot of customization ... so you tell us? What addons or customizations do you have?

I see you are using the Classic Template ... but did you make any customizations to it?

As to your Admin being broken ... if you are getting errors that sound like php 5.3 issues then you need to fix one thing or another to get into your Admin ... maybe you had something that made your site php 5.2 when in a subdirectory? Maybe you had something your host did to make your site run as php v5.2 and you did not know it when in a subdirectory?

Maybe php go changed to php 5.3 in the last few days and you didn't see it happen?

Maybe you missed some of the php 5.3 fixes and are only seeing the issue now?

It really depends on how you want to do it ...

A simple test is install Zen Cart v1.3.9h or v1.5.0 into a working or test subdirectory with the demo products loaded into a new database and make sure it works ...

Then, try copying your v1.3.8 database to your NEW database and try running the Upgrade on it and see if it works ...

If running the upgrade on your site in the working or test subdirectory is in fact working ... then you just need to do a really upgrade with the real files and move your current site into an /oldv138 directory and your working or test subdirectory into the root ...

But I would take the time to read the docs on how to do an upgrade etc. and practice it a few times ...

REMEMBER: Backups are your friend ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

23 Feb 2014, 8:06 PM
#30
bluelion avatar

bluelion

New Zenner

Join Date:
Mar 2008
Posts:
73
Plugin Contributions:
0

Re: renaming directory folder

Wow. That's a lot of info and questions and I don't know if I can find answers to all of them. Let me look things over and see what I can find and do. At least, thanks to your help, the configure.php files are correct.

As far as I can tell, there are no customizations to the Classic Template, other than not having some of the features turned on, and the right hand sidebox turned off. (Are those customizations? Are you sighing in dismay?!!!!) The only add on I know of is the paypal module which was just installed a couple weeks ago.

I don't know what php go is, but I do know that the host went to 5.3 in August of 2012, and the 5.3 patch was installed in October 2012.

I'll get to work and see what I can do with an upgrade/test site. Thanks again for your help.

23 Feb 2014, 8:14 PM
#31
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: renaming directory folder

Practice is the key ... :smile:

Keep in mind, you can make lots of subdirectories with different versions of Zen Cart and their own databases and put a copy of your database in them and practice upgrades and such until you have it perfect ...

Then, practice an upgrade to your test site and test how long it takes to do an upgrade where all you need to do is copy your Live database to your test database and run the Upgrade and then run the "extra" things to get it all working 100% prior to a real upgrade of the Live site and Live database ...

There are a number of things that should be done and practicing is what makes it easy and less scary the first zillon times ... and backups of the files and database are what make it a lot safer ...

So don't feel like a dummy ... we all have had to do this before and we all sweat it a little to a lot when we have to do it ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

24 Feb 2014, 2:32 PM
#32
bluelion avatar

bluelion

New Zenner

Join Date:
Mar 2008
Posts:
73
Plugin Contributions:
0

Re: renaming directory folder

I'm back...hoping this won't give you a Monday headache right off the bat. I am trying to do the upgrade; successfully downloaded the 1.5.1 files and uploaded them to server. (I'm following the instructions from http://www.zen-cart.com/content.php?148.) Right off the bat I've got a question: I cannot find the two configure.php files. In 1.3.8 they were in Admin>Includes and in the Includes folders. They are not there in 1.5.1.

Have they both been moved or did I get an incomplete zip file and should I start over?

Thanks...we can always hope this is going to be the last of the questions! (But we both know better, alas and alack!)
Thanks for your last reply by the way...it gave me a much needed smile!

24 Feb 2014, 2:50 PM
#33
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: renaming directory folder

You should read the FAQs based on Install and Upgrade to see the differences ...

To install a new version into a working directory, you would have subdirectory such as:
/workdev
/v151

that you have loaded all of the files ...

Zen Cart does not come with the files:
/includes/configure.php
/admin/includes/configure.php

the come with:
/includes/dist-configure.php
/admin/includes/dist-configure.php

Those two files you rename to:
/includes/configure.php
/admin/includes/configure.php

Now you can run a clean Install with the demo data to your NEW database that you would have created by running, if your subdirectory is /v151:
/v151/zc_install

Now, follow the Installation giving the data for the new directory, new database, new user, new password and install the demo data so that you can just see if everything is working ...

Once you can see all is working, you want to do an Upgrade ...

This can be done by copying of your Live database to your NEW database ...

NOTE: for the Upgrade, you need your directory:
/v151/yoursecretadmin

renamed to:
/v151/admin

You also need to make sure the directory:
/v151/zc_install

exists, as you had to rename that when doing the first Install in order to test things ...

Now, when you run the:
/v151/zc_install

you will see an option to run an Upgrade ...

You will see checkboxes for the various pieces of the Upgrade that you have to run ...

I usually do one checkbox at a time starting with the first checkbox that is checked and unchecking any checkboxes below it ...

If you read the FAQs on Upgrades, there are a lot more details spelled out to help do this successfully ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

24 Feb 2014, 3:03 PM
#34
bluelion avatar

bluelion

New Zenner

Join Date:
Mar 2008
Posts:
73
Plugin Contributions:
0

Re: renaming directory folder

Thanks for your rapid and detailed reply. I'll get to work on it and see what I can come up with for you next!

1 Mar 2014, 10:19 PM
#35
bluelion avatar

bluelion

New Zenner

Join Date:
Mar 2008
Posts:
73
Plugin Contributions:
0

Re: renaming directory folder

Hello Ajeh. I've been working on the upgrade all week and have had some success and (alas) some failure. I have successfully gotten to the Zencart setup Finished page. I can access both admin and the test site. Following your instructions as per above (for which I will be forever indebted to you for taking so much time to be so detailed) and reading everything I can find on upgrade (some of which conflicts with your steps but I'm sticking with your method) I have gotten to the Upgrade page.

Your instructions state:

"You will see checkboxes for the various pieces of the Upgrade that you have to run ...

I usually do one checkbox at a time starting with the first checkbox that is checked and unchecking any checkboxes below it ..."

When I do the "second" install to get to the upgrade, at the bottom of the ZenCart System Inspection page it says: If you are Upgrading, be sure to choose "Database Upgrade" below to keep your data. If you choose "install", you will erase all the contents of your database.

Then the choices are: install, Upgrade Cfg Files, Database Upgrade, Re-Check.

When I clicked on Database Upgrade, I got the message that I didn't need to upgrade the database.

I don't know what to do next to run the upgrade to the site. Maybe I've already done it and didn't realize it? I'm feeling SO lost and slightly hopeless, but I keep rereading your reply about everyone having to go through the learning curve. Thank you yet again for your patience.

23 Apr 2014, 1:51 PM
#36
drbyte avatar

drbyte

Sensei

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

Re: renaming directory folder

bluelion:

When I clicked on Database Upgrade, I got the message that I didn't need to upgrade the database.
That means either you've already run zc_install and upgraded the database (if you look at the ZC Version it displays on the previous screen where it inspects the server, it'll tell you what ZC version it thinks it found in the database), or you've got your configure.php files pointed to the wrong database and/or database-prefix.

.
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.