Page 1 of 2

Requirements to run PHP.

Posted: Fri Sep 19, 2008 12:57 am
by swetha
What are the softwares i need to install and run if i need install php
in my machine?
Are all the softwares avaiable for free download?

Re: Requirements to run PHP.

Posted: Fri Sep 19, 2008 1:13 am
by adroit
You can use wampserver
Download it from http://www.wampserver.com/en/index.php
It is free.

Re: Requirements to run PHP.

Posted: Fri Sep 19, 2008 2:38 am
by swetha
thanks
also could you clarify this?
can we use IIS server instead of Apache server?

Re: Requirements to run PHP.

Posted: Fri Sep 19, 2008 5:29 am
by jayshields
Yes.

Re: Requirements to run PHP.

Posted: Fri Sep 19, 2008 11:42 am
by Maugrim_The_Reaper
There should be plenty of IIS and PHP tutorials online since it's one of Microsoft's recent pet babies ;).

Re: Requirements to run PHP.

Posted: Fri Sep 19, 2008 12:08 pm
by panic!
If you're worried about server overheads and limitations I'd run lighttpd

http://www.lighttpd.net/

Re: Requirements to run PHP.

Posted: Sun Sep 21, 2008 6:04 am
by swetha
i have installed wampserver, downloaded from the site into my machine.how do i start executing a php file? am having no clue what needs to be done on this?
when i click on the option of localhost(one of the features of wampserver),i get the screen of IIS7.

pls help

Re: Requirements to run PHP.

Posted: Mon Sep 22, 2008 12:58 am
by adroit
Hi,

You need to change your apache server port to run PHP. To chage port follow these steps

There is half circled icon on taskbar, click on it and goto "Config files". Open httpd.conf file and search for "Listen" in it, you will get "# Listen 3000", remove # from this line and save the file. Restart the wampserver from the half circled. Open web browser and use url as "http://localhost:3000/", it will show you wampserver localhost.

Re: Requirements to run PHP.

Posted: Mon Sep 22, 2008 1:15 am
by swetha
thanks.
but im not sure if iis is already installed in my machine.
1.how to check if IIS is already present in my machine.
2.if iis is already installed in my machine,can i still run apache server?

Re: Requirements to run PHP.

Posted: Mon Sep 22, 2008 1:47 am
by wolfwood16
on your control panel, Add REmove Programs, click on Add/Remove Windows components, and see if the IIS server was checked....if checked then installed....

better use single web server. you wouldn't use two web servers on a single box eh? :)

Re: Requirements to run PHP.

Posted: Mon Sep 22, 2008 2:24 am
by adroit
Yes you can run ISS and APACHE(Wampserver) server both at a time. Just change the port as I have mentioned in my previous post.

Re: Requirements to run PHP.

Posted: Tue Sep 23, 2008 12:02 pm
by swetha
Hi,
You need to change your apache server port to run PHP. To change port follow these steps
There is half circled icon on taskbar, click on it and goto "Config files". Open httpd.conf file and search for "Listen" in it, you will get "# Listen 3000", remove # from this line and save the file. Restart the wampserver from the half circled. Open web browser and use url as "http://localhost:3000/", it will show you wampserver localhost.


In response to above:i dont find this line
"# Listen 3000" in httpd.conf .But there is already a line:Line 80 in my machine.when i give "http://localhost/",the IIS7 screen appears.
also my machine runs on windows XP.

thanks for help.

Re: Requirements to run PHP.

Posted: Tue Sep 23, 2008 10:19 pm
by swetha
Hi,
You need to change your apache server port to run PHP. To change port follow these steps
There is half circled icon on taskbar, click on it and goto "Config files". Open httpd.conf file and search for "Listen" in it, you will get "# Listen 3000", remove # from this line and save the file. Restart the wampserver from the half circled. Open web browser and use url as "http://localhost:3000/", it will show you wampserver localhost.

In response to above:i dont find this line
"# Listen 3000" in httpd.conf .But there is already a line:Line 80 in my machine.when i give "http://localhost/",the IIS7 screen appears.
also my machine runs on windows XP.

thanks for help.
had provided wrong information.my machine runs on windows Vista and not on Windows XP.

Re: Requirements to run PHP.

Posted: Wed Sep 24, 2008 10:54 am
by swetha
it worked.
In httpd.conf file,i changed the line Listen 80 to Listen 81.after this, i gave the following line...
http://localhost:81/.The winamp homepage opens.

But the thing is i dont know how to exceute a php file locally.is there any permission that i need to give for the
folder where the file is.
pls help..thanks

Re: Requirements to run PHP.

Posted: Thu Sep 25, 2008 11:28 am
by swetha
Having wiindows XP.In httpd.conf file,i changed the line Listen 80 to Listen 81.after this, i gave the following line...
http://localhost:81/.The winamp homepage opens.

But the thing is i dont know how to execute a php file locally.is there any permission that i need to give for the
folder where the file is.pls help..thanks

Please please please help.am struggling here.