开发者

PHP installation on windows

开发者 https://www.devze.com 2023-02-14 06:10 出处:网络
I want to ins开发者_开发知识库tall php in my system.For this I have downloaded the php-5.3.5.tar.bz2 (zip file).

I want to ins开发者_开发知识库tall php in my system.For this I have downloaded the php-5.3.5.tar.bz2 (zip file). Now from this installation help link http://www.php.net/manual/en/install.windows.installer.msi.php It is saying "Run the MSI installer and follow the instructions provided by the installation wizard. "

But i am not getting from where I can get MSI installer?


First: go to www.php.net and click on downloads, or go directly to
http://www.php.net/downloads.php
http://windows.php.net/download

Choose the latest PHP x.y.z (Current stable) For IIS, download the non-threadsafe zip file

  1. Extract the downloaded zip file to c:\PHP

  2. Download PHP-Manager for IIS 7 (that's an IIS-controlpanel-extension, also works for IIS 8) from https://github.com/phpmanager/phpmanager/releases‎ (make sure you choose the right bitness (32 vs. 64)

  3. Open the IIS management console (inetmgr.exe)

  4. Double-click PHP-Manager and click on "register new PHP installation"
    (note to self: never remove the PHP directory, otherwise "rien ne va plus")

    PHP installation on windows

  5. Choose php-cgi.exe and click ok

    PHP installation on windows

  6. Click on "Configure error reporting". Check "Development machine" and click apply, then click "back to main page"

    PHP installation on windows

  7. Go to C:\inetpub\wwwroot and create a new textfile called "phpinfo" and put this content into it :

<?php phpinfo(); // Show all information, defaults to INFO_ALL ?>

PHP installation on windows

Create a new file called hello.php in c:\inetpub\wwroot with this content
<?php echo "Hello World !" ; ?>

PHP installation on windows

10. open cmd.exe and execute "iisreset"

  1. Use your browser of choice, and navigate to those pages:
    http://localhost/phpinfo.php
    http://localhost/helloworld.php

Now IIS is (should be) serving PHP.


As far as I can see there are no MSI installers for PHP 5.4.x available from http://windows.php.net/

Additionally, since PHP 5.3 there are no MSI installers available that work together with the binaries from apache.org and you have to use the binaries from http://www.apachelounge.com/


windows.php.net/download/.

Read the sidebar there to determine which one you should download. The MSI versions are the ones labelled "Installer".


Try this direct link: http://windows.php.net/downloads/releases/

You will find some old msi distributions...


*** Files now moved to http://windows.php.net/downloads/releases/archives/


hello bro try this link. you dont need to install others. Just install wamp server and you will be having php,mysql and apache in your server. Download Wamp


MSI is a standard component of Windows. Download the MSI file, then just double click on that file and it will automatically run and install PHP.


To begin working with PHP you must first have access to either of the following:

A web hosting account that supports the use of PHP web pages and grants you access to MySQL databases. If you do not have a host, but are interested in signing up for one.

Have PHP and MySQL installed on your own computer. Read this lesson thorougly for more information on installing PHP.

Although MySQL is not absolutely necessary to use PHP, MySQL and PHP are wonderful complements to one another and some topics covered in this tutorial will require that you have MySQL access. http://tutorialsbox.net/php-installation/


Late to the party here but according to the readme (install.txt) that comes with php 5.5:

There are several all-in-one installers over the Internet, but none of those are endorsed by PHP.net, as we believe that the manual
installation is the best choice to have your system secure and
optimised.


I used the Microsoft Web Platform Installer 5.0 At the time i post this (01.2016) it's up-to-Date.

https://www.microsoft.com/web/downloads/platform.aspx


The instructions for installing PHP on Windows from the msi file are located at http://php.net/manual/en/install.windows.installer.msi.php which should help you to troubleshoot the problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消