Php Installation On Windows Nt/2000/Xp Amongst Apache

To install Apache amongst PHP five on Windows follow the next steps. If your PHP together with Apache versions are different, together with therefore delight accept attention accordingly.
 If your PHP together with Apache versions are unlike PHP Installation on Windows NT/2000/XP amongst Apache



    • Download Apache server from www.apache.org/dist/httpd/binaries/win32. You desire the electrical flow stable unloose version amongst the no_src.msi extension. Double-click the installer file to install; C:\Program Files is a mutual location. The installer volition besides enquire y'all whether y'all desire to locomote Apache equally a service or from the ascendance work or DOS prompt. We recommend y'all produce non install equally a service, equally this may displace problems amongst startup.
    • Extract the PHP binary archive using your unzip utility; C:\PHP is a mutual location.
    • Copy but about .dll files from your PHP directory to your arrangement directory (usually C:\Windows). You postulate php5ts.dll for every case. You volition besides belike postulate to re-create the file corresponding to your Web server module - C:\PHP\Sapi\php5apache.dll. to your Apache modules directory. It's possible that y'all volition besides postulate others from the dlls subfolder, but start amongst the ii mentioned previously together with add together to a greater extent than if y'all postulate them.
    • Copy either php.ini-dist or php.ini-recommended (preferably the latter) to your Windows directory, together with rename it php.ini. Open this file inwards a text editor (for example, Notepad). Edit this file to choke configuration directives; At this point, nosotros highly recommend that novel users educate mistake reporting to E_ALL on their evolution machines.
    • Tell your Apache server where y'all desire to serve files from together with what extension(s) y'all desire to position PHP files (.php is the standard, but y'all tin role .html, .phtml, or whatever y'all want). Go to your HTTP configuration files (C:\Program Files\Apache Group\Apache\conf or whatever your path is), together with opened upward httpd.conf amongst a text editor. Search for the discussion DocumentRoot (which should look twice) together with alter both paths to the directory y'all desire to serve files out of. (The default is C:\Program Files\Apache Group\Apache\htdocs.). Add at to the lowest degree i PHP extension directive equally shown inwards the starting fourth dimension work of the next code:


LoadModule php5_module modules/php5apache.dll
AddType application/x-httpd-php .php .phtml
  • You may besides postulate to add together the next line:
AddModule mod_php5.c
  • Stop together with 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 together with click Stop. After it stops, choose WWW Publishing Service together with click Start. Stopping together with restarting the service from inside Internet Service Manager volition non suffice. Since this is Windows, y'all may besides wishing to reboot. 
  • Open a text editor. Type: <?php phpinfo(); ?>. Save this file inwards your Web server's document root equally info.php.
  • Start whatever Web browser together with browse the file.you must ever role 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 hold out parsed correctly
You should run into a long tabular array of information most 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.