Web Hosting Talk







View Full Version : TESTING php scripts on LOCAL windows pc help...


mouseattack
05-27-2005, 03:58 PM
Hello,
I need some help testing a php script on a PERSONAL windows xp home edition SP 2 pc.

So far, I've only downloaded the PHP 5.0.4 MSI installer windows binary, and haven't installed it yet.

I am curious and worried about vurnerabilities if I install it on a pc, would it be a security risk if I was NOT running a webserver, Apache is not installed and windows firewall has all ports unchecked, so there are no remote connections allowed (I believe).

Would someone be able to do something like

http://66.159.185.155:80/index.php?id=programfiles/blah/blah/blah and access all or any of my files on the pc? (WITHOUT a webserver being installed), and will my php scripts run when I double click them, will they parse as php and I can test them out ? Would things like INCLUDE("http://www.yahoo.com") work "meaning file_open " ?

What happens if I do install apache,THEN the above vurnerabiltiy would work right? How would I go about securying it so, I can run a website from my pc and without getting "rooted' as you guys like to say.

Windows XP Home SP2 (latest upgraded), would professional edition be any better? I can do that easily, I just don't care to change my personal pc to a flavor of linux since I am not at all familiar with linux GUI and I don't think ANY of my programs would run correctly on linux, even with a windows emu they would still have errors.

Thank you.

Burhan
05-27-2005, 04:18 PM
If you make sure that Apache is only listening on 127.0.0.1, then your computer is not vulnerable from outside attacks. Put up a firewall program, or have your router block all requests on port 80.

You might want to download the zip (instead of the msi installer) because the zip file contains a lot more extensions.

mouseattack
05-27-2005, 04:39 PM
ok thanks, I downloaded both, and I'll use that one and make sure apache's only listening on localhost.

So that was a YES?, I MUST install and run apache if I want to test my php scripts?

mfonda
05-27-2005, 06:09 PM
You do not need a webserver to use PHP. It is just one of the possible SAPI's you can use. You can also use PHP from the command line.

If you want to develop web applications, you will probably need a webserver. It is really pretty secure to run a web server. PHP is a very secure language, it is the coder that makes it insecure. You can always configure your webserver so only you can access it. Firewall is a plus too.

hd2000
05-28-2005, 10:05 PM
You should install a firewall, make sure your webserver listen on localhost and run the webserver and mysql server when necessary only, this saves your computer's resources too !