wright67uk Posted March 20, 2012 Share Posted March 20, 2012 Im looking to set up a LAMP or maybe a WAMP ?!?! on my PC to save by not having to upload my practice php scripts to my godaddy server. I have dreamweaver on my PC which i currently use (mainly for the syntax highlighting) for editing. Im running a windows based PC. Is installing an environment where I can test php scripts a difficult thing to do, and how to I go about it ? Im a bit worried abour screwing up the family computer if I do things wrong. Quote Link to comment https://forums.phpfreaks.com/topic/259317-installing-an-environment-where-i-can-test-php-scripts-is-this-a-lamp-or-wamp/ Share on other sites More sharing options...
kicken Posted March 20, 2012 Share Posted March 20, 2012 You want WAMP (W for Windows). There is also XAMPP you could try. I've personally never setup either of them so I can't help too much there. From what I've heard they are both fairly simple to install. Neither of them should cause any problems with your system. You'll want to make sure you only have one of them installed though. If for some reason one won't work then make sure to un-install it (maybe even with a reboot) before installing the other one. Once you have one setup you should be able to test your scripts locally by going to http://localhost/ in your browser. Quote Link to comment https://forums.phpfreaks.com/topic/259317-installing-an-environment-where-i-can-test-php-scripts-is-this-a-lamp-or-wamp/#findComment-1329314 Share on other sites More sharing options...
gizmola Posted March 20, 2012 Share Posted March 20, 2012 If you have a fairly low end machine, kicken's suggestion works well. If you have a higher end machine, you might consider virtualization using either VMWare workstation or Oracle/Sun Virtualbox. There are numerous howtos and tutorials you can find on installing a distro of your choice. If you're hosted on a linux server, this has the added advantage of being a better simulation of your ultimate deployment environment, and also doesn't gum up your machine with a bunch of services -- the virtual server is exactly like your deployment target, and you can set it up just like your godaddy account, in terms of users/permissions etc. Quote Link to comment https://forums.phpfreaks.com/topic/259317-installing-an-environment-where-i-can-test-php-scripts-is-this-a-lamp-or-wamp/#findComment-1329324 Share on other sites More sharing options...
wright67uk Posted March 20, 2012 Author Share Posted March 20, 2012 Hello again! Thankyou for the replies! Ive gone for the WAMP - and ive downloaded and installed WampServer. The server is turned and is showing as active. I have a file called test.php and ive saved it in c:/wamp Is this all I need to do to be able view my php files in a browser? Ive tried typing http://localhost/test.php into my browser and also c:/wamp/test.php (test.php) being the file ive created. Am i missing a trick here? Quote Link to comment https://forums.phpfreaks.com/topic/259317-installing-an-environment-where-i-can-test-php-scripts-is-this-a-lamp-or-wamp/#findComment-1329627 Share on other sites More sharing options...
trq Posted March 21, 2012 Share Posted March 21, 2012 You can't just put files in your OS's file system root and have them display, the server has it's own root. No idea where it is in WamServer, but it will be something like C:\PathToWampServer\htdocs Quote Link to comment https://forums.phpfreaks.com/topic/259317-installing-an-environment-where-i-can-test-php-scripts-is-this-a-lamp-or-wamp/#findComment-1329756 Share on other sites More sharing options...
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.