Jump to content

Recommended Posts

Posted

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

Posted

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?)

Posted

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)

Posted

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?

Posted

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...