Site maintenance: Sun 15 Nov, from 20:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / Dreamweaver Local Site Easy Php Trouble.

Dreamweaver Local Site Easy Php Trouble.

Locked

Started by arquetipo on 18 May 2008, 7:19 PM · Views: 3,644

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
18 May 2008, 7:19 PM
#1
arquetipo avatar

arquetipo

New Zenner

Join Date:
May 2008
Posts:
20
Plugin Contributions:
0

Dreamweaver Local Site Easy Php Trouble.

Hello,

I Have Installed my Zen Cart Store successfully and I am very happy with the software and its possibilities.
I thought that I could use Dreamweaver to edit some Css and Layout Details, the trouble is that editing directly in my Isp server is too slow, so I decided to set a local testing server in my pc with Easy PHP.

The trouble is that when I copy my shop directory on my personal server the page doesn't work because the configure.php points to my isp.

I've tried changing the data from "mydomain" to "localhost" but it doesn't seem to work.

I am new to php and mysql and I don't know how to manage this double working enviroments. Do I have to make a copy of my hosted database and load it into my local machine?
Can I access my Isp database from my local php server?
How does it work?

Thank you.
Jacobo

18 May 2008, 8:10 PM
#2
kobra avatar

kobra

Black Belt

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

Re: Dreamweaver Local Site Easy Php Trouble.

First off with Zen Cart being php the actual pages that can be edited with DW do not exist.

DW is mostly a html wysiwyg environ and not really suitable for a php application as a wysiwyg development tool

for your local install I will post a few of the path alterations you need to make in both (2) configure.php files and this might not be all - adjust for where you have your installed like where I have /zen1/ replace with the sub-dir you have

  // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
  define('HTTP_SERVER', 'http://localhost');
  define('HTTPS_SERVER', 'https://localhost');

  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  define('DIR_WS_CATALOG', '/zen1/');
  define('DIR_WS_HTTPS_CATALOG', '/zen1/');

// * 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', 'c:/easyphp/www/zen1/');

And your DB changes

Zen-Venom Get Bitten

18 May 2008, 8:43 PM
#3
arquetipo avatar

arquetipo

New Zenner

Join Date:
May 2008
Posts:
20
Plugin Contributions:
0

Re: Dreamweaver Local Site Easy Php Trouble.

Thank You for your Help!

Now I have the Following Error:

Sorry!
There seems to be a problem connecting to our database. Please give us a few minutes to remedy the problem. Thank you.

How do I deal with the Database?
Is it possible to connect with the remote database from my local server or do I have to copy the database in my mysql. How does it work?

(I use Dreamweaver as a text editor for css & other modifications, I know the design tab is useless for zc. Thank you for the advise anyway.)

Jacobo

18 May 2008, 8:47 PM
#4
kobra avatar

kobra

Black Belt

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

Re: Dreamweaver Local Site Easy Php Trouble.

Is it possible to connect with the remote database from my local server or do I have to copy the database in my mysql. How does it work?

No to the remote connect and not a good idea - Yes as to copying the DB -creating a DB locally with easyphp and inserting/importing your copy to it

Zen-Venom Get Bitten

18 May 2008, 9:18 PM
#5
arquetipo avatar

arquetipo

New Zenner

Join Date:
May 2008
Posts:
20
Plugin Contributions:
0

Re: Dreamweaver Local Site Easy Php Trouble.

Thank you very much!

Now I have my running local server running for tests.

I copied the database and everything works.

bye!