Installing PHP [Windows]

  • This will show you how to install PHP on Windows.

    1 Downloading PHP

    First you must download the newest non Thread Safe version ffrom the PHP Website. When this entry was written, this was the newest version

    2 Unpacking PHP

    Unpack the downloaded .zip file to a chosen folder, for example C:/PHP

    3 Modify the INI File

    Next you must to enter your PHP folder and rename your php.ini-production to php.ini. You must open this file with your text editor and replace some rows by using the following table:

    line number(*) search for replace with
    466 display_errors = Off display_errors = On
    736 ; extension_dir = "ext" extension_dir = "ext"
    888 ; extension=php_mbstring.dll extension=php_mbstring.dll
    895 ; extension=php_pdo_mysql.dll extension=php_pdo_mysql.dll
    899 ; extension=php_pdo_sqlite.dll extension=php_pdo_sqlite.dll

    (*) The line number can differ, which depends on the used version. The used line numbers in the table above are from the PHP-version 5.6.12 x86.