banner



How To Install Apache And Php On Windows 7

PHP seven - Installation on Windows with Apache


To install Apache with PHP 5 on Windows follow the given steps. If your PHP and Apache versions are unlike and then delight take care accordingly.

Step i

  • Download Apache server from world wide web.apache.org/dist/httpd/binaries/win32. You want the current stable release version with the no_src.msi extension. Double-click the installer file to install; C:\Program Files is a common location. The installer will also ask y'all whether yous want to run Apache as a service or from the command line or DOS prompt. Nosotros recommend you lot do not install every bit a service, every bit this may crusade problems with startup.

  • Extract the PHP binary archive using your unzip utility; C:\php7 is a common location.

  • Rename php.ini-evolution to php.ini. Open this file in a text editor (for example, Notepad). Edit this file to get the configuration directives; At this point, we highly recommend that the new users ready error reporting to E_ALL on their development machines.

  • Tell your Apache server where you want to serve files from and what extension(southward) y'all want to place the PHP files (.php is the standard, merely yous can utilise .html, .phtml, or whatever y'all want). Go to your HTTP configuration files (C:\Program Files\Apache Grouping\Apache\conf or whatever your path is), and open httpd.conf with a text editor. Search for the word DocumentRoot (which should appear twice) and change both the paths to the directory you desire to serve files out of. (The default is C:\Program Files\Apache Group\Apache\htdocs.). Add at least one PHP extension directive as shown in the first line of the following code −

AddHandler awarding/x-httpd-php .php AddType awarding/ten-httpd-php .php .html LoadModule php7_module "C:/php7/php7apache2_4.dll" PHPiniDir "c:/php7"        

Pace 2

Open a text editor. Type: <?php phpinfo(); ?>. Save this file in your Web server's document root equally info.php. Start any Spider web browser and browse the file. You must always use an HTTP request (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 be parsed correctly

Y'all volition see a long table of data about your new PHP installation message Congratulations!

php7_environment.htm

Useful Video Courses


PHP Online Training

Video

Become PHP Facebook Developer: Password-Less Authentication

Video

Ultimate PHP &amp; MySQL Web Development Course &amp; OOP Coding

Video

Learn PHP from Scratch

Video

E Commerce Website Development In PHP With PDO

Video

PHP  in Telugu

Video

Source: https://www.tutorialspoint.com/php7/php7_installation_windows_apache.htm

Posted by: harristhilethe.blogspot.com

0 Response to "How To Install Apache And Php On Windows 7"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel