Page 2 of 2
Re: Requirements to run PHP.
Posted: Thu Sep 25, 2008 10:37 pm
by Stryks
Sorry ... did you just say the 'winamp' homepage opens? Winamp? As in the music player? Surely you mean the WAMP page opened?
Re: Requirements to run PHP.
Posted: Thu Sep 25, 2008 10:47 pm
by Stryks
Just for something to do, I spent a few minutes in google .. found the following.
By default, the document root of WAMP is C:/wamp/www
create 2 folders project1 and website2 in the document root as follows:
C:/wamp/www/project1
C:/wamp/www/website2
I've never used WAMP, so I cant really verify this is correct. But it all seems about right.
It's an absolute breeze nowdays to use IIS by the way ... mysql installs as a service and PHP self configures (for the most part) ... but I digress.
Hope this helps.
Re: Requirements to run PHP.
Posted: Fri Sep 26, 2008 12:00 am
by swetha
Sorry.It is wamp.
Having windows 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 wamp 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.That is when i right click,i dont get the web sharing option.
pls help..thanks.
Please please please help.am struggling here.
Re: Requirements to run PHP.
Posted: Fri Sep 26, 2008 1:22 am
by Stryks
I must be misunderstanding your question. You want to view you php in a browser yes?
Then you find where the web root is .. this is where the files that you describe as the 'wamp homepage'. You create a folder in there called whatever you like. You place your php file(s) in there, and then you point your browser to
http://localhost:81/your_folder/your_file.php
And just like that .. it should display.
Yes? Or not what you are trying to do?
Re: Requirements to run PHP.
Posted: Fri Sep 26, 2008 11:00 am
by swetha
thanks this worked.
thanks a lot once again for this help.
Re: Requirements to run PHP.
Posted: Fri Sep 26, 2008 7:59 pm
by Stryks
Now all you need to do, assuming you aren't using IIS for anything, is either uninstall IIS or set it to use another port, and switch your WAMP installation back to 80.
I'd recommend uninstalling IIS unless you really need it.