aspiring_geek Posted February 26, 2009 Report Share Posted February 26, 2009 Hi All. First post. I have installed iis and php 5.2.8 on my windows computer. I do not know how to view php pages that I write. Very trivial i know but help will be much appreciated. Prefereably in detail cause i do not know how to configure php - after my installation the only file that appears in the directory is php.ini. I would like to start writing php scripts and seeing the results - i have been doing extensive reading and would like to start working. Thanks. Link to comment Share on other sites More sharing options...
justsomeguy Posted February 26, 2009 Report Share Posted February 26, 2009 Assuming PHP is configured, just put a PHP page somewhere in the web root and open it using the browser. Use this as a test page:<?phpphpinfo();?>Save that as test.php and save it in the wwwroot folder. You should be able to open a browser to http://localhost/test.php to see it.If PHP isn't configured yet, check here:http://www.php.net/manual/en/install.windows.php Link to comment Share on other sites More sharing options...
aspiring_geek Posted February 26, 2009 Author Report Share Posted February 26, 2009 Assuming PHP is configured, just put a PHP page somewhere in the web root and open it using the browser. Use this as a test page:<?phpphpinfo();?>Save that as test.php and save it in the wwwroot folder. You should be able to open a browser to http://localhost/test.php to see it.If PHP isn't configured yet, check here:http://www.php.net/manual/en/install.windows.php Read carefully the section for installing php 5.2 or later on windows. When i select no web server during installion it installs properly but i cannot view php pages for obvious reasons. However when i chose the iis-isapi module radio button setup terminates with the following message: There is a problem with this windows installer package. A script required for this install to complete could not be run. Contact you support personnel or package vendor. I even tried the tricks posted by anonym on the same page.Does that mean i need to try downloading the file again from the url given by your link? Or is there a way for me to configure iis5.1 on windows xp if i have not chosen a web server to setup during php installation? I know my iis is working because i used to test asp and aspx pages. I'm getting so impatient. Link to comment Share on other sites More sharing options...
justsomeguy Posted February 26, 2009 Report Share Posted February 26, 2009 I would recommend against using the Windows installer to install PHP, it doesn't include a lot of the extensions that you may want to use. It's going to take some time and patience, but I would recommend downloading the PHP zip file that contains everything and installing it manually. In the link I posted above, the steps to follow for that are the Manual Installation Steps, the section for Microsoft IIS, and the section for Installation of extensions on Windows. The file to download for that is the first one listed under Windows Binaries on this page:http://www.php.net/downloads.php Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now