Forum Home
Press F1
 
Thread ID: 66303 2006-02-18 08:28:00 PHP, Apache and MySQL setup Hardy (4730) Press F1
Post ID Timestamp Content User
431836 2006-02-18 08:28:00 Hi,

I want to set up a little testing environment for myself on my local computer so I can test out some PHP code before putting it online because it's a lot faster than writing some code and then having to wait for it to be FTPed before you can test it.

I want to have a few database tables and be using some PHP code to interact with them. I know how to do all that, I just want to know how to configure Apache to get the thing to load my page from localhost

So far it just puts the code up on the page when I visit that, not the output of the code.

I've installed Apache vs 2.0.55 (win32), PHP 4.4.2 for windows which I think has MySQL support, and installed MySQL 5.0.18-win32. I'm running XP Pro and want it all set up on that.

Anyone have a clue how to get it to work, or know of an easy to follow tutorial to get this going?

Thanks
Hardy (4730)
431837 2006-02-18 08:36:00 I had apache, php, mysql etc running on my W2k machine

I used the tutorial here

www.webmasterstop.com

might be a shade out of date now, but my server ran fine for ages (till I ran out of space on the Hd)
Morgenmuffel (187)
431838 2006-02-18 08:50:00 I would recommend aiming for PHP5.x and MySQL5.x unless you need legacy support.

Also please see my other post about training CDs. There is training CDs for PHP/MySQL.

Thank you.
CreightonBrown (5692)
431839 2006-02-18 08:52:00 Cool, thanks fellas. Think I've sorted it for now.

Stumbled across this tutorial:

www.php-mysql-tutorial.com
Hardy (4730)
431840 2006-02-18 10:37:00 Just one think to keep in mine is if you make a database under mysql 5.0 & you want to move it to another web host there is a good chance it won’t work well or you will have a lot of issues with restoring it on a web host running mysql 4.0.XX

As I have yet to see a web host offer mysql 5.0 hosting accounts & most of them are running mysql 4.0 or 4.1

Hope this helps :)
stu161204 (123)
431841 2006-02-18 12:21:00 you could use WAMP or similar which automates most of the apache + php + mysql process...

http://www.en.wampserver.com/
whetu (237)
1