Php Installation On Windows Nt/2000/Xp Alongside Iis

The Windows server installation of PHP running IIS is much simpler than on Unix, since it involves a precompiled binary rather than a source build.
If you lot innovation to install PHP over Windows, in addition to then hither is the listing of prerequisites:
The Windows server installation of PHP running IIS is much simpler than on Unix PHP Installation on Windows NT/2000/XP alongside IIS


  • A working PHP-supported Web server. Under previous versions of PHP, IIS/PWS was the easiest alternative because a module version of PHP was available for it; but PHP forthwith has added a much wider selection of modules for Windows.
  • A correctly installed PHP-supported database similar MySQL or Oracle etc. (if you lot innovation to purpose one)
  • The PHP Windows binary distribution (download it atwww.php.net/downloads.php)
  • A utility to unzip files (search http://download.cnet.com for PC file compression utilities)
Now hither are the steps to install Apache in addition to PHP5 on your Windows machine. If your PHP version is different, in addition to then delight accept attention accordingly.
  • Extract the binary archive using your unzip utility; C:\PHP is a mutual location.
  • Copy about .dll files from your PHP directory to your systems directory (usually C:\Winnt\System32). You bespeak php5ts.dll for every case. You volition likewise in all probability bespeak to re-create the file corresponding to your Web server module - C:\PHP\Sapi\php5isapi.dll. It's possible you lot volition likewise bespeak others from the dlls subfolder - but kickoff alongside the 2 mentioned inwards a higher identify in addition to add together to a greater extent than if you lot bespeak them.
  • Copy either php.ini-dist or php.ini-recommended (preferably the latter) to your Windows directory (C:\Winnt or C:\Winnt40), in addition to rename it php.ini. Open this file inwards a text editor (for example, Notepad). Edit this file to become configuration directives; We highly recommend novel users fix mistake reporting to E_ALL on their evolution machines at this point. For now, the most of import affair is the doc_root directive nether the Paths in addition to Directories section. brand certain this matches your IIS Inetpub folder (or wherever you lot innovation to serve out of).
  • Stop in addition to restart the WWW service. Go to the Start carte du jour -> Settings -> Control Panel -> Services. Scroll downwards the listing to IIS Admin Service. Select it in addition to click Stop. After it stops, direct WWW Publishing Service in addition to click Start. Stopping in addition to restarting the service from inside Internet Service Manager volition non suffice. Since this is Windows, you lot may likewise want to reboot.
  • Open a text editor. Type: <?php phpinfo(); ?>. Save this file inwards your Web server's document root every bit info.php.
  • Start whatsoever Web browser in addition to browse the file.you must e'er purpose an HTTP asking (http://www.testdomain.com/info.php or http://localhost/info.php or http://127.0.0.1/info.php) rather than a filename (/home/httpd/info.php) for the file to endure parsed correctly
You should meet a long tabular array of information well-nigh your novel PHP installation message Congratulations!

Next
Previous
Click here for Comments

0 komentar:

Please comment if there are any that need to be asked.