milosev.com
  • Home
    • List all categories
    • Sitemap
  • Downloads
    • WebSphere
    • Hitachi902
    • Hospital
    • Kryptonite
    • OCR
    • APK
  • About me
    • Gallery
      • Italy2022
      • Côte d'Azur 2024
    • Curriculum vitae
      • Resume
      • Lebenslauf
    • Social networks
      • Facebook
      • Twitter
      • LinkedIn
      • Xing
      • GitHub
      • Google Maps
      • Sports tracker
    • Adventures planning
  1. You are here:  
  2. Home

Installing PHP 5.6.5 on Windows 8

Details
Written by: Stanko Milosev
Category: Windows 8
Published: 14 February 2015
Last Updated: 14 February 2015
Hits: 6486

First I downloaded VC11 x86 Non Thread Safe php-5.6.5-nts-Win32-VC11-x86, then I installed IIS with CGI support.

To install IIS go to Control Panel -> Programs:

Turn Windows features on or off:

First just click on Internet Information Services check box, and automatically will be selected everything you need for IIS management:

Then go to Internet Information Services -> World Wide Web Services ->CGI, in my case I also installed ASP.Net since I do development mostly in .Net. CGI you need for Fast CGI support.

To check if IIS management is intalled go to Control panel -> System and security:

Administrative tools:

Search for Internet Information Services (IIS) Manager:

Then I extracted downloaded PHP to c:\php, and renamed php.ini-development to php.ini:

After that in php.ini I searched and uncommented (deleted ";") following lines:

cgi.force_redirect = 0
cgi.fix_pathinfo=1
fastcgi.impersonate = 1
fastcgi.logging = 0

Then in IIS manager open Handler Mappings:

Click Add module mappings:

In the "Add Module Mapping" dialog enter the following:

Request path: *.php
Module: FastCgiModule
Executable: C:\php\php-cgi.exe
Name: PHP_via_FastCGI

Click "Request Restrictions" button and then configure the mapping to invoke handler only if request is mapped to a file or a folder:

Click OK, and click yes on dialog:

---------------------------
Add Module Mapping
---------------------------
Do you want to create a FastCGI application for this executable? Click "Yes" to add the entry to the FastCGI collection and to enable this executable to run as a FastCGI application.
---------------------------
Yes No Cancel
---------------------------

Start Notepad++as administrator, in my case, in advanced properties dialog for my shortcut I checked Run as administrator. Right click on icon in task bar (I pinned Notepad++ to taskbar), right click on Notepad++, left click on properties:

And check "Run as administrator" check box:

Now in Notepad++ write:

<?php
	phpinfo()
?>

Save it in C:\inetpub\wwwroot <- that is why you need administrative priveleges, now go to:

http://localhost/index.php

and you should see PHP info page.

To set index.php as default document, again open IIS manager, and click Default Document:

Click add:

And in name write index.php:

Escape character for a regular expressions

Details
Written by: Stanko Milosev
Category: Notepad++
Published: 21 February 2020
Last Updated: 07 November 2021
Hits: 2931
  • regular expressions
For example if you need to seacrh for '(' character use '\(', that means escape character is '\'. Example:
varbinary\(max\)

Find at the beginning of each line or at the end of each line

Details
Written by: Stanko Milosev
Category: Notepad++
Published: 21 February 2020
Last Updated: 05 October 2020
Hits: 2689
  • regular expressions
At the beginning of each line:
^
At the end of each line
$

Find everything after ']' charachter

Details
Written by: Stanko Milosev
Category: Notepad++
Published: 21 February 2020
Last Updated: 05 October 2020
Hits: 2797
  • regular expressions
To find (or delete) everything after ']' charachter use following Regular expression:

\].*
  1. Notepad++ multiple instances
  2. Notepad++ column mode
  3. Select column in Notepad++
  4. Lebenslauf

Subcategories

C#

Azure

ASP.NET

JavaScript

Software Development Philosophy

MS SQL

IBM WebSphere MQ

MySQL

Joomla

Delphi

PHP

Windows

Life

Lazarus

Downloads

Android

CSS

Chrome

HTML

Linux

Eclipse

Page 111 of 168

  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115