Requirements to run PHP.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

swetha
Forum Commoner
Posts: 88
Joined: Wed Sep 10, 2008 11:00 pm

Requirements to run PHP.

Post 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?
adroit
Forum Commoner
Posts: 37
Joined: Fri Aug 08, 2008 1:25 am
Location: India
Contact:

Re: Requirements to run PHP.

Post by adroit »

You can use wampserver
Download it from http://www.wampserver.com/en/index.php
It is free.
swetha
Forum Commoner
Posts: 88
Joined: Wed Sep 10, 2008 11:00 pm

Re: Requirements to run PHP.

Post by swetha »

thanks
also could you clarify this?
can we use IIS server instead of Apache server?
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: Requirements to run PHP.

Post by jayshields »

Yes.
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Re: Requirements to run PHP.

Post by Maugrim_The_Reaper »

There should be plenty of IIS and PHP tutorials online since it's one of Microsoft's recent pet babies ;).
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Re: Requirements to run PHP.

Post by panic! »

If you're worried about server overheads and limitations I'd run lighttpd

http://www.lighttpd.net/
swetha
Forum Commoner
Posts: 88
Joined: Wed Sep 10, 2008 11:00 pm

Re: Requirements to run PHP.

Post 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
adroit
Forum Commoner
Posts: 37
Joined: Fri Aug 08, 2008 1:25 am
Location: India
Contact:

Re: Requirements to run PHP.

Post 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.
swetha
Forum Commoner
Posts: 88
Joined: Wed Sep 10, 2008 11:00 pm

Re: Requirements to run PHP.

Post 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?
wolfwood16
Forum Commoner
Posts: 43
Joined: Wed Aug 27, 2008 8:52 am
Contact:

Re: Requirements to run PHP.

Post 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? :)
adroit
Forum Commoner
Posts: 37
Joined: Fri Aug 08, 2008 1:25 am
Location: India
Contact:

Re: Requirements to run PHP.

Post 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.
swetha
Forum Commoner
Posts: 88
Joined: Wed Sep 10, 2008 11:00 pm

Re: Requirements to run PHP.

Post 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.
swetha
Forum Commoner
Posts: 88
Joined: Wed Sep 10, 2008 11:00 pm

Re: Requirements to run PHP.

Post 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.
swetha
Forum Commoner
Posts: 88
Joined: Wed Sep 10, 2008 11:00 pm

Re: Requirements to run PHP.

Post 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
swetha
Forum Commoner
Posts: 88
Joined: Wed Sep 10, 2008 11:00 pm

Re: Requirements to run PHP.

Post 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.
Post Reply