Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / how to recover my website?

how to recover my website?

Locked

Views: 1,775

Results 1 to 19 of 19
This thread is locked. New replies are disabled.
24 Feb 2009, 8:18 AM
#1
zhouyi avatar

zhouyi

New Zenner

Join Date:
Jan 2009
Location:
China
Posts:
25
Plugin Contributions:
0

how to recover my website?

http://maiall.com
I've just bought SSL fr. godaddy, and tried to enable SSL on zen-cart yesterday.
When I changed configure.php" define('ENABLE_SSL', 'false');"into "true". It trashed my website.Now, I can't visite my website, and can't recover it when change "true"back into"false".:unsure:
I don't wanna re-install zen-cart, can I recover my website?Really need help now. Thank you very much!

24 Feb 2009, 8:43 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: how to recover my website?

What program did you use to edit the configure.php files?
You did make a backup of your files before you edited them, right? You can use your backup copy of the file and make your edits again.

Or, post your configure.php file contents here for assistance. (Don't include the password)

24 Feb 2009, 10:02 AM
#4
zhouyi avatar

zhouyi

New Zenner

Join Date:
Jan 2009
Location:
China
Posts:
25
Plugin Contributions:
0

Re: how to recover my website?

Yes. I have backup files before edit, but can't recover website when edit back again.
I made the accident yesterday:
I bought SSL yesterday, and got a new IP. Then, I changed the new IP...several minutes later, zen-cart website warned me: website allows read&write, is with potential risk.So, I used Dreamweaver to edit confingure.php.
Attachment is the content before/after change.
(I don't know if I describe clear,Sorry for my innocence).

24 Feb 2009, 10:11 AM
#5
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: how to recover my website?

zhouyi:

I bought SSL yesterday, and got a new IP. Then, I changed the new IP...
That's not right.

First you get a Dedicated IP address, then you get a Dedicated SSL Cert.
Hoster installs the Cert for you and you confirm it is working by going to any "https" URL on your site.

After confirming the Cert is installed correctly you then edit "both" config files, to enable an 'https' connection.

There is no need to "change IP" anywhere within Zen Cart.
Where did you change it?

24 Feb 2009, 10:11 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: how to recover my website?

zhouyi:

So, I used Dreamweaver to edit confingure.php.

Your editor has probably accidentally added a blank line at the bottom of your configure.php file, after the closing ?>
Or, perhaps your changes are NOT actually uploading properly because the file is read-only.
Or perhaps the file is being deleted or you're setting the file's permissions too low.

If you use a normal FTP program instead of Dreamweaver, what are the permissions on the file? What is in the file if you download it and open it?

24 Feb 2009, 10:35 AM
#7
zhouyi avatar

zhouyi

New Zenner

Join Date:
Jan 2009
Location:
China
Posts:
25
Plugin Contributions:
0

Re: how to recover my website?

Website Rob:

That's not right.

First you get a Dedicated IP address, then you get a Dedicated SSL Cert.
Hoster installs the Cert for you and you confirm it is working by going to any "https" URL on your site.

After confirming the Cert is installed correctly you then edit "both" config files, to enable an 'https' connection.

There is no need to "change IP" anywhere within Zen Cart.
Where did you change it?

Yes. I didn't check "https"URL first, and my godaddy hosting account is still "Pending Change Account".
I changed IP at "DNS Control Panel and FlashFXP".

24 Feb 2009, 10:39 AM
#8
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: how to recover my website?

That tells us, you need to wait until after confirming the Cert is installed correctly.

In the meantime, follow DrByte's suggestions to put things back the way they were.

24 Feb 2009, 10:40 AM
#9
zhouyi avatar

zhouyi

New Zenner

Join Date:
Jan 2009
Location:
China
Posts:
25
Plugin Contributions:
0

Re: how to recover my website?

DrByte:

Your editor has probably accidentally added a blank line at the bottom of your configure.php file, after the closing ?>
Or, perhaps your changes are NOT actually uploading properly because the file is read-only.
Or perhaps the file is being deleted or you're setting the file's permissions too low.

If you use a normal FTP program instead of Dreamweaver, what are the permissions on the file? What is in the file if you download it and open it?

It never add a blank line, and I didn't delete or set the file's permissions. But, I'm not sure if I uploaded properly..What can I do then If I uploaded improperly?

24 Feb 2009, 10:42 AM
#10
zhouyi avatar

zhouyi

New Zenner

Join Date:
Jan 2009
Location:
China
Posts:
25
Plugin Contributions:
0

Re: how to recover my website?

ok. Thanks a lot for your reply and help. Really love Zen-cart.:smile:

24 Feb 2009, 10:42 AM
#11
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: how to recover my website?

zhouyi:

It never add a blank line, and I didn't delete or set the file's permissions. But, I'm not sure if I uploaded properly..What can I do then If I uploaded improperly?

Rename the two config files on your site now and upload your original ones or the ones using a regular 'http' connection.

25 Feb 2009, 5:04 PM
#12
zhouyi avatar

zhouyi

New Zenner

Join Date:
Jan 2009
Location:
China
Posts:
25
Plugin Contributions:
0

Re: how to recover my website?

I confirmed SSL now and restored MySQL Database, but still can't find out the solution to recover my website(http://maiall.com).Can anybody check bellow Configure.php content for me? Anything wrong with it?

<?php /** * @package Configuration Settings circa 1.3.8 * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/ /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/ // Define the webserver and path parameters // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com define('HTTP_SERVER', 'http://maiall.com'); define('HTTPS_SERVER', 'https:/'); // Use secure webserver for checkout procedure? define('ENABLE_SSL', '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_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/maiall.com/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_INCLUDES', 'includes/'); 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', DIR_WS_CATALOG . 'pub/'); define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/'); define('DIR_WS_PHPBB', '/'); // * 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_CATALOG', 'e:/wwwroot/yoyomm/wwwroot/maiall/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/'); define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); // define our database connection define('DB_TYPE', '****'); define('DB_PREFIX', ''); define('DB_SERVER', '***.***.***.***'); define('DB_SERVER_USERNAME', '****'); define('DB_SERVER_PASSWORD', '****'); define('DB_DATABASE', '****'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', '****'); // for STORE_SESSIONS, 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', 'none'); define('DIR_FS_SQL_CACHE', 'e:/wwwroot/yoyomm/wwwroot/maiall/cache'); // EOF
25 Feb 2009, 5:11 PM
#13
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Location:
AZ
Posts:
1,890
Plugin Contributions:
0

Re: how to recover my website?

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

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

this says https = nothing!
and ssl is off.

Try this:

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

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

Tina

25 Feb 2009, 5:15 PM
#14
zhouyi avatar

zhouyi

New Zenner

Join Date:
Jan 2009
Location:
China
Posts:
25
Plugin Contributions:
0

Re: how to recover my website?

nothing happens when I changed as above mentioned.

25 Feb 2009, 5:19 PM
#15
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Location:
AZ
Posts:
1,890
Plugin Contributions:
0

Re: how to recover my website?

zhouyi:

nothing happens when I changed as above mentioned.

I see this when I try to access your site:

  1. Your /includes/configure.php and/or /admin/includes/configure.php file contains invalid path information and/or invalid database-connection information.

If you recently edited your configure.php files for any reason, or maybe moved your site to a different folder or different server, then you'll need to review and update all your settings to the correct values for your server.
See the Online FAQ and Tutorials area on the Zen Cart™ website for assistance.Look at BOTH configure files and verify the paths and your database information.

Tina

25 Feb 2009, 5:24 PM
#16
zhouyi avatar

zhouyi

New Zenner

Join Date:
Jan 2009
Location:
China
Posts:
25
Plugin Contributions:
0

Re: how to recover my website?

Thank you for your patience.!
I have checked the 2 configure.php.
1.Admin/includes configure.php runs ok.( I can open admin panel at present, if I try to change the configure.php, admin panel do not run)
2. includes/configure.php....I really do not know what's wrong with it..I have even tried to edit by Jan. backup files.

25 Feb 2009, 5:49 PM
#17
zhouyi avatar

zhouyi

New Zenner

Join Date:
Jan 2009
Location:
China
Posts:
25
Plugin Contributions:
0

Re: how to recover my website?

define('DIR_FS_CATALOG', 'e:/wwwroot/yoyomm/wwwroot/maiall/');

What's this:"yoyomm"..I remember my technician who setup the website, have once put some ######## girls' pictures at my database(seems the name is yoyomm)..Will this affect the path?

25 Feb 2009, 6:35 PM
#18
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Location:
AZ
Posts:
1,890
Plugin Contributions:
0

Re: how to recover my website?

define('DIR_FS_CATALOG', '/home/xxxxx/public_html/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

Your file should look similar to this one.
Also fix this line on your configure file too.

define('DIR_FS_SQL_CACHE', 'e:/wwwroot/yoyomm/wwwroot/maiall/cache');

Tina

26 Feb 2009, 4:43 PM
#19
zhouyi avatar

zhouyi

New Zenner

Join Date:
Jan 2009
Location:
China
Posts:
25
Plugin Contributions:
0

Re: how to recover my website?

Thanks again for the support and help here. I finally solved this problem.
The root cause is:
It's not right for me to cover the new configure.php by original backup file(Jan.). Because the "configure.php" has already been edited automatically when setup SSL and new IP.
So, refer to "admin/includes/configure.php"(I confirmed this file runs normal),I edited "configure.php" again....Finally,recover my website.:laugh: