![Install apache php postgresql windows 10 Install apache php postgresql windows 10](https://miloserdov.org/wp-content/uploads/2017/01/AccessLog.jpg)
Install PHP, Apache, MySQL on Windows 10 February 10, 2020 by How to Guide In this post I’m going to show you how to install and configure the latest versions of PHP 7, Apache 2.4 httpd server, and MySQL 8 on Microsoft Windows 10 operating system. This tutorial will show you how you can install Apache, PHP and MySQL server on your Windows 10 PC manually. Introduction to Apache Web Server. Difference between Apache http and Apache Tomcat. How to Install and Run Apache Web Server on Ubuntu Linux. How to Install and Run Apache Web Server on Windows 10. Original Article: So, crack those knuckles and follow along. Apache is a software, so we have to download it, visit the site. To configure Apache to install PHP as a module, use an ASCII text editor to open the Apache configuration file, 'httpd.conf'. If you use Apache 1.x, the file is found in 'c: Program Files Apache Group Apache conf '.
- PHP 7 Tutorial
- PHP 7 Useful Resources
- Selected Reading
To install Apache with PHP 5 on Windows follow the given steps. If your PHP and Apache versions are different then please take care accordingly.
Step 1
- Download Apache server from www.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 you whether you want to run Apache as a service or from the command line or DOS prompt. We recommend you do not install as a service, as this may cause problems with startup.
- Extract the PHP binary archive using your unzip utility; C:php7 is a common location.
- Rename php.ini-development 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 set error reporting to E_ALL on their development machines.
- Tell your Apache server where you want to serve files from and what extension(s) you want to identify the PHP files (.php is the standard, but you can use .html, .phtml, or whatever you want). Go to your HTTP configuration files (C:Program FilesApache GroupApacheconf 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 want to serve files out of. (The default is C:Program FilesApache GroupApachehtdocs.). Add at least one PHP extension directive as shown in the first line of the following code −
Apache Mysql Php Windows 10
Step 2
Open a text editor. Type: <?php phpinfo(); ?>. Save this file in your Web server's document root as info.php. Start any 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
You will see a long table of information about your new PHP installation message Congratulations!
If you need to install a PHP on your local Windows machine with Internet Information Services (IIS), Microsoft has already provided a way where you can do it fairly quickly using WPI.
Keep in mind though, this setup has not been tested for production environment. So only use it as a PHP development environment for Windows.
Steps
- Open Control Panel ->Programs and Features ->Turn Windows features on or off. Under Internet Information Services ->World Wide Web Services ->Application Development Features, make sure that option CGI is checked. This enables both the CGI and FastCGI services.
- Download Web Platform Installer. For this example for Windows 10 64-bit, it’s the WebPI 5.0 x64.
- Double-click on WebPlatformInstaller_amd64_en-US.msi to install it.
- Once installed, you should see a file with the name wpilauncher.exe. Double-click it.
- When you see the Window, click on the Products link and search for “php” and press ENTER.
- Add PHP 7.0.9 (x64) (or later version if available) as an item to install. Selecting this will automatically add Windows Cache Extension and PHP Manager for IIS.
- (Optional) If you need to connect to SQL Server using PHP, you need to install Microsoft Drivers 4.0 (x64) for PHP v7.0 for SQL Server in IIS.
- Click on Install button.
Install Apache Php 7 Windows 10
![Apache Apache](/uploads/1/2/6/4/126455193/218312634.png)
The downside of this installation is probably WPI may have a mind on its own and install other components that you didn’t choose as shown below:
If you see a failed installation for PHP Manager for IIS like above, don’t worry about it. That component is only used to provide a GUI for managing PHP from IIS. You can still use the command line and text editor to make configuration changes.
As always you can always test your PHP installation by creating a test.php file with this PHP code.
And run it from your browser (i.e., http://localhost/test.php). If PHP is installed correctly, you will see something similar to this:
You may notice that the version of PHP installed using WPI is usually several versions behind the release version. Fortunately, you can always download PHP for Windows yourself and upgrade your PHP installation on Windows to a newer version with just a few additional steps explained on this post.
Further Reading
PHP for the Web: Visual QuickStart Guide (5th Edition)
Modern PHP: New Features and Good Practices
How to Upgrade to PHP 7.1 on Windows 10
How to Upgrade from PHP 7.1 to PHP 7.2 on IIS (Windows 10)
FastCGI
Using FastCGI to Host PHP Applications on IIS 7
Modern PHP: New Features and Good Practices
How to Upgrade to PHP 7.1 on Windows 10
How to Upgrade from PHP 7.1 to PHP 7.2 on IIS (Windows 10)
FastCGI
Using FastCGI to Host PHP Applications on IIS 7