Copying Working Website to WampServer
Posted by: sleepy (---.satx.res.rr.com)
Date: January 07, 2010 04:47AM

Can anyone point me to a tutorial or somehow explain the steps to take in reproducing a production website locally on WampServer? I assume you copy the files in the www folder, then export the database from the production website, and import it into WampServer using phpmadmin. But then what files do you need to change? Etc.

Thanks for your help.

Options: ReplyQuote
Re: Copying Working Website to WampServer
Posted by: toumimi (---.99.116-78.rev.gaoland.net)
Date: January 08, 2010 03:17AM

You can add a folder to Wamp if you want to run multiple projects without loosing wamp homepage.

Create a folder your_site/ in www folder.
Do what you said, without forgetting to create mysql users.
Use phpinfo() on your server to know every options you have, to reproduce the same locally
=> see php.ini in wamp menu -> PHP
=> see php extensions in wamp menu -> PHP -> extensions

Then simply run 'http://127.0.0.1/your_site/'

Nothing else to change.

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: Copying Working Website to WampServer
Posted by: sleepy (---.satx.res.rr.com)
Date: January 08, 2010 10:53PM

I copied all files from the live server to a folder in wamp\www. Then I imported the sql files. I didn't have a phpinfo() on the live server as wampserver does. I couldn't find a php.ini or php extensions in wampserver.

I'm getting an error when I try to open my website out of wampserver:

"Database Error: Unable to connect to the database:Could not connect to MySQL"

The live website doesn't have a MySQL database, as shown thru phpMyAdmin. This is all very confusing. I was hoping it would be simpler. Help!

Options: ReplyQuote
Re: Copying Working Website to WampServer
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: January 08, 2010 10:56PM

oh course it has a mysql database... u have sql file!

ul need to setup mysql onwamp with the same useras ur live site

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Copying Working Website to WampServer
Posted by: sleepy (---.satx.res.rr.com)
Date: January 08, 2010 11:34PM

What I meant was that my live site doesn't have a database named mysql when I go into phpMyAdmin. The wampserver does have a database named mysql. Both databases that I imported appear under the username of my live website. How do you setup the wamp mysql with this username?

Options: ReplyQuote
Re: Copying Working Website to WampServer
Posted by: yfastud (Moderator)
Date: January 09, 2010 04:25AM


Options: ReplyQuote
Re: Copying Working Website to WampServer
Posted by: sleepy (---.satx.res.rr.com)
Date: January 11, 2010 04:29PM

I added the user to MySql but still get the message: "Database Error: Unable to connect to the database:Could not connect to MySQL." when I click on the website name under 'Your Projects' on the WampServer home page.

Options: ReplyQuote
Re: Copying Working Website to WampServer
Posted by: yfastud (Moderator)
Date: January 12, 2010 03:55AM

check your script and make sure the data in the connection part associated w/ info you used in setup db

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote


Sorry, only registered users may post in this forum.