Jump to content
Stef's Coding Community
Hank

Website to local PC

Recommended Posts

Hi,

 

I am sure this has been answered somewhere but I cannot find it.

Anyway I bought a PHP website of someone and they installed it for me with my ISP.

 

It works a charm but I want to make some small changes to the layouts and CS.

 

So i've downloaded the files from the public folder onto my PC using Wamp and exported the database to my hard drive and imported the DB with PHPmyAdmin.

 

But I cannot get it to work, is there somewhere a tutorial on how to do this?

 

Tx

 

Hank

Share this post


Link to post
Share on other sites

Perhaps you can explain the "cannot get it to work" part? It sounds like you are following roughly the correct steps...

 

-- Are the files on the correct spot on your computer? (usually, they have to be within c:/wamp/www).

-- Do you have WAMP running? (if it is, you should have a green "w" icon in the taskbar near your computer's clock.)

-- Are you trying to access the site through localhost? (when you have a browser window open are are trying to access the site, does the site include http://localhost in the URL?)

Share this post


Link to post
Share on other sites

Also make sure your site's config file that has the database settings match what you have in your database (i.e. databasename, username, password, db connection)

Share this post


Link to post
Share on other sites

Thanks guys,

 

WAMP runs perfect and if I create a DB locally it works great in localhost.

 

in my config file I have this -

 

require_once('passwd.inc.php');

$main_path = $server_path;

$include_path = $server_path."includes/";

 

and then in the passwd.inc.php file I have this bit -

 

<?php

 

$DbHost = "localhost"; // The host where the MySQL server resides

$DbDatabase = "lookawin_icauction"; // The database you are going to use

$DbUser = "lookawin_icaucti"; // Username

$DbPassword = "mypassword"; // Password

$server_path= "/home/lookawin/public_html/";

?>

 

All my files are in this folder - C:\wamp\www\lookawine

 

Could it be the server path?

Share this post


Link to post
Share on other sites

: ) and just to show how little I know, how do I figure out what the server path is?

 

I created a dummy file and put phpinfo() in to see if I can find it in there, but my knowledge is ...

Share this post


Link to post
Share on other sites

Try this: /wamp/www/lookawine/

 

Bear in mind that I haven't used WAMP in 2 years so you may need to varify your path.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...