Php configuration in iis apache web server
Skip to main content This browser is no longer supported. Show
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. Configuring Step 1: Install IIS and PHP
In this articleby Keith Newman and Robert McMurray In this step of building a PHP website, you install IIS and FastCGI, download and install PHP and the WinCache extension, and upload your PHP application. When you are done, make sure that IIS and the PHP are installed, and your PHP application has been added to your website. Then go on to Step 2: Configure PHP Settings. 1.1. Install IISYou can use the Web Platform Installer (Web PI) to install IIS, and applications that run on IIS. Web PI installs the latest versions of available Web Platform offerings with just a few simple clicks. Using Web PI, you can download and install any new tools or updates, including PHP. To learn more about the Web PI, see Learn more and install the Web PI. If you do not use Web PI to install IIS, you can install IIS manually. To install IIS manually, use the following steps: To install IIS on Windows Server 2012
To install IIS on Windows 8
1.2. Install PHP by using Web PIThe preferred method to install PHP on a Windows or Windows Server computer is to use Web Platform Installer (Web PI). To install PHP by using Web PI
1.3. Download and Install PHP ManuallyIf you decide to download PHP and install it manually, the procedures in this section guide you the following tasks:
To keep this procedure simple, install the WinCache extension but do not configure it. You will configure and test WinCache in Step 2: Configure PHP Settings. To download and install PHP and WinCache
To test your PHP installation
1.4. Add Your PHP ApplicationOnce you have IIS and PHP installed, you can add a PHP application to your web server. This section describes how to set up your PHP application on an IIS web server with PHP installed. It does not explain how to develop a PHP application. To add a PHP web application
See also
How configure PHP in IIS?Download PHP and the WinCache extension.. Install PHP and WinCache.. Add the PHP installation folder to the Path environment variable.. Set up a handler mapping for PHP.. Add default document entries for PHP.. Test your PHP installation.. How do I configure Apache to run PHP?Note that there are several ways to configure Apache and PHP, but this is possibly the quickest method.. Step 1: Download the PHP files. ... . Step 2: Extract the files. ... . Step 3: Configure php. ... . Step 4: Add C:\php to the path environment variable. ... . Step 5: Configure PHP as an Apache module. ... . Step 6: Test a PHP file.. Can I run PHP on Apache server?The preferred way of running PHP files is within a web server like Apache, Nginx, or IIS—this allows you to run PHP scripts from your browser. That's how all PHP websites work! The other way is to run PHP scripts on the command line, and it doesn't require you to set up a web server.
Can you run PHP on IIS?IIS only runs on Windows, but keep in mind that running PHP on IIS is not the same as running PHP on Windows. There are options to run PHP on Windows like XAMPP or WampServer. However, these two options make some additional choices for you. They run Apache as a web server and use MySQL or MariaDB as a database server.
|