Hank Posted August 23, 2011 Report Posted August 23, 2011 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 Quote
falkencreative Posted August 23, 2011 Report Posted August 23, 2011 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?) Quote
newseed Posted August 23, 2011 Report Posted August 23, 2011 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) Quote
Hank Posted August 23, 2011 Author Report Posted August 23, 2011 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? Quote
newseed Posted August 23, 2011 Report Posted August 23, 2011 The server path needs to change to match your local server. Quote
Hank Posted August 24, 2011 Author Report Posted August 24, 2011 : ) 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 ... Quote
newseed Posted August 24, 2011 Report Posted August 24, 2011 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. Quote
Recommended Posts
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.