Install and run PHP files as well as ASP on IIS (Internet Information Services)
- First you must install IIS 6.0. (IIS 5.1 on XP), Server Editions of the Windows are came with pre installed IIS.
- On Windows XP, Go to your control panel > add remove programs. Click on "Add/Remove Windows Components". Place a check for "Internet Information Services".
- On Windows Server 2003 Go to your control panel > add remove programs. Click on "Add/Remove Windows Components". Place a check for "Application Server" and click on the details button. Here you want to make sure there is a check for "Internet Information Services". You can also add ASP.net very easily here.
-- You successfully installed IIS now go to php.net to download the php zip package under "Windows Binaries"not installer
- Once Downloaded extract the first file you downloaded and place the files in "C:\php". Extract the PECL modules to "C:\php\ext".
- Rename C:\php\php.ini-recommended to C:\php\php.ini and then COPY it to C:\Windows, before copying php.ini file into C:\Windows, do some changes;
open php.ini file and uncomment cgi.force_redirect in php.ini and set it to 0
Find SMTP = localhost and make sure it is uncommented. If your mail server is somewhere else you may specify it here. Also set this line just below the above: sendmail_from = someone@yourhost.com
Change session.save_path as "session.save_path=C:\php\sessions" and make the directory C:\php\sessions
Set the line "extension_dir" as "extension_dir = "C:\PHP\ext".
Uncomment all of the following items.
extension=php_mssql.dll
extension=php_msql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_java.dll
extension=php_ldap.dll
extension=php_iisfunc.dll
extension=php_imap.dll
extension=php_filepro.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_dba.dll
extension=php_dbase.dll
extension=php_dbx.dll
extension=php_mbstring.dll
extension=php_pdf.dll
extension=php_pgsql.dll
extension=php_sockets.dll
extension=php_xmlrpc.dll
extension=php_xsl.dll
extension=php_zip.dll
Now copy all of those DLL files in C:\php\ext to C:\windows\system32 or add "C:\PHP;" to your Windows path.
click hereto know how to add Environment Variables to your Windows path.
after adding php variable, restart your computer ... wait for few moments and now you are again on Windows Desktop. - Open Internet Services Manager in your Administrative Tools in the start menu.
If you are usingWindows Server 2003
, Right Click on Web Service Extensions located on the left hand side and choose Add a new web service extension. Enter in php and click add. Browse to C:\php\php5isapi.dll. Also set extension status to allow. Click ok.
and if you are usingWindows XP Professional
, Right Click on websites and choose properties. Go to the Documents tab and add index.php as a start document. Go to the Home Directory Tab and click on Configuration. Now go to the mappings tab and click on add. Enter .php for the extension and enter "C:\php\php5isapi.dll" in the executable textbox. Make sure all verbs is checked and click ok, click ok, click ok. You are done installing it. Now you need to test it.
Go to C:\Inetpub\wwwroot and delete everything in there except for aspnet_client. Now make a new text file and name it phpinfo.php. Open it up with your text editor ant put this in it:
, open web Browser and go to http://127.0.0.1/phpinfo.php, if page shows something about php with the php logo on top left corner, its mean you done the work otherwise check the steps you might skip something. GOOD LUCK any question, feel free to ask ....
0 comments:
Post a Comment
comment or ask